@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | { |
150 | 150 | $availableIncludeKeys = $this->availableIncludeKeys(); |
151 | 151 | |
152 | - return array_filter($this->includeKeys(), function ($includeKey) use ($availableIncludeKeys) { |
|
152 | + return array_filter($this->includeKeys(), function($includeKey) use ($availableIncludeKeys) { |
|
153 | 153 | return \in_array($includeKey, $availableIncludeKeys, true); |
154 | 154 | }); |
155 | 155 | } |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | { |
180 | 180 | // We can consider our props anything that has not been mapped. |
181 | 181 | $resolvedIncludeKeys = $this->resolvedIncludeKeys(); |
182 | - $keys = array_filter($this->includeKeys(), function ($includeKey) use ($resolvedIncludeKeys) { |
|
182 | + $keys = array_filter($this->includeKeys(), function($includeKey) use ($resolvedIncludeKeys) { |
|
183 | 183 | return !\in_array($includeKey, $resolvedIncludeKeys, true); |
184 | 184 | }); |
185 | 185 | |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | // defined that we want. |
248 | 248 | $filterProps = $this->filterProps(); |
249 | 249 | if (!empty($filterProps)) { |
250 | - $filteredData = array_filter($data, function ($key) use ($filterProps) { |
|
250 | + $filteredData = array_filter($data, function($key) use ($filterProps) { |
|
251 | 251 | return \in_array($key, $filterProps, true); |
252 | 252 | }, ARRAY_FILTER_USE_KEY); |
253 | 253 |
@@ -59,7 +59,7 @@ |
||
59 | 59 | return $resource->toArray(); |
60 | 60 | } |
61 | 61 | |
62 | - throw new UnhandledResourceType('Unable to serialize resource of type '.\gettype($resource)); |
|
62 | + throw new UnhandledResourceType('Unable to serialize resource of type ' . \gettype($resource)); |
|
63 | 63 | } |
64 | 64 | |
65 | 65 | // Try to resolve a transformer for a resource that does not have one assigned. |