Completed
Pull Request — master (#18)
by
unknown
02:46
created
src/Client.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/helpers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Models/Model.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -147,7 +147,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.