@@ -24,11 +24,11 @@ |
||
| 24 | 24 | |
| 25 | 25 | /** @var array $data */ |
| 26 | 26 | $data = $data['errors']['children']; |
| 27 | - $data = \array_filter($data, function ($child) { |
|
| 27 | + $data = \array_filter($data, function($child) { |
|
| 28 | 28 | return isset($child['errors']) && \count($child['errors']) > 0; |
| 29 | 29 | }); |
| 30 | 30 | |
| 31 | - return \array_map(function ($child) { |
|
| 31 | + return \array_map(function($child) { |
|
| 32 | 32 | return $child['errors'] ?? []; |
| 33 | 33 | }, $data); |
| 34 | 34 | } |