@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | if (empty($this->response)) { |
183 | 183 | return null; |
184 | 184 | } |
185 | - $responseBody = json_decode((string)$this->response->getBody(), true); |
|
185 | + $responseBody = json_decode((string) $this->response->getBody(), true); |
|
186 | 186 | if (!is_array($responseBody)) { |
187 | 187 | return null; |
188 | 188 | } |
@@ -471,11 +471,11 @@ discard block |
||
471 | 471 | protected function sendRequest(string $method, string $path, ?array $query = null, ?array $headers = null, $body = null) : ResponseInterface |
472 | 472 | { |
473 | 473 | $uri = new Uri($this->apiBaseUrl); |
474 | - $uri = $uri->withPath($uri->getPath() . '/' . $path); |
|
474 | + $uri = $uri->withPath($uri->getPath().'/'.$path); |
|
475 | 475 | if ($query) { |
476 | - $uri = $uri->withQuery(http_build_query((array)$query)); |
|
476 | + $uri = $uri->withQuery(http_build_query((array) $query)); |
|
477 | 477 | } |
478 | - $headers = array_merge($this->defaultHeaders, (array)$headers); |
|
478 | + $headers = array_merge($this->defaultHeaders, (array) $headers); |
|
479 | 479 | |
480 | 480 | // Send the request synchronously to retrieve the response. |
481 | 481 | $this->response = $this->jsonApiClient->sendRequest(new Request($method, $uri, $headers, $body)); |
@@ -484,7 +484,7 @@ discard block |
||
484 | 484 | $statusCode = $this->getStatusCode(); |
485 | 485 | $response = $this->getResponseBody(); |
486 | 486 | |
487 | - $code = (string)$statusCode; |
|
487 | + $code = (string) $statusCode; |
|
488 | 488 | $reason = $this->getStatusMessage(); |
489 | 489 | if (!empty($response['error']['code'])) { |
490 | 490 | $code = $response['error']['code']; |