@@ -34,7 +34,7 @@ discard block  | 
                                                    ||
| 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 | }  | 
                                                        
@@ -51,7 +51,7 @@ discard block  | 
                                                    ||
| 51 | 51 | */  | 
                                                        
| 52 | 52 | private function responseHasBody(ResponseInterface $response): bool  | 
                                                        
| 53 | 53 |      { | 
                                                        
| 54 | - return (bool) $response->getBody()->getSize();  | 
                                                        |
| 54 | + return (bool)$response->getBody()->getSize();  | 
                                                        |
| 55 | 55 | }  | 
                                                        
| 56 | 56 | |
| 57 | 57 | /**  | 
                                                        
@@ -34,6 +34,6 @@  | 
                                                    ||
| 34 | 34 | */  | 
                                                        
| 35 | 35 | public function hasType(): bool  | 
                                                        
| 36 | 36 |      { | 
                                                        
| 37 | - return (bool) $this->type;  | 
                                                        |
| 37 | + return (bool)$this->type;  | 
                                                        |
| 38 | 38 | }  | 
                                                        
| 39 | 39 | }  | 
                                                        
@@ -21,6 +21,6 @@  | 
                                                    ||
| 21 | 21 |              throw new ValidationException(sprintf('Meta MUST be an object, "%s" given.', gettype($data))); | 
                                                        
| 22 | 22 | }  | 
                                                        
| 23 | 23 | |
| 24 | - return new Meta((array) $data);  | 
                                                        |
| 24 | + return new Meta((array)$data);  | 
                                                        |
| 25 | 25 | }  | 
                                                        
| 26 | 26 | }  | 
                                                        
@@ -227,6 +227,6 @@  | 
                                                    ||
| 227 | 227 | $document['jsonapi'] = $this->getJsonapi();  | 
                                                        
| 228 | 228 | }  | 
                                                        
| 229 | 229 | |
| 230 | - return (object) $document;  | 
                                                        |
| 230 | + return (object)$document;  | 
                                                        |
| 231 | 231 | }  | 
                                                        
| 232 | 232 | }  | 
                                                        
@@ -306,16 +306,16 @@ discard block  | 
                                                    ||
| 306 | 306 |          switch ($this->getCastType($key)) { | 
                                                        
| 307 | 307 | case 'int':  | 
                                                        
| 308 | 308 | case 'integer':  | 
                                                        
| 309 | - return (int) $value;  | 
                                                        |
| 309 | + return (int)$value;  | 
                                                        |
| 310 | 310 | case 'real':  | 
                                                        
| 311 | 311 | case 'float':  | 
                                                        
| 312 | 312 | case 'double':  | 
                                                        
| 313 | 313 | return $this->fromFloat($value);  | 
                                                        
| 314 | 314 | case 'string':  | 
                                                        
| 315 | - return (string) $value;  | 
                                                        |
| 315 | + return (string)$value;  | 
                                                        |
| 316 | 316 | case 'bool':  | 
                                                        
| 317 | 317 | case 'boolean':  | 
                                                        
| 318 | - return (bool) $value;  | 
                                                        |
| 318 | + return (bool)$value;  | 
                                                        |
| 319 | 319 | case 'object':  | 
                                                        
| 320 | 320 | return $this->fromJson($value, true);  | 
                                                        
| 321 | 321 | case 'array':  | 
                                                        
@@ -425,7 +425,7 @@ discard block  | 
                                                    ||
| 425 | 425 | */  | 
                                                        
| 426 | 426 | public function fromFloat($value)  | 
                                                        
| 427 | 427 |      { | 
                                                        
| 428 | -        switch ((string) $value) { | 
                                                        |
| 428 | +        switch ((string)$value) { | 
                                                        |
| 429 | 429 | case 'Infinity':  | 
                                                        
| 430 | 430 | return INF;  | 
                                                        
| 431 | 431 | case '-Infinity':  | 
                                                        
@@ -433,7 +433,7 @@ discard block  | 
                                                    ||
| 433 | 433 | case 'NaN':  | 
                                                        
| 434 | 434 | return NAN;  | 
                                                        
| 435 | 435 | default:  | 
                                                        
| 436 | - return (float) $value;  | 
                                                        |
| 436 | + return (float)$value;  | 
                                                        |
| 437 | 437 | }  | 
                                                        
| 438 | 438 | }  | 
                                                        
| 439 | 439 | |
@@ -448,7 +448,7 @@ discard block  | 
                                                    ||
| 448 | 448 | public function hasCast($key, $types = null)  | 
                                                        
| 449 | 449 |      { | 
                                                        
| 450 | 450 |          if (array_key_exists($key, $this->getCasts())) { | 
                                                        
| 451 | - return $types ? in_array($this->getCastType($key), (array) $types, true) : true;  | 
                                                        |
| 451 | + return $types ? in_array($this->getCastType($key), (array)$types, true) : true;  | 
                                                        |
| 452 | 452 | }  | 
                                                        
| 453 | 453 | |
| 454 | 454 | return false;  | 
                                                        
@@ -204,6 +204,6 @@  | 
                                                    ||
| 204 | 204 | $item = $this->typeMapper->getMapping($type);  | 
                                                        
| 205 | 205 | }  | 
                                                        
| 206 | 206 | |
| 207 | - return $this->hydrate($item, $attributes, (string) $attributes['id']);  | 
                                                        |
| 207 | + return $this->hydrate($item, $attributes, (string)$attributes['id']);  | 
                                                        |
| 208 | 208 | }  | 
                                                        
| 209 | 209 | }  | 
                                                        
@@ -76,6 +76,6 @@  | 
                                                    ||
| 76 | 76 | #[\ReturnTypeWillChange]  | 
                                                        
| 77 | 77 | public function jsonSerialize()  | 
                                                        
| 78 | 78 |      { | 
                                                        
| 79 | - return (object) $this->toArray();  | 
                                                        |
| 79 | + return (object)$this->toArray();  | 
                                                        |
| 80 | 80 | }  | 
                                                        
| 81 | 81 | }  | 
                                                        
@@ -76,6 +76,6 @@  | 
                                                    ||
| 76 | 76 | #[\ReturnTypeWillChange]  | 
                                                        
| 77 | 77 | public function jsonSerialize()  | 
                                                        
| 78 | 78 |      { | 
                                                        
| 79 | - return (object) $this->toArray();  | 
                                                        |
| 79 | + return (object)$this->toArray();  | 
                                                        |
| 80 | 80 | }  | 
                                                        
| 81 | 81 | }  | 
                                                        
@@ -383,7 +383,7 @@  | 
                                                    ||
| 383 | 383 | public function offsetSet($offset, $value)  | 
                                                        
| 384 | 384 |      { | 
                                                        
| 385 | 385 |          if ($offset === 'id') { | 
                                                        
| 386 | - $this->setId($value ? (string) $value : null);  | 
                                                        |
| 386 | + $this->setId($value ? (string)$value : null);  | 
                                                        |
| 387 | 387 | |
| 388 | 388 | return;  | 
                                                        
| 389 | 389 | }  |