Completed
Pull Request — master (#10)
by Woody
08:14
created
src/JsonApiHydrator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
     protected function mapRelationshipsArray(array $data)
67 67
     {
68 68
         return array_map(
69
-            function ($relation) {
69
+            function($relation) {
70 70
                 return $this->getResourceId($relation) ?: ['attributes' => $relation];
71 71
             },
72 72
             $data
Please login to merge, or discard this patch.
src/ArrayHydrator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
127 127
 
128 128
                     $type = Type::getType($fieldType);
129 129
 
130
-                    if (! in_array($type->getName(), $jsonTypes, true)) {
130
+                    if (!in_array($type->getName(), $jsonTypes, true)) {
131 131
                         $value = $type->convertToPHPValue($value, $platform);
132 132
                     }
133 133
                 }
Please login to merge, or discard this patch.