forked from GNUsocial/gnu-social
Merge branch 'newListItem-signatures' into 'nightly'
Add var type to newListItem() parameter See merge request !137
This commit is contained in:
commit
f2d2f7ebe2
@ -151,7 +151,7 @@ class GroupBlockList extends ProfileList
|
||||
$this->group = $group;
|
||||
}
|
||||
|
||||
function newListItem($profile)
|
||||
function newListItem(Profile $profile)
|
||||
{
|
||||
return new GroupBlockListItem($profile, $this->group, $this->action);
|
||||
}
|
||||
|
@ -153,7 +153,7 @@ class GroupqueueAction extends GroupAction
|
||||
// @todo FIXME: documentation missing.
|
||||
class GroupQueueList extends GroupMemberList
|
||||
{
|
||||
function newListItem($profile)
|
||||
function newListItem(Profile $profile)
|
||||
{
|
||||
return new GroupQueueListItem($profile, $this->group, $this->action);
|
||||
}
|
||||
|
@ -185,7 +185,7 @@ class SearchNoticeList extends NoticeList {
|
||||
$this->terms = $terms;
|
||||
}
|
||||
|
||||
function newListItem($notice)
|
||||
function newListItem(Notice $notice)
|
||||
{
|
||||
return new SearchNoticeListItem($notice, $this->out, $this->terms);
|
||||
}
|
||||
|
@ -167,7 +167,7 @@ class PeopletagMemberList extends ProfileList
|
||||
$this->peopletag = $peopletag;
|
||||
}
|
||||
|
||||
function newListItem($profile)
|
||||
function newListItem(Profile $profile)
|
||||
{
|
||||
return new PeopletagMemberListItem($profile, $this->peopletag, $this->action);
|
||||
}
|
||||
|
@ -167,7 +167,7 @@ class PeopletagSubscriberList extends ProfileList
|
||||
$this->peopletag = $peopletag;
|
||||
}
|
||||
|
||||
function newListItem($profile)
|
||||
function newListItem(Profile $profile)
|
||||
{
|
||||
return new PeopletagSubscriberListItem($profile, $this->peopletag, $this->action);
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ class GroupMemberList extends ProfileList
|
||||
$this->group = $group;
|
||||
}
|
||||
|
||||
function newListItem($profile)
|
||||
function newListItem(Profile $profile)
|
||||
{
|
||||
return new GroupMemberListItem($profile, $this->group, $this->action);
|
||||
}
|
||||
|
@ -140,7 +140,7 @@ class ConversationTree extends NoticeList
|
||||
*
|
||||
* @return NoticeListItem a list item to show
|
||||
*/
|
||||
function newListItem($notice)
|
||||
function newListItem(Notice $notice)
|
||||
{
|
||||
return new ConversationTreeItem($notice, $this->out);
|
||||
}
|
||||
|
@ -147,7 +147,7 @@ class ShowfavoritesAction extends ShowstreamAction
|
||||
|
||||
class FavoritesNoticeList extends NoticeList
|
||||
{
|
||||
function newListItem($notice)
|
||||
function newListItem(Notice $notice)
|
||||
{
|
||||
return new FavoritesNoticeListItem($notice, $this->out);
|
||||
}
|
||||
|
@ -136,7 +136,7 @@ class SearchSubsAction extends GalleryAction
|
||||
|
||||
class SearchSubscriptionsList extends SubscriptionList
|
||||
{
|
||||
function newListItem($searchsub)
|
||||
function newListItem(Profile $searchsub)
|
||||
{
|
||||
return new SearchSubscriptionsListItem($searchsub, $this->owner, $this->action);
|
||||
}
|
||||
|
@ -136,7 +136,7 @@ class TagSubsAction extends GalleryAction
|
||||
|
||||
class TagSubscriptionsList extends SubscriptionList
|
||||
{
|
||||
function newListItem($tagsub)
|
||||
function newListItem(Profile $tagsub)
|
||||
{
|
||||
return new TagSubscriptionsListItem($tagsub, $this->owner, $this->action);
|
||||
}
|
||||
|
@ -200,7 +200,7 @@ class FlaggedProfileList extends ProfileList
|
||||
*
|
||||
* @return ProfileListItem newly-created item
|
||||
*/
|
||||
function newListItem($profile)
|
||||
function newListItem(Profile $profile)
|
||||
{
|
||||
return new FlaggedProfileListItem($this->profile, $this->action);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user