@@ -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 | } |
@@ -4,6 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | require_once dirname(__DIR__).'/vendor/autoload_runtime.php'; |
| 6 | 6 | |
| 7 | -return function (array $context) { |
|
| 7 | +return function(array $context) { |
|
| 8 | 8 | return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']); |
| 9 | 9 | }; |
@@ -29,9 +29,9 @@ |
||
| 29 | 29 | |
| 30 | 30 | /** @var array $data */ |
| 31 | 31 | $data = $data['errors']['children']; |
| 32 | - $data = array_filter($data, fn (array $child) => isset($child['errors']) && \count($child['errors']) > 0); |
|
| 32 | + $data = array_filter($data, fn(array $child) => isset($child['errors']) && \count($child['errors']) > 0); |
|
| 33 | 33 | |
| 34 | - return array_map(fn (array $child) => $child['errors'] ?? [], $data); |
|
| 34 | + return array_map(fn(array $child) => $child['errors'] ?? [], $data); |
|
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | /** |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | 'title' => $object->getTitle(), |
| 37 | 37 | 'description' => $object->getDescription(), |
| 38 | 38 | 'body' => $object->getBody(), |
| 39 | - 'tagList' => array_map(fn (Tag $tag) => $this->normalizer->normalize($tag), $object->getTags()->toArray()), |
|
| 39 | + 'tagList' => array_map(fn(Tag $tag) => $this->normalizer->normalize($tag), $object->getTags()->toArray()), |
|
| 40 | 40 | 'createdAt' => $this->normalizer->normalize($object->getCreatedAt()), |
| 41 | 41 | 'updatedAt' => $this->normalizer->normalize($object->getCreatedAt()), |
| 42 | 42 | 'favorited' => false, |