@@ -20,7 +20,7 @@ |
||
| 20 | 20 | */ |
| 21 | 21 | public function register() |
| 22 | 22 | { |
| 23 | - $this->app->bind(VodafoneClient::class, function () { |
|
| 23 | + $this->app->bind(VodafoneClient::class, function() { |
|
| 24 | 24 | return new VodafoneClient(config('services.vodafone.username'), config('services.vodafone.password')); |
| 25 | 25 | }); |
| 26 | 26 | } |
@@ -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 | } |