@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | } |
80 | 80 | |
81 | 81 | if (property_exists($data, 'attributes')) { |
82 | - $item->fill((array) $data->attributes); |
|
82 | + $item->fill((array)$data->attributes); |
|
83 | 83 | } |
84 | 84 | |
85 | 85 | if (property_exists($data, 'relationships')) { |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | if (is_array($data)) { |
167 | 167 | return Collection::make($data) |
168 | 168 | ->map( |
169 | - function ($identifier) { |
|
169 | + function($identifier) { |
|
170 | 170 | return $this->parseRelationshipData($identifier); |
171 | 171 | } |
172 | 172 | ); |
@@ -21,6 +21,6 @@ |
||
21 | 21 | throw new ValidationException(sprintf('Meta has to 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 | } |
@@ -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 | /** |
@@ -57,9 +57,9 @@ |
||
57 | 57 | } |
58 | 58 | |
59 | 59 | return new Links( |
60 | - Collection::wrap((array) $data) |
|
60 | + Collection::wrap((array)$data) |
|
61 | 61 | ->map( |
62 | - function ($link, $name) { |
|
62 | + function($link, $name) { |
|
63 | 63 | return $this->buildLink($link, $name); |
64 | 64 | } |
65 | 65 | ) |
@@ -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 | } |