]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Safely added more type-hints.
authorRoland Haeder <roland@mxchange.org>
Thu, 26 Feb 2015 00:20:09 +0000 (01:20 +0100)
committerRoland Haeder <roland@mxchange.org>
Thu, 26 Feb 2015 00:20:09 +0000 (01:20 +0100)
Signed-off-by: Roland Haeder <roland@mxchange.org>
plugins/AnonymousFave/AnonymousFavePlugin.php
plugins/Blacklist/BlacklistPlugin.php
plugins/CasAuthentication/CasAuthenticationPlugin.php
plugins/FacebookBridge/FacebookBridgePlugin.php
plugins/GNUsocialPhotos/GNUsocialPhotosPlugin.php
plugins/LdapAuthentication/LdapAuthenticationPlugin.php
plugins/Minify/MinifyPlugin.php
plugins/OpenID/OpenIDPlugin.php
plugins/TwitterBridge/TwitterBridgePlugin.php
plugins/WebFinger/WebFingerPlugin.php

index 7d2f29c56892b2bdac08df0799530633f50fb4ba..6ff1cb19deafe246b3702164dbb1854f5939459c 100644 (file)
@@ -100,7 +100,7 @@ class AnonymousFavePlugin extends Plugin
         $action->inlineScript('SN.U.NoticeFavor();');
     }
 
-    function onStartInitializeRouter($m)
+    function onStartInitializeRouter(URLMapper $m)
     {
         $m->connect('main/anonfavor', array('action' => 'AnonFavor'));
         $m->connect('main/anondisfavor', array('action' => 'AnonDisFavor'));
index bad89f2457239a7f2fabbf3bbe24e4d0e51a9de2..dde3a513add4910624e70e868cad3f13b03e67a2 100644 (file)
@@ -433,17 +433,17 @@ class BlacklistPlugin extends Plugin
         return $hostname;
     }
 
-    function onStartHandleFeedEntry($activity)
+    function onStartHandleFeedEntry(Activity $activity)
     {
         return $this->_checkActivity($activity);
     }
 
-    function onStartHandleSalmon($activity)
+    function onStartHandleSalmon(Activity $activity)
     {
         return $this->_checkActivity($activity);
     }
 
-    function _checkActivity($activity)
+    function _checkActivity(Activity $activity)
     {
         $actor = $activity->actor;
 
index 461655264e721e87ec7ecc3776980575b5872b56..16d5c20addd07fc77723d4c54a041bd46f7da322 100644 (file)
@@ -68,13 +68,13 @@ class CasAuthenticationPlugin extends AuthenticationPlugin
         }
     }
 
-    function onStartInitializeRouter($m)
+    function onStartInitializeRouter(URLMapper $m)
     {
         $m->connect('main/cas', array('action' => 'caslogin'));
         return true;
     }
 
-    function onEndLoginGroupNav($action)
+    function onEndLoginGroupNav(Action $action)
     {
         $action_name = $action->trimmed('action');
 
@@ -88,7 +88,7 @@ class CasAuthenticationPlugin extends AuthenticationPlugin
         return true;
     }
 
-    function onEndShowPageNotice($action)
+    function onEndShowPageNotice(Action $action)
     {
         $name = $action->trimmed('action');
 
index 9618eee31c38422a272a83216f8a60821df3d396..23b175bcff9a294db3d87a7fd16c4e3b52bbaa5e 100644 (file)
@@ -190,7 +190,7 @@ class FacebookBridgePlugin extends Plugin
      *
      * @return void
      */
-    function onEndLoginGroupNav($action)
+    function onEndLoginGroupNav(Action $action)
     {
         $action_name = $action->trimmed('action');
 
index 906509fef5d52573b1b07c53810bc7465ef0efde..2d03fe2afc6ad23c1346d9c8146d7434f6dfd3a8 100644 (file)
@@ -84,7 +84,7 @@ class GNUsocialPhotosPlugin extends Plugin
     }
 
 
-    function onStartHandleFeedEntry($activity)
+    function onStartHandleFeedEntry(Activity $activity)
     {
         common_log(LOG_INFO, 'photo plugin: onEndAtomPubNewActivity');
         $oprofile = Ostatus_profile::ensureActorProfile($activity);
@@ -121,7 +121,7 @@ class GNUsocialPhotosPlugin extends Plugin
         return true;
     }
 
-    function onStartShowNoticeItem($action)
+    function onStartShowNoticeItem(Action $action)
     {
         $photo = GNUsocialPhoto::getKV('notice_id', $action->notice->id);
         if($photo) { 
index 0efaec99b201b8b6d61e0d42f54070242393bfec..8eeb1004b0890d7a912f57db0014003f300f21e1 100644 (file)
@@ -58,7 +58,7 @@ class LdapAuthenticationPlugin extends AuthenticationPlugin
         return parent::onAutoload($cls);
     }
 
-    function onEndShowPageNotice($action)
+    function onEndShowPageNotice(Action $action)
     {
         $name = $action->trimmed('action');
         $instr = false;
index cb51e980f3760c95e5345b16a77a032f8c72c877..e2d6c876745d061eef174919f2bf156dab21e178 100644 (file)
@@ -51,7 +51,7 @@ class MinifyPlugin extends Plugin
      *
      * @return boolean hook return
      */
-    function onStartInitializeRouter($m)
+    function onStartInitializeRouter(URLMapper $m)
     {
         $m->connect('main/min',
                     array('action' => 'minify'));
index 74a7ef5463e8b44e21c8ee6970675ce60a1de5fe..5cd71e6e17797a4665a775d0db36a7c6eef9ad52 100644 (file)
@@ -273,7 +273,7 @@ class OpenIDPlugin extends Plugin
      *
      * @return boolean hook return
      */
-    function onEndLoginGroupNav($action)
+    function onEndLoginGroupNav(Action $action)
     {
         $this->showOpenIDLoginTab($action);
 
@@ -453,7 +453,7 @@ class OpenIDPlugin extends Plugin
      *
      * @return boolean hook value
      */
-    function onEndShowPageNotice($action)
+    function onEndShowPageNotice(Action $action)
     {
         $name = $action->trimmed('action');
 
index 8b90e7702900a893cd1fb53f4c8f81c8321b80e4..9252fd17a57943da53e19ee70aeb9743607a94eb 100644 (file)
@@ -143,7 +143,7 @@ class TwitterBridgePlugin extends Plugin
      *
      * @return void
      */
-    function onEndLoginGroupNav($action)
+    function onEndLoginGroupNav(Action $action)
     {
         $action_name = $action->trimmed('action');
 
index fda40fcbda20f16ace86e8acb65a107ff3b2082b..dff3c86bc1d8f27c671aae04ef8e67f1163f3481 100644 (file)
@@ -38,7 +38,7 @@ class WebFingerPlugin extends Plugin
         common_config_set('webfinger', 'http_alias', $this->http_alias);
     }
 
-    public function onRouterInitialized($m)
+    public function onRouterInitialized(URLMapper $m)
     {
         $m->connect('.well-known/host-meta', array('action' => 'hostmeta'));
         $m->connect('.well-known/host-meta.:format',