]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Added more checked type-hints.
authorRoland Haeder <roland@mxchange.org>
Sun, 8 Mar 2015 23:34:40 +0000 (00:34 +0100)
committerRoland Haeder <roland@mxchange.org>
Sun, 8 Mar 2015 23:37:38 +0000 (00:37 +0100)
Signed-off-by: Roland Haeder <roland@mxchange.org>
35 files changed:
actions/blockedfromgroup.php
actions/groupqueue.php
actions/noticesearch.php
actions/peopletagged.php
actions/peopletagsubscribers.php
actions/selftag.php
actions/showstream.php
actions/subqueue.php
actions/subscribers.php
actions/subscriptions.php
lib/fullthreadednoticelist.php
lib/groupaction.php
lib/groupmemberlist.php
lib/pluginlist.php
lib/profileaction.php
lib/profilelist.php
lib/profileminilist.php
lib/subscriptionlist.php
plugins/Adsense/AdsensePlugin.php
plugins/BitlyUrl/BitlyUrlPlugin.php
plugins/Blacklist/BlacklistPlugin.php
plugins/ConversationTree/lib/conversationtree.php
plugins/Directory/lib/sortablegrouplist.php
plugins/Directory/lib/sortablesubscriptionlist.php
plugins/FacebookBridge/FacebookBridgePlugin.php
plugins/Favorite/actions/showfavorites.php
plugins/GNUsocialProfileExtensions/GNUsocialProfileExtensionsPlugin.php
plugins/GNUsocialProfileExtensions/lib/noticetree.php
plugins/OpenID/OpenIDPlugin.php
plugins/OpenX/OpenXPlugin.php
plugins/SearchSub/actions/searchsubs.php
plugins/Sitemap/SitemapPlugin.php
plugins/TagSub/actions/tagsubs.php
plugins/TwitterBridge/TwitterBridgePlugin.php
plugins/UserFlag/actions/adminprofileflag.php

index ce7e1df8319257bddf3246e7e36b69b5e7dffdb5..60f108dee383a333a35dbcec167655cd1c10512d 100644 (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);
     }
index e3e719f38abc296afa073616dc15d5708e9e69e2..060b5a2e7d10753a61feca6f0bb4c2cb6e2896c4 100644 (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);
     }
index b4401ee17bea40ea4f5172418e16bf1f8d0a2143..f1d6d1551640b9d771c780a22f4d7f080d648b5f 100644 (file)
@@ -186,7 +186,7 @@ class SearchNoticeList extends NoticeList {
         $this->terms = $terms;
     }
 
-    function newListItem($notice)
+    function newListItem(Notice $notice)
     {
         return new SearchNoticeListItem($notice, $this->out, $this->terms);
     }
index d547866a3cb020a3a2654a007912a2a00e356409..98e0cd7125c009b8306881c7ddf2e88816117c9c 100644 (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);
     }
index 73057a38ed0e4fee4df923f12f44db688c774233..dcb3af5c9fba43f3032832931c4c472e8bde2512 100644 (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);
     }
index b886c3d9f731cc28e4e041df35c3e40159eb5365..58f0460997536a662c8d59ba235a4fc226bf75eb 100644 (file)
@@ -158,7 +158,7 @@ class SelftagAction extends Action
 
 class SelfTagProfileList extends ProfileList
 {
-    function newListItem($profile)
+    function newListItem(Profile $profile)
     {
         return new SelfTagProfileListItem($profile, $this->action);
     }
index 7c38eca14a7637e99248f0d1f1844c338cc1f2d5..a3c461915a8c79ab3a3d34727e7e42fc0d26c497 100644 (file)
@@ -310,7 +310,7 @@ class ShowstreamAction extends ProfileAction
  */
 class ProfileNoticeList extends NoticeList
 {
-    function newListItem($notice)
+    function newListItem(Notice $notice)
     {
         return new ProfileNoticeListItem($notice, $this->out);
     }
index ba473456004ef06ffa364d1fc7ad4b59e56415bd..c87202ddf1cc602ff8bc996c61d435c3824cc1cf 100644 (file)
@@ -106,7 +106,7 @@ class SubqueueAction extends GalleryAction
 
 class SubQueueList extends ProfileList
 {
-    function newListItem($profile)
+    function newListItem(Profile $profile)
     {
         return new SubQueueListItem($profile, $this->action);
     }
index 2724927878c586d640c0a827317dd61e59993f3a..682faf869e44d437728c63d62afa87f78f9a8b24 100644 (file)
@@ -135,7 +135,7 @@ class SubscribersAction extends GalleryAction
 
 class SubscribersList extends SubscriptionList
 {
-    function newListItem($profile)
+    function newListItem(Profile $profile)
     {
         return new SubscribersListItem($profile, $this->owner, $this->action);
     }
index 231a697230601822f3eaf3c4ff2f28fad80de05e..39f794a045d722567076812dca1f29e5a50a1194 100644 (file)
@@ -161,7 +161,7 @@ class SubscriptionsAction extends GalleryAction
 
 class SubscriptionsList extends SubscriptionList
 {
-    function newListItem($profile)
+    function newListItem(Profile $profile)
     {
         return new SubscriptionsListItem($profile, $this->owner, $this->action);
     }
index 52b5f279c9436b1114548076ed32f4ef5e3dca4f..0cc023ca5dbc6ca25e62698923eeb74d70f975e0 100644 (file)
@@ -48,7 +48,7 @@ if (!defined('STATUSNET')) {
 
 class FullThreadedNoticeList extends ThreadedNoticeList
 {
-    function newListItem($notice)
+    function newListItem(Notice $notice)
     {
         return new FullThreadedNoticeListItem($notice, $this->out, $this->userProfile);
     }
index 5d11e6acddc7e2cdeeee5ae5c4e85ae82acf1f13..b1a5d771979caf5c432882ada033e0eddedd3d8c 100644 (file)
@@ -325,7 +325,7 @@ class GroupAdminSection extends ProfileSection
 
 class GroupMembersMiniList extends ProfileMiniList
 {
-    function newListItem($profile)
+    function newListItem(Profile $profile)
     {
         return new GroupMembersMiniListItem($profile, $this->action);
     }
@@ -347,7 +347,7 @@ class GroupMembersMiniListItem extends ProfileMiniListItem
 
 class GroupBlockedMiniList extends ProfileMiniList
 {
-    function newListItem($profile)
+    function newListItem(Profile $profile)
     {
         return new GroupBlockedMiniListItem($profile, $this->action);
     }
index ba608213a43e2d37a3b68a1010b998ce6ae581a6..f055e24731fca0dcea02593938e31c6d8ee032f3 100644 (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);
     }
index 51c02aa2454a69d969e9900531d0ce4e93592ace..40a889abd5b63ee899223ddd3e54b1e24ae1d305 100644 (file)
@@ -78,7 +78,7 @@ class PluginList extends Widget
         }
     }
 
-    function newListItem($plugin)
+    function newListItem(Plugin $plugin)
     {
         return new PluginListItem($plugin, $this->out);
     }
index f7119a3ea0ef5b39e399e9888652769e34bbbc30..79008f3bfcb2397d6b13fdba0448732fc243a39d 100644 (file)
@@ -345,7 +345,7 @@ class ProfileAction extends ManagedAction
 
 class SubscribersMiniList extends ProfileMiniList
 {
-    function newListItem($profile)
+    function newListItem(Profile $profile)
     {
         return new SubscribersMiniListItem($profile, $this->action);
     }
index 767e12bc25a7dbc2360bd65d1bddd270fd919989..57559b5bb27d4d43069dcc443e3ff0e88b9632b2 100644 (file)
@@ -97,7 +97,7 @@ class ProfileList extends Widget
         return $cnt;
     }
 
-    function newListItem($profile)
+    function newListItem(Profile $profile)
     {
         return new ProfileListItem($profile, $this->action);
     }
index 33624a3c7059440298a23e3e829b13c5b59b5f5d..9c10d62b183ab7028060deaa82db62f488071e67 100644 (file)
@@ -54,7 +54,7 @@ class ProfileMiniList extends ProfileList
         $this->out->elementStart('ul', 'entities users xoxo');
     }
 
-    function newListItem($profile)
+    function newListItem(Profile $profile)
     {
         return new ProfileMiniListItem($profile, $this->action);
     }
index 29c12744076b301527ed8837ced2226ef2e6268e..f882b90c7f30b6e76094521914986943626ebd40 100644 (file)
@@ -53,7 +53,7 @@ class SubscriptionList extends ProfileList
         $this->owner = $owner;
     }
 
-    function newListItem($profile)
+    function newListItem(Profile $profile)
     {
         return new SubscriptionListItem($profile, $this->owner, $this->action);
     }
index 78ad2f2b82ed913690c263bc0fc832618b637aee..80d90facaadb5d1691073d9e3eefddf1febb7237 100644 (file)
@@ -174,7 +174,7 @@ class AdsensePlugin extends UAPPlugin
         return true;
     }
 
-    function onEndAdminPanelNav($menu) {
+    function onEndAdminPanelNav(Menu $menu) {
         if (AdminPanelAction::canAdmin('adsense')) {
             // TRANS: Menu item title/tooltip
             $menu_title = _m('AdSense configuration');
index 13a1bf2ec4dc897fb82695701d5203a17e5cd7d9..3b6474dd86dd50b65d1a311039f1b546d3e61046 100644 (file)
@@ -188,7 +188,7 @@ class BitlyUrlPlugin extends UrlShortenerPlugin
     /**
      * Add the bit.ly admin panel to the list...
      */
-    function onEndAdminPanelNav($nav)
+    function onEndAdminPanelNav(Menu $nav)
     {
         if (AdminPanelAction::canAdmin('bitly')) {
             $action_name = $nav->action->trimmed('action');
index 4491c273294d5c0d9bd133bad02e12e6031f27d6..1780f42e62736fdaedba9982513999251f10df8c 100644 (file)
@@ -330,7 +330,7 @@ class BlacklistPlugin extends Plugin
      *
      * @return boolean hook value
      */
-    function onEndAdminPanelNav($nav)
+    function onEndAdminPanelNav(Menu $nav)
     {
         if (AdminPanelAction::canAdmin('blacklist')) {
 
@@ -348,7 +348,7 @@ class BlacklistPlugin extends Plugin
         return true;
     }
 
-    function onEndDeleteUserForm($action, $user)
+    function onEndDeleteUserForm(Action $action, User $user)
     {
         $cur = common_current_user();
 
@@ -386,7 +386,7 @@ class BlacklistPlugin extends Plugin
         $action->elementEnd('ul');
     }
 
-    function onEndDeleteUser($action, $user)
+    function onEndDeleteUser(Action $action, User $user)
     {
         if ($action->boolean('blacklisthomepage')) {
             $pattern = $action->trimmed('blacklisthomepagepattern');
@@ -401,7 +401,7 @@ class BlacklistPlugin extends Plugin
         return true;
     }
 
-    function checkboxAndText($action, $checkID, $label, $textID, $value)
+    private function checkboxAndText(Action $action, $checkID, $label, $textID, $value)
     {
         $action->element('input', array('name' => $checkID,
                                         'type' => 'checkbox',
index 144902fce2316775a08b527467835f4fc2ae835d..ff39b3e4f4487ad97ecc2a5bc018f62f4e0017bd 100644 (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);
     }
index 8bd7e1bd70118e055ba553d8ac210f58adb82469..756b078416f87ee40e2e03f40ffe6a137f0e7046 100644 (file)
@@ -119,7 +119,7 @@ class SortableGroupList extends SortableSubscriptionList
         $this->out->elementStart('tbody');
     }
 
-    function newListItem($profile, $odd)
+    function newListItem(Profile $profile, $odd)
     {
         return new SortableGroupListItem($profile, $this->owner, $this->action, $odd);
     }
index 75c42a5fdfc06fd254d6aca69b482295d0822dcc..7e9c3103583767ab350717d36407e2df1d913b1d 100644 (file)
@@ -151,7 +151,7 @@ class SortableSubscriptionList extends SubscriptionList
         return $cnt;
     }
 
-    function newListItem($profile, $odd)
+    function newListItem(Profile $profile, $odd)
     {
         return new SortableSubscriptionListItem($profile, $this->owner, $this->action, $odd);
     }
index 9618eee31c38422a272a83216f8a60821df3d396..83170396d2f77a1d2df8c6b13221fa348426746b 100644 (file)
@@ -229,7 +229,7 @@ class FacebookBridgePlugin extends Plugin
      *
      * @return boolean hook value
      */
-    function onEndAdminPanelNav($nav)
+    function onEndAdminPanelNav(Menu $nav)
     {
         if (AdminPanelAction::canAdmin('facebook')) {
 
index 3d797353ca06c6699e143cff3c6bca56e9d0fffa..0734ab98657d3647a27da1c134b636a1fa46f20a 100644 (file)
@@ -245,7 +245,7 @@ class ShowfavoritesAction extends Action
 
 class FavoritesNoticeList extends NoticeList
 {
-    function newListItem($notice)
+    function newListItem(Notice $notice)
     {
         return new FavoritesNoticeListItem($notice, $this->out);
     }
index fcf7e87366fd4ef35663de0f2426561f3e666f75..9d8d4acb12eddcc833c23a50e0dfba048c3abf6c 100644 (file)
@@ -112,7 +112,7 @@ class GNUsocialProfileExtensionsPlugin extends Plugin
         $action->script('plugins/GNUsocialProfileExtensions/js/profile.js');
     }
 
-    function onEndAdminPanelNav($nav)
+    function onEndAdminPanelNav(Menu $nav)
     {
         if (AdminPanelAction::canAdmin('profilefields')) {
 
index 95df52838846d218ce296052f35bab5444b552a8..380672ebb535d688dafeaf7f1a216d68a61c00f1 100644 (file)
@@ -103,7 +103,7 @@ class NoticeTree extends NoticeList
         $this->out->elementEnd('li');
     }
 
-    function newListItem($notice)
+    function newListItem(Notice $notice)
     {
         return new NoticeTreeItem($notice, $this->out);
     }
index 7568af496099f0a655b0db1c7392f81322089b02..ec2e6a85d3d0dab5a48a73d21cd44425a4086cb8 100644 (file)
@@ -592,7 +592,7 @@ class OpenIDPlugin extends Plugin
      *
      * @return boolean hook value
      */
-    function onEndAdminPanelNav($nav)
+    function onEndAdminPanelNav(Menu $nav)
     {
         if (AdminPanelAction::canAdmin('openid')) {
 
index 69e45f2b7923c1b362d86f9b8b69d22f17a03fcf..1d2b9d53e823be18b5aa64086f12caea2c957b3b 100644 (file)
@@ -181,7 +181,7 @@ ENDOFSCRIPT;
         return true;
     }
 
-    function onEndAdminPanelNav($menu) {
+    function onEndAdminPanelNav(Menu $menu) {
         if (AdminPanelAction::canAdmin('openx')) {
             // TRANS: Menu item title.
             $menu_title = _m('OpenX configuration.');
index 54563ed0e7162c862092d9fd3fb004e081cbe9b8..99879319dcf4910ff7c2660180fa82c5ef6d2b63 100644 (file)
@@ -140,7 +140,7 @@ class SearchSubsAction extends GalleryAction
 
 class SearchSubscriptionsList extends SubscriptionList
 {
-    function newListItem($searchsub)
+    function newListItem(SearchSub $searchsub)
     {
         return new SearchSubscriptionsListItem($searchsub, $this->owner, $this->action);
     }
index a1fe90b4b42e4313769735217e423b68b98f33e9..bab0d9fa9bb1ade283a28e72cc9296aca42cc0d7 100644 (file)
@@ -154,7 +154,7 @@ class SitemapPlugin extends Plugin
         return true;
     }
 
-    function onEndAdminPanelNav($menu) {
+    function onEndAdminPanelNav(Menu $menu) {
         if (AdminPanelAction::canAdmin('sitemap')) {
             // TRANS: Menu item title/tooltip
             $menu_title = _m('Sitemap configuration');
index be195250f679027c715177dc6e1dc9c8cd0fe617..12d15aa620c3db9e1c869681292aa934f482241a 100644 (file)
@@ -140,7 +140,7 @@ class TagSubsAction extends GalleryAction
 
 class TagSubscriptionsList extends SubscriptionList
 {
-    function newListItem($tagsub)
+    function newListItem(TagSub $tagsub)
     {
         return new TagSubscriptionsListItem($tagsub, $this->owner, $this->action);
     }
index 8b90e7702900a893cd1fb53f4c8f81c8321b80e4..d4bb74e93559ee8ecb80e1ad613677ea6c94a4bf 100644 (file)
@@ -270,7 +270,7 @@ class TwitterBridgePlugin extends Plugin
      * @return boolean hook value
      */
 
-    function onEndAdminPanelNav($nav)
+    function onEndAdminPanelNav(Menu $nav)
     {
         if (AdminPanelAction::canAdmin('twitter')) {
 
index 4ba69bcc631918e20edfbb6ede42308a328fa667..8a7d478631200deb6cba077df4a47698045721be 100644 (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);
     }