@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | $body = $this->parseResponse($res); |
108 | 108 | |
109 | 109 | if ($body->status === 'ERROR') { |
110 | - if($body->code === 201) throw CouldNotReceiveNotification::noNewMessages(); |
|
110 | + if ($body->code === 201) throw CouldNotReceiveNotification::noNewMessages(); |
|
111 | 111 | throw StandardNotification::serviceRespondedWithAnError($body); |
112 | 112 | } |
113 | 113 | |
@@ -131,6 +131,6 @@ discard block |
||
131 | 131 | */ |
132 | 132 | public function parseResponse($res) |
133 | 133 | { |
134 | - return json_decode($res->getBody()->getContents())[0] ?? null; |
|
134 | + return json_decode($res->getBody()->getContents())[ 0 ] ?? null; |
|
135 | 135 | } |
136 | 136 | } |