@@ -120,7 +120,7 @@ |
||
| 120 | 120 | throw MonzoException::fromResponse($response, $body, $errorCode); |
| 121 | 121 | } |
| 122 | 122 | |
| 123 | - if ($key !== null && ! array_key_exists($key, $json)) { |
|
| 123 | + if ($key !== null && !array_key_exists($key, $json)) { |
|
| 124 | 124 | throw new UnexpectedValueException("Expected to find a [$key] key within the response; none found."); |
| 125 | 125 | } |
| 126 | 126 | |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | { |
| 37 | 37 | $type = $response->getHeaderLine('Content-Type'); |
| 38 | 38 | |
| 39 | - if (! str_is('application/*json', $type)) { |
|
| 39 | + if (!str_is('application/*json', $type)) { |
|
| 40 | 40 | throw new UnexpectedValueException("Expected application/*json, got $type"); |
| 41 | 41 | } |
| 42 | 42 | |
@@ -147,7 +147,7 @@ |
||
| 147 | 147 | */ |
| 148 | 148 | public function cast(string $key, $value) |
| 149 | 149 | { |
| 150 | - if (! array_key_exists($key, $this->casts) || $value === null) { |
|
| 150 | + if (!array_key_exists($key, $this->casts) || $value === null) { |
|
| 151 | 151 | return $value; |
| 152 | 152 | } |
| 153 | 153 | |