@@ -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, |
@@ -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 | /** |
@@ -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 | }; |
@@ -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'); |