Passed
Pull Request — master (#111)
by
unknown
11:47
created
src/Concerns/HasType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,6 +28,6 @@
 block discarded – undo
28 28
 
29 29
     public function hasType(): bool
30 30
     {
31
-        return (bool) $this->type;
31
+        return (bool)$this->type;
32 32
     }
33 33
 }
Please login to merge, or discard this patch.
src/Util.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
             return self::$snakeCache[$key][$delimiter];
41 41
         }
42 42
 
43
-        if (! ctype_lower($value)) {
43
+        if (!ctype_lower($value)) {
44 44
             $value = preg_replace('/\s+/u', '', ucwords($value));
45 45
 
46 46
             $value = static::stringLower(preg_replace('/(.)(?=[A-Z])/u', '$1'.$delimiter, $value));
Please login to merge, or discard this patch.
src/Client.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@
 block discarded – undo
116 116
             if (is_resource($body)) {
117 117
                 $body = $this->streamFactory->createStreamFromResource($body);
118 118
             }
119
-            if (! ($body instanceof StreamInterface)) {
119
+            if (!($body instanceof StreamInterface)) {
120 120
                 $body = $this->streamFactory->createStream($body);
121 121
             }
122 122
 
Please login to merge, or discard this patch.
src/Document.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 
79 79
     public function hasErrors(): bool
80 80
     {
81
-        return ! $this->errors->isEmpty();
81
+        return !$this->errors->isEmpty();
82 82
     }
83 83
 
84 84
     public function isSuccess(): bool
@@ -199,6 +199,6 @@  discard block
 block discarded – undo
199 199
             $document['jsonapi'] = $this->getJsonapi();
200 200
         }
201 201
 
202
-        return (object) $document;
202
+        return (object)$document;
203 203
     }
204 204
 }
Please login to merge, or discard this patch.
src/Parsers/ResponseParser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
         $document = new InvalidResponseDocument;
35 35
 
36 36
         if ($this->responseHasBody($response)) {
37
-            $document = $this->parser->parse((string) $response->getBody());
37
+            $document = $this->parser->parse((string)$response->getBody());
38 38
         } elseif ($this->responseHasSuccessfulStatusCode($response)) {
39 39
             $document = new Document;
40 40
         }
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
             return true;
57 57
         }
58 58
 
59
-        $contents = (string) $body;
59
+        $contents = (string)$body;
60 60
         $hasBody = trim($contents) !== '';
61 61
 
62 62
         if ($body->isSeekable()) {
Please login to merge, or discard this patch.