@@ -21,12 +21,12 @@ discard block |
||
| 21 | 21 | $this->url = $url; |
| 22 | 22 | $this->options = $options; |
| 23 | 23 | $this->response = $response; |
| 24 | - $this->body = json_decode((string) $response->getBody(), true); |
|
| 24 | + $this->body = json_decode((string)$response->getBody(), true); |
|
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | public function getStatusCode(): int |
| 28 | 28 | { |
| 29 | - return (int) $this->response->getStatusCode(); |
|
| 29 | + return (int)$this->response->getStatusCode(); |
|
| 30 | 30 | } |
| 31 | 31 | |
| 32 | 32 | public function isSuccess(): bool |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | public function getErrors() |
| 48 | 48 | { |
| 49 | 49 | if (!empty($this->body['errors'])) { |
| 50 | - return array_map(function ($rec) { |
|
| 50 | + return array_map(function($rec) { |
|
| 51 | 51 | return new Error($rec['message'], $rec['code']); |
| 52 | 52 | }, $this->body['errors']); |
| 53 | 53 | } else { |