Completed
Push — master ( 0e53b5...b50ebe )
by Jodie
02:34
created
src/Transformer/Pipeline.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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.
Please login to merge, or discard this patch.