]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/DirectionDetector/DirectionDetectorPlugin.php
Fixed more type-hints for safety.
[quix0rs-gnu-social.git] / plugins / DirectionDetector / DirectionDetectorPlugin.php
index 890af068073321373e4f10dde075afd608641073..289196b4a9627a6d60e5176895b2bfae73a79ae7 100644 (file)
@@ -118,7 +118,7 @@ class DirectionDetectorPlugin extends Plugin {
      *
      * @param Action $action
      */
-    function onEndShowScripts($action){
+    function onEndShowScripts(Action $action){
         if (common_logged_in()) {
             $action->script($this->path('jquery.DirectionDetector.js'));
         }
@@ -244,7 +244,7 @@ class DirectionDetectorPlugin extends Plugin {
     /**
      * plugin details
      */
-    function onPluginVersion(&$versions){
+    function onPluginVersion(array &$versions){
         $url = 'http://status.net/wiki/Plugin:DirectionDetector';
 
         $versions[] = array(