]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fixed more type-hints for safety.
authorRoland Haeder <roland@mxchange.org>
Sun, 15 Feb 2015 21:43:20 +0000 (22:43 +0100)
committerRoland Häder <roland@mxchange.org>
Sun, 29 Mar 2020 22:20:44 +0000 (00:20 +0200)
Signed-off-by: Roland Haeder <roland@mxchange.org>
plugins/AnonymousFave/AnonymousFavePlugin.php
plugins/Mapstraction/actions/map.php
plugins/Realtime/RealtimePlugin.php
plugins/SiteNoticeInSidebar/SiteNoticeInSidebarPlugin.php

index 47471ef39089b45f01aef66c9fd1c2550979897e..82e06b55769a34940f563fe2aafa4b29945e3168 100644 (file)
@@ -85,7 +85,7 @@ class AnonymousFavePlugin extends Plugin
         return true;
     }
 
-    function onEndShowHTML($action)
+    function onEndShowHTML(Action $action)
     {
         if (!common_logged_in()) {
             // Set a place to return to when submitting forms
index 0dbf417dce52d3701b37b26e2be282c04521fa87..0d4f9d52f880ca911488eefcb56aca1fc6493c70 100644 (file)
@@ -135,7 +135,7 @@ class MapAction extends Action
         return true;
     }
 
-    function noticeAsJson($notice)
+    function noticeAsJson(Notice $notice)
     {
         // FIXME: this code should be abstracted to a neutral third
         // party, like Notice::asJson(). I'm not sure of the ethics
index cb228b2bff88605b541299faaf022c580cfb1d0a..6652c5106ba7bca580343004dd33355587cfb62a 100644 (file)
@@ -382,7 +382,7 @@ class RealtimePlugin extends Plugin
      *
      * @return boolean hook return value
      */
-    function onEndScriptMessages($action, &$messages)
+    function onEndScriptMessages(Action $action, &$messages)
     {
         // TRANS: Text label for realtime view "play" button, usually replaced by an icon.
         $messages['realtime_play'] = _m('BUTTON', 'Play');
index 3131847349f80b9eb1f434001ab47b4bfa73c0d1..f52aed1aaa6685f016d1642378fe97958160f8b7 100644 (file)
@@ -55,7 +55,7 @@ class SiteNoticeInSidebarPlugin extends Plugin
      * @return
      */
 
-    function onStartShowSiteNotice($action)
+    function onStartShowSiteNotice(Action $action)
     {
         return false;
     }