@@ -22,6 +22,6 @@ |
||
22 | 22 | |
23 | 23 | public function load(ObjectManager $manager): void |
24 | 24 | { |
25 | - $this->loader->load([__DIR__ . '/../../fixtures/data.yaml']); |
|
25 | + $this->loader->load([__DIR__.'/../../fixtures/data.yaml']); |
|
26 | 26 | } |
27 | 27 | } |
@@ -39,7 +39,7 @@ |
||
39 | 39 | 'title' => $object->getTitle(), |
40 | 40 | 'description' => $object->getDescription(), |
41 | 41 | 'body' => $object->getBody(), |
42 | - 'tagList' => \array_map(fn (Tag $tag) => $this->normalizer->normalize($tag), $object->getTags()->toArray()), |
|
42 | + 'tagList' => \array_map(fn(Tag $tag) => $this->normalizer->normalize($tag), $object->getTags()->toArray()), |
|
43 | 43 | 'createdAt' => $this->normalizer->normalize($object->getCreatedAt()), |
44 | 44 | 'updatedAt' => $this->normalizer->normalize($object->getCreatedAt()), |
45 | 45 | 'favorited' => false, |
@@ -24,8 +24,8 @@ |
||
24 | 24 | |
25 | 25 | /** @var array $data */ |
26 | 26 | $data = $data['errors']['children']; |
27 | - $data = \array_filter($data, fn (array $child) => isset($child['errors']) && \count($child['errors']) > 0); |
|
27 | + $data = \array_filter($data, fn(array $child) => isset($child['errors']) && \count($child['errors']) > 0); |
|
28 | 28 | |
29 | - return \array_map(fn (array $child) => $child['errors'] ?? [], $data); |
|
29 | + return \array_map(fn(array $child) => $child['errors'] ?? [], $data); |
|
30 | 30 | } |
31 | 31 | } |