@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | $body = $this->parseResponse($res); |
114 | 114 | |
115 | 115 | if ($body->status === 'ERROR') { |
116 | - if($body->code === 201) { |
|
116 | + if ($body->code === 201) { |
|
117 | 117 | throw CouldNotReceiveNotification::noNewMessages(); |
118 | 118 | } |
119 | 119 | |
@@ -142,6 +142,6 @@ discard block |
||
142 | 142 | */ |
143 | 143 | public function parseResponse($res) |
144 | 144 | { |
145 | - return json_decode($res->getBody()->getContents())[0] ?? null; |
|
145 | + return json_decode($res->getBody()->getContents())[ 0 ] ?? null; |
|
146 | 146 | } |
147 | 147 | } |