Merge branch 'newListItem-signatures' into 'nightly'

Add var type to newListItem() parameter

See merge request !137
This commit is contained in:
mmn 2017-04-06 09:11:52 +00:00
commit f2d2f7ebe2
11 changed files with 11 additions and 11 deletions

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}