@@ -15,11 +15,11 @@ |
||
| 15 | 15 | $data = parent::normalize($object, $format, $context); |
| 16 | 16 | $data = $data['errors']['children']; |
| 17 | 17 | |
| 18 | - $data = array_filter($data, function ($child) { |
|
| 18 | + $data = array_filter($data, function($child) { |
|
| 19 | 19 | return isset($child['errors']) && \count($child['errors']) > 0; |
| 20 | 20 | }); |
| 21 | 21 | |
| 22 | - $data = array_map(function ($child) { |
|
| 22 | + $data = array_map(function($child) { |
|
| 23 | 23 | return isset($child['errors']) ? $child['errors'] : []; |
| 24 | 24 | }, $data); |
| 25 | 25 | |