Test Failed
Push — master ( 06623e...343947 )
by Lukas
04:19
created
src/Pipe/LoaderPropertiesPipe.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      */
33 33
     public function pipe($resource, Context $context, Path $path, $data)
34 34
     {
35
-        if (! $context instanceof HasSchema) {
35
+        if (!$context instanceof HasSchema) {
36 36
             return $data;
37 37
         }
38 38
 
@@ -50,15 +50,15 @@  discard block
 block discarded – undo
50 50
 
51 51
     private function getProperties(array $schema): array
52 52
     {
53
-        return array_map(function ($value, $key) {
53
+        return array_map(function($value, $key) {
54 54
             return is_string($value) ? $value : $key;
55 55
         }, $schema, array_keys($schema));
56 56
     }
57 57
 
58 58
     private function getPathSchema(Path $path, array $schema): array
59 59
     {
60
-        $segments = array_filter($path->getSegments(), function ($segment) {
61
-            return ! is_numeric($segment);
60
+        $segments = array_filter($path->getSegments(), function($segment) {
61
+            return !is_numeric($segment);
62 62
         });
63 63
 
64 64
         return $this->arrayGet($schema, $segments, []);
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     private function arrayGet(array $array, array $path, $default): array
68 68
     {
69 69
         foreach ($path as $key) {
70
-            if (! array_key_exists($key, $array)) {
70
+            if (!array_key_exists($key, $array)) {
71 71
                 return $default;
72 72
             }
73 73
 
Please login to merge, or discard this patch.
src/DeferredAwareTransformer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      */
49 49
     protected function transformAny($deferred, Context $context, Path $path)
50 50
     {
51
-        if (! $deferred instanceof Deferred) {
51
+        if (!$deferred instanceof Deferred) {
52 52
             return parent::transformAny($deferred, $context, $path);
53 53
         }
54 54
 
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
         $property = $deferred->getProperty();
57 57
         $resourceClass = get_class($resource);
58 58
 
59
-        $this->deferredTree = Arr::setValue($this->deferredTree, [$resourceClass, $property, (string)$path], $deferred);
59
+        $this->deferredTree = Arr::setValue($this->deferredTree, [$resourceClass, $property, (string) $path], $deferred);
60 60
 
61 61
         return null;
62 62
     }
Please login to merge, or discard this patch.