@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | */ |
| 172 | 172 | private function assertRequiredCommandOptions(string $command, array $options = []) : void |
| 173 | 173 | { |
| 174 | - if (! $this->isCommandValid($command)) { |
|
| 174 | + if (!$this->isCommandValid($command)) { |
|
| 175 | 175 | throw new RuntimeException( |
| 176 | 176 | "Call to unsupported API command [{$command}], this call is not present in the API list." |
| 177 | 177 | ); |
@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | |
| 183 | 183 | $missing = array_diff($requiredParameters, $providedParameters); |
| 184 | 184 | |
| 185 | - if (! empty($missing)) { |
|
| 185 | + if (!empty($missing)) { |
|
| 186 | 186 | $missing = implode(', ', $missing); |
| 187 | 187 | |
| 188 | 188 | throw new InvalidArgumentException( |
@@ -211,7 +211,7 @@ discard block |
||
| 211 | 211 | $commands = $this->getApiList(); |
| 212 | 212 | $parameters = $commands[$command]['params']; |
| 213 | 213 | |
| 214 | - $required = array_filter($parameters, function ($rules) { |
|
| 214 | + $required = array_filter($parameters, function($rules) { |
|
| 215 | 215 | return (bool) $rules['required']; |
| 216 | 216 | }); |
| 217 | 217 | |
@@ -375,7 +375,7 @@ discard block |
||
| 375 | 375 | { |
| 376 | 376 | // We need to modify the nested array keys to get them accepted by Cloudstack. |
| 377 | 377 | // For example 'details[0][key]' should resolve to 'details[0].key'. |
| 378 | - array_walk($params, function (&$value, $key) { |
|
| 378 | + array_walk($params, function(&$value, $key) { |
|
| 379 | 379 | if (is_array($value)) { |
| 380 | 380 | $parsedParams = []; |
| 381 | 381 | |
@@ -394,7 +394,7 @@ discard block |
||
| 394 | 394 | // to encode the values, but we can't encode the keys. This would otherwise |
| 395 | 395 | // compromise the signature. Therefore we can't use http_build_query(). |
| 396 | 396 | $queryParams = $this->flattenParams($params); |
| 397 | - array_walk($queryParams, function (&$value, $key) { |
|
| 397 | + array_walk($queryParams, function(&$value, $key) { |
|
| 398 | 398 | $value = $key.'='.rawurlencode($value); |
| 399 | 399 | }); |
| 400 | 400 | |