@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | return $resource->toArray(); |
61 | 61 | } |
62 | 62 | |
63 | - throw new UnhandledResourceType('Unable to serialize resource of type '.\gettype($resource)); |
|
63 | + throw new UnhandledResourceType('Unable to serialize resource of type ' . \gettype($resource)); |
|
64 | 64 | } |
65 | 65 | |
66 | 66 | if (!$resource->getData()) { |
@@ -204,13 +204,13 @@ discard block |
||
204 | 204 | // Handle when no transformer is present |
205 | 205 | if (empty($transformer)) { |
206 | 206 | // No transformation |
207 | - return (array) $data; |
|
207 | + return (array)$data; |
|
208 | 208 | } |
209 | 209 | |
210 | 210 | // Handle when transformer is a callable |
211 | 211 | if (\is_callable($transformer)) { |
212 | 212 | // Simply run callable on the data and return the result |
213 | - return (array) $transformer($data); |
|
213 | + return (array)$transformer($data); |
|
214 | 214 | } |
215 | 215 | |
216 | 216 | // Ensure we're working with a real transformer from this point forward. |