Passed
Push — main ( 01ee0f...5fbd1e )
by Thierry
02:22
created
src/Plugin/Request/CallableFunction/CallableFunction.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
      */
124 124
     public function configure(string $sName, string $sValue)
125 125
     {
126
-        switch($sName)
126
+        switch ($sName)
127 127
         {
128 128
         case 'class': // The user function is a method in the given class
129 129
             $this->xPhpFunction = [$sValue, $this->xPhpFunction];
@@ -147,12 +147,12 @@  discard block
 block discarded – undo
147 147
      */
148 148
     public function call(array $aArgs = [])
149 149
     {
150
-        if(($this->sInclude))
150
+        if (($this->sInclude))
151 151
         {
152 152
             require_once $this->sInclude;
153 153
         }
154 154
         // If the function is an alias for a class method, then instantiate the class
155
-        if(is_array($this->xPhpFunction) && is_string($this->xPhpFunction[0]))
155
+        if (is_array($this->xPhpFunction) && is_string($this->xPhpFunction[0]))
156 156
         {
157 157
             $sClassName = $this->xPhpFunction[0];
158 158
             $this->xPhpFunction[0] = $this->di->h($sClassName) ?
Please login to merge, or discard this patch.