@@ -78,7 +78,7 @@ |
||
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 |
@@ -28,6 +28,6 @@ |
||
28 | 28 | |
29 | 29 | public function hasType(): bool |
30 | 30 | { |
31 | - return (bool) $this->type; |
|
31 | + return (bool)$this->type; |
|
32 | 32 | } |
33 | 33 | } |
@@ -40,7 +40,7 @@ |
||
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)); |
@@ -116,7 +116,7 @@ |
||
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 |
@@ -78,7 +78,7 @@ discard block |
||
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 |
||
199 | 199 | $document['jsonapi'] = $this->getJsonapi(); |
200 | 200 | } |
201 | 201 | |
202 | - return (object) $document; |
|
202 | + return (object)$document; |
|
203 | 203 | } |
204 | 204 | } |