Passed
Branch master (42e281)
by Arthur
03:33
created
Category
src/Core/Commander.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -457,8 +457,9 @@  discard block
 block discarded – undo
457 457
      */
458 458
     public function execute($command, array $parameters = [])
459 459
     {
460
-        if (!isset(self::$commands[$command]))
461
-            throw new InvalidArgumentException("The command '{$command}' is not currently supported");
460
+        if (!isset(self::$commands[$command])) {
461
+                    throw new InvalidArgumentException("The command '{$command}' is not currently supported");
462
+        }
462 463
 
463 464
         $command = self::$commands[$command];
464 465
 
@@ -475,8 +476,9 @@  discard block
 block discarded – undo
475 476
         }
476 477
 
477 478
         $headers = [];
478
-        if (isset($command['headers']))
479
-            $headers = $command['headers'];
479
+        if (isset($command['headers'])) {
480
+                    $headers = $command['headers'];
481
+        }
480 482
 
481 483
         $url = self::$baseUrl . $command['endpoint'];
482 484
 
Please login to merge, or discard this patch.