Test Setup Failed
Branch master (826440)
by Alberto
03:54
created
Category
src/functions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 {
23 23
     return array_reduce(
24 24
         array_keys($haystack),
25
-        static function (bool $valid, $key): bool {
25
+        static function(bool $valid, $key): bool {
26 26
             return true === $valid && true === is_int($key);
27 27
         },
28 28
         true
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 {
40 40
     return array_reduce(
41 41
         array_values($haystack),
42
-        static function (bool $valid, $key) use ($all): bool {
42
+        static function(bool $valid, $key) use ($all): bool {
43 43
             $isArray = true === is_array($key);
44 44
             if (true === $all) {
45 45
                 return true === $valid && true === $isArray;
Please login to merge, or discard this patch.
src/Serialization/JsonApiDeserializer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
         unset($relationship[self::REFERENCE_ATTRIBUTES], $relationship[self::REFERENCE_RELATIONSHIPS]);
228 228
 
229 229
         $relationships = array_map(
230
-            function ($key, $item) {
230
+            function($key, $item) {
231 231
                 return $this->parseRelationship($key, $item[self::REFERENCE_DATA] ?? $item);
232 232
             },
233 233
             array_keys($relationships),
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
 
265 265
         $recursiveRelationships = array_filter(
266 266
             $relationship,
267
-            static function ($item, $key) {
267
+            static function($item, $key) {
268 268
                 return true === is_int($key) || (true === is_array($item) && true === array_key_exists(self::REFERENCE_DATA, $item));
269 269
             },
270 270
             ARRAY_FILTER_USE_BOTH
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
275 275
             $key => array_merge(
276 276
                 $this->completeRelationship($normalRelationships) ?? [],
277 277
                 ...array_map(
278
-                    function ($subKey, $item) {
278
+                    function($subKey, $item) {
279 279
                         if (false === is_int($subKey)) {
280 280
                             return $this->parseRelationship($subKey, $item[self::REFERENCE_DATA], true);
281 281
                         }
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
             }
306 306
 
307 307
             return array_map(
308
-                function ($element) {
308
+                function($element) {
309 309
                     return $this->parseData($element);
310 310
                 },
311 311
                 $data
Please login to merge, or discard this patch.
src/Serialization/JsonApiSerializer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
         $attributes = self::filterKeyOrAttributes($reference, true);
249 249
         $relationships = array_filter(
250 250
             $reference,
251
-            static function ($item, $key) {
251
+            static function($item, $key) {
252 252
                 if (true === is_int($key)) {
253 253
                     return false;
254 254
                 }
@@ -293,7 +293,7 @@  discard block
 block discarded – undo
293 293
             $parsedReference = $this->parseReference($elements);
294 294
             if (null === $parsedReference) {
295 295
                 return array_map(
296
-                    function ($element) {
296
+                    function($element) {
297 297
                         return $this->processRecursiveElement($element);
298 298
                     },
299 299
                     $elements
Please login to merge, or discard this patch.
src/Serialization/JsonApiSerializerDeserializerTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
 
32 32
         return array_reduce(
33 33
             $element,
34
-            static function ($valid, $item) use ($all): bool {
34
+            static function($valid, $item) use ($all): bool {
35 35
                 $isReference = static::isReference($item);
36 36
                 if (true === $all) {
37 37
                     return true === $valid && true === $isReference;
Please login to merge, or discard this patch.