Passed
Pull Request — master (#108)
by
unknown
01:57 queued 10s
created
src/Concerns/HidesAttributes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
 
79 79
         $this->hidden = array_diff($this->hidden, $attributes);
80 80
 
81
-        if (! empty($this->visible)) {
81
+        if (!empty($this->visible)) {
82 82
             $this->visible = array_merge($this->visible, $attributes);
83 83
         }
84 84
 
Please login to merge, or discard this patch.
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.