@@ -457,8 +457,9 @@ discard block |
||
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 |
||
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 |