|
json_decode($response, true), |
|
json_decode($response, true), |
|
[] |
|
); |
|
|
|
return ['response_code' => $statusCode, 'response' => json_decode($response, true)]; |
executeRequest appears to decode the JSON response thrice; twice for logging, and once for the return value. Could refactor to make that happen only once.
upcloud-whmcs-module/modules/servers/upCloudVps/lib/upCloudVps.php
Lines 64 to 69 in bde802a
executeRequestappears to decode the JSON response thrice; twice for logging, and once for the return value. Could refactor to make that happen only once.