@@ -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, |
@@ -16,11 +16,11 @@ discard block |
||
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 | |
21 | - if (is_file(\dirname(__DIR__) . '/config/services.yaml')) { |
|
21 | + if (is_file(\dirname(__DIR__).'/config/services.yaml')) { |
|
22 | 22 | $container->import('../config/services.yaml'); |
23 | - $container->import('../config/{services}_' . $this->environment . '.yaml'); |
|
23 | + $container->import('../config/{services}_'.$this->environment.'.yaml'); |
|
24 | 24 | } else { |
25 | 25 | $container->import('../config/{services}.php'); |
26 | 26 | } |
@@ -28,10 +28,10 @@ discard block |
||
28 | 28 | |
29 | 29 | protected function configureRoutes(RoutingConfigurator $routes): void |
30 | 30 | { |
31 | - $routes->import('../config/{routes}/' . $this->environment . '/*.yaml'); |
|
31 | + $routes->import('../config/{routes}/'.$this->environment.'/*.yaml'); |
|
32 | 32 | $routes->import('../config/{routes}/*.yaml'); |
33 | 33 | |
34 | - if (is_file(\dirname(__DIR__) . '/config/routes.yaml')) { |
|
34 | + if (is_file(\dirname(__DIR__).'/config/routes.yaml')) { |
|
35 | 35 | $routes->import('../config/routes.yaml'); |
36 | 36 | } else { |
37 | 37 | $routes->import('../config/{routes}.php'); |