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