@@ -63,7 +63,7 @@ |
||
63 | 63 | * Return the list of options that can be passed to the HttpClient |
64 | 64 | * |
65 | 65 | * @param array $options |
66 | - * @return array |
|
66 | + * @return string[] |
|
67 | 67 | */ |
68 | 68 | protected function getAllowedClientOptions(array $options) |
69 | 69 | { |
@@ -343,7 +343,7 @@ discard block |
||
343 | 343 | { |
344 | 344 | // We need to modify the nested array keys to get them accepted by Cloudstack. |
345 | 345 | // For example 'details[0][key]' should resolve to 'details[0].key'. |
346 | - array_walk($params, function (&$value, $key) { |
|
346 | + array_walk($params, function(&$value, $key) { |
|
347 | 347 | if (is_array($value)) { |
348 | 348 | $parsedParams = []; |
349 | 349 | |
@@ -362,7 +362,7 @@ discard block |
||
362 | 362 | // to encode the values, but we can't encode the keys. This would otherwise |
363 | 363 | // compromise the signature. Therefore we can't use http_build_query(). |
364 | 364 | $queryParams = $this->flattenParams($params); |
365 | - array_walk($queryParams, function (&$value, $key) { |
|
365 | + array_walk($queryParams, function(&$value, $key) { |
|
366 | 366 | $value = $key.'='.rawurlencode($value); |
367 | 367 | }); |
368 | 368 |