Added type-hint for StartMakeEntryForm and renamed $out to $action
authorRoland Haeder <roland@mxchange.org>
Mon, 25 Jan 2016 15:37:38 +0000 (16:37 +0100)
committerRoland Haeder <roland@mxchange.org>
Mon, 25 Jan 2016 15:37:38 +0000 (16:37 +0100)
Signed-off-by: Roland Haeder <roland@mxchange.org>
lib/microappplugin.php
plugins/RequireValidatedEmail/RequireValidatedEmailPlugin.php

index 8c0744806e9a0541faa0e0db264e11894588b03f..fdf0c2145fefd2d43b4b7b004aeb252dfa66aa70 100644 (file)
@@ -130,10 +130,10 @@ abstract class MicroAppPlugin extends ActivityHandlerPlugin
         return true;
     }
 
-    function onStartMakeEntryForm($tag, $out, &$form)
+    function onStartMakeEntryForm($tag, Action $action, Form &$form)
     {
         if ($tag == $this->tag()) {
-            $form = $this->entryForm($out);
+            $form = $this->entryForm($action);
             return false;
         }
 
index b3ae574f16e752fcae9d4bc1409529eff16e3997..8f4dd008d6b2f91d0752c4dccb3cd7eb51a5d582 100644 (file)
@@ -238,7 +238,7 @@ class RequireValidatedEmailPlugin extends Plugin
      *
      * @return boolean hook value
      */
-    function onStartMakeEntryForm($tag, $action, &$form)
+    function onStartMakeEntryForm($tag, Action $action, Form &$form)
     {
         $user = common_current_user();
         if (!empty($user)) {