@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | protected function askApiKey(InputInterface $input, OutputInterface $output) : string |
| 100 | 100 | { |
| 101 | 101 | $question = (new Question('Enter API key: ')) |
| 102 | - ->setValidator(function ($answer) { |
|
| 102 | + ->setValidator(function($answer) { |
|
| 103 | 103 | if (is_null($answer)) { |
| 104 | 104 | throw new \InvalidArgumentException("API key can't be null."); |
| 105 | 105 | } |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | protected function askSecretKey(InputInterface $input, OutputInterface $output) : string |
| 122 | 122 | { |
| 123 | 123 | $question = (new Question('Enter secret key: ')) |
| 124 | - ->setValidator(function ($answer) { |
|
| 124 | + ->setValidator(function($answer) { |
|
| 125 | 125 | if (is_null($answer)) { |
| 126 | 126 | throw new \InvalidArgumentException("Secret key can't be null."); |
| 127 | 127 | } |
@@ -194,7 +194,7 @@ discard block |
||
| 194 | 194 | */ |
| 195 | 195 | private function cache() : FilesystemCache |
| 196 | 196 | { |
| 197 | - if (! isset($this->cache)) { |
|
| 197 | + if (!isset($this->cache)) { |
|
| 198 | 198 | $this->cache = new FilesystemCache('', 0, __DIR__.'/../../cache'); |
| 199 | 199 | } |
| 200 | 200 | |
@@ -298,7 +298,7 @@ discard block |
||
| 298 | 298 | public function getApiList() : array |
| 299 | 299 | { |
| 300 | 300 | if (is_null($this->apiList)) { |
| 301 | - if (! $this->cache()->has('api.list')) { |
|
| 301 | + if (!$this->cache()->has('api.list')) { |
|
| 302 | 302 | throw new RuntimeException( |
| 303 | 303 | "Cloudstack Client API list not found. This file needs to be generated before using the client." |
| 304 | 304 | ); |
@@ -349,7 +349,7 @@ discard block |
||
| 349 | 349 | { |
| 350 | 350 | // We need to modify the nested array keys to get them accepted by Cloudstack. |
| 351 | 351 | // For example 'details[0][key]' should resolve to 'details[0].key'. |
| 352 | - array_walk($params, function (&$value, $key) { |
|
| 352 | + array_walk($params, function(&$value, $key) { |
|
| 353 | 353 | if (is_array($value)) { |
| 354 | 354 | $parsedParams = []; |
| 355 | 355 | |
@@ -368,7 +368,7 @@ discard block |
||
| 368 | 368 | // to encode the values, but we can't encode the keys. This would otherwise |
| 369 | 369 | // compromise the signature. Therefore we can't use http_build_query(). |
| 370 | 370 | $queryParams = $this->flattenParams($params); |
| 371 | - array_walk($queryParams, function (&$value, $key) { |
|
| 371 | + array_walk($queryParams, function(&$value, $key) { |
|
| 372 | 372 | $value = $key.'='.rawurlencode($value); |
| 373 | 373 | }); |
| 374 | 374 | |
@@ -448,7 +448,7 @@ discard block |
||
| 448 | 448 | */ |
| 449 | 449 | private function cache() : FilesystemCache |
| 450 | 450 | { |
| 451 | - if (! isset($this->cache)) { |
|
| 451 | + if (!isset($this->cache)) { |
|
| 452 | 452 | $this->cache = new FilesystemCache('', 0, __DIR__.'/../../cache'); |
| 453 | 453 | } |
| 454 | 454 | |