@@ -17,11 +17,11 @@ |
||
| 17 | 17 | $data = parent::normalize($object, $format, $context); |
| 18 | 18 | $data = $data['errors']['children']; |
| 19 | 19 | |
| 20 | - $data = \array_filter($data, function ($child) { |
|
| 20 | + $data = \array_filter($data, function($child) { |
|
| 21 | 21 | return isset($child['errors']) && \count($child['errors']) > 0; |
| 22 | 22 | }); |
| 23 | 23 | |
| 24 | - $data = \array_map(function ($child) { |
|
| 24 | + $data = \array_map(function($child) { |
|
| 25 | 25 | return $child['errors'] ?? []; |
| 26 | 26 | }, $data); |
| 27 | 27 | |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | 'title' => $object->getTitle(), |
| 45 | 45 | 'description' => $object->getDescription(), |
| 46 | 46 | 'body' => $object->getBody(), |
| 47 | - 'tagList' => \array_map(function (Tag $tag) { |
|
| 47 | + 'tagList' => \array_map(function(Tag $tag) { |
|
| 48 | 48 | return $this->normalizer->normalize($tag); |
| 49 | 49 | }, $object->getTags()->toArray()), |
| 50 | 50 | 'createdAt' => $this->normalizer->normalize($object->getCreatedAt()), |