|
@@ -343,7 +343,7 @@ discard block |
|
|
block discarded – undo |
|
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 |
|
|
block discarded – undo |
|
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
|
|
Please login to merge, or discard this patch.