@@ -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()), |
@@ -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 | - $data = \array_map(function ($child) { |
|
31 | + $data = \array_map(function($child) { |
|
32 | 32 | return $child['errors'] ?? []; |
33 | 33 | }, $data); |
34 | 34 |