|
@@ -182,7 +182,7 @@ discard block |
|
|
block discarded – undo |
|
182
|
182
|
// Send async request. |
|
183
|
183
|
$response = $client->sendAsyncRequest($request)->wait(); |
|
184
|
184
|
} else { |
|
185
|
|
- throw new \LogicException('Unknown HTTP Client type: '. implode(',', class_implements($client))); |
|
|
185
|
+ throw new \LogicException('Unknown HTTP Client type: ' . implode(',', class_implements($client))); |
|
186
|
186
|
} |
|
187
|
187
|
|
|
188
|
188
|
return $response; |
|
@@ -217,7 +217,7 @@ discard block |
|
|
block discarded – undo |
|
217
|
217
|
$response->getReasonPhrase(), |
|
218
|
218
|
$response->getStatusCode() |
|
219
|
219
|
); |
|
220
|
|
- } elseif (($error = json_decode((string)$response->getBody())) && !empty($error)) { |
|
|
220
|
+ } elseif (($error = json_decode((string) $response->getBody())) && !empty($error)) { |
|
221
|
221
|
} |
|
222
|
222
|
|
|
223
|
223
|
// Sometimes VIPPS returns 200 with error message :/ They promised |
Please login to merge, or discard this patch.