@@ -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 |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | return []; |
51 | 51 | } |
52 | 52 | if (!empty($this->body['errors'])) { |
53 | - return array_map(function ($rec) { |
|
53 | + return array_map(function($rec) { |
|
54 | 54 | return new Error($rec['message'], $rec['code']); |
55 | 55 | }, $this->body['errors']); |
56 | 56 | } else { |