Passed
Push — v5.x ( 3c34c5...4cf44b )
by Thierry
02:14
created
src/Response/Traits/ScriptTrait.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      *
33 33
      * @return ResponseInterface
34 34
      */
35
-    abstract public function addCommand(string $sName, array|JsonSerializable $aOptions): ResponseInterface;
35
+    abstract public function addCommand(string $sName, array | JsonSerializable $aOptions): ResponseInterface;
36 36
 
37 37
     /**
38 38
      * Convert to string
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
     {
60 60
         $aArgs = func_get_args();
61 61
         array_shift($aArgs);
62
-        return $this->addCommand('script.call', ['func' => $this->str($sFunc),'args' => $aArgs]);
62
+        return $this->addCommand('script.call', ['func' => $this->str($sFunc), 'args' => $aArgs]);
63 63
     }
64 64
 
65 65
     /**
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
     {
79 79
         $xResponse = jaxon()->newResponse();
80 80
         $fCalls($xResponse);
81
-        if(($nCommandCount = $xResponse->getCommandCount()) > 0)
81
+        if (($nCommandCount = $xResponse->getCommandCount()) > 0)
82 82
         {
83 83
             $this->addCommand('script.confirm', [
84 84
                 'count' => $nCommandCount,
Please login to merge, or discard this patch.