@@ -42,7 +42,7 @@ |
||
42 | 42 | 'title' => $object->getTitle(), |
43 | 43 | 'description' => $object->getDescription(), |
44 | 44 | 'body' => $object->getBody(), |
45 | - 'tagList' => array_map(function (Tag $tag) { |
|
45 | + 'tagList' => array_map(function(Tag $tag) { |
|
46 | 46 | return $this->normalizer->normalize($tag); |
47 | 47 | }, $object->getTags()->toArray()), |
48 | 48 | 'createdAt' => $this->normalizer->normalize($object->getCreatedAt()), |
@@ -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 |