@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | if (empty($this->response)) { |
192 | 192 | return null; |
193 | 193 | } |
194 | - $responseBody = json_decode((string)$this->response->getBody(), true); |
|
194 | + $responseBody = json_decode((string) $this->response->getBody(), true); |
|
195 | 195 | if (!is_array($responseBody)) { |
196 | 196 | return null; |
197 | 197 | } |
@@ -478,11 +478,11 @@ discard block |
||
478 | 478 | protected function sendRequest(string $method, string $path, ?array $query = null, ?array $headers = null, $body = null) : ResponseInterface |
479 | 479 | { |
480 | 480 | $uri = new Uri($this->apiBaseUrl); |
481 | - $uri = $uri->withPath($uri->getPath() . '/' . $path); |
|
481 | + $uri = $uri->withPath($uri->getPath().'/'.$path); |
|
482 | 482 | if ($query) { |
483 | - $uri = $uri->withQuery(http_build_query((array)$query)); |
|
483 | + $uri = $uri->withQuery(http_build_query((array) $query)); |
|
484 | 484 | } |
485 | - $headers = array_merge($this->defaultHeaders, (array)$headers); |
|
485 | + $headers = array_merge($this->defaultHeaders, (array) $headers); |
|
486 | 486 | |
487 | 487 | // set default `Content-Type` if not set and $body not empty |
488 | 488 | if (!empty($body)) { |
@@ -496,7 +496,7 @@ discard block |
||
496 | 496 | $statusCode = $this->getStatusCode(); |
497 | 497 | $response = $this->getResponseBody(); |
498 | 498 | |
499 | - $code = (string)$statusCode; |
|
499 | + $code = (string) $statusCode; |
|
500 | 500 | $reason = $this->getStatusMessage(); |
501 | 501 | if (!empty($response['error']['code'])) { |
502 | 502 | $code = $response['error']['code']; |