@@ -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, |
@@ -16,14 +16,14 @@ |
||
| 16 | 16 | protected function configureContainer(ContainerConfigurator $container): void |
| 17 | 17 | { |
| 18 | 18 | $container->import('../config/{packages}/*.yaml'); |
| 19 | - $container->import('../config/{packages}/' . $this->environment . '/*.yaml'); |
|
| 19 | + $container->import('../config/{packages}/'.$this->environment.'/*.yaml'); |
|
| 20 | 20 | $container->import('../config/{services}.yaml'); |
| 21 | - $container->import('../config/{services}_' . $this->environment . '.yaml'); |
|
| 21 | + $container->import('../config/{services}_'.$this->environment.'.yaml'); |
|
| 22 | 22 | } |
| 23 | 23 | |
| 24 | 24 | protected function configureRoutes(RoutingConfigurator $routes): void |
| 25 | 25 | { |
| 26 | - $routes->import('../config/{routes}/' . $this->environment . '/*.yaml'); |
|
| 26 | + $routes->import('../config/{routes}/'.$this->environment.'/*.yaml'); |
|
| 27 | 27 | $routes->import('../config/{routes}/*.yaml'); |
| 28 | 28 | $routes->import('../config/{routes}.yaml'); |
| 29 | 29 | } |
@@ -31,9 +31,9 @@ |
||
| 31 | 31 | |
| 32 | 32 | /** @var array $data */ |
| 33 | 33 | $data = $data['errors']['children']; |
| 34 | - $data = \array_filter($data, fn (array $child) => isset($child['errors']) && \count($child['errors']) > 0); |
|
| 34 | + $data = \array_filter($data, fn(array $child) => isset($child['errors']) && \count($child['errors']) > 0); |
|
| 35 | 35 | |
| 36 | - return \array_map(fn (array $child) => $child['errors'] ?? [], $data); |
|
| 36 | + return \array_map(fn(array $child) => $child['errors'] ?? [], $data); |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | /** |