Test Failed
Pull Request — master (#5)
by
unknown
04:40
created
src/VodafoneClient.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.