@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | */ |
26 | 26 | public function registerBundles(): iterable |
27 | 27 | { |
28 | - $contents = require $this->getProjectDir() . '/config/bundles.php'; |
|
28 | + $contents = require $this->getProjectDir().'/config/bundles.php'; |
|
29 | 29 | foreach ($contents as $class => $envs) { |
30 | 30 | if ($envs[$this->environment] ?? $envs['all'] ?? false) { |
31 | 31 | yield new $class(); |
@@ -46,15 +46,15 @@ discard block |
||
46 | 46 | */ |
47 | 47 | protected function configureContainer(ContainerBuilder $container, LoaderInterface $loader): void |
48 | 48 | { |
49 | - $container->addResource(new FileResource($this->getProjectDir() . '/config/bundles.php')); |
|
49 | + $container->addResource(new FileResource($this->getProjectDir().'/config/bundles.php')); |
|
50 | 50 | $container->setParameter('container.dumper.inline_class_loader', !\ini_get('opcache.preload')); |
51 | 51 | $container->setParameter('container.dumper.inline_factories', true); |
52 | - $confDir = $this->getProjectDir() . '/config'; |
|
52 | + $confDir = $this->getProjectDir().'/config'; |
|
53 | 53 | |
54 | - $loader->load($confDir . '/{packages}/*' . self::CONFIG_EXTS, 'glob'); |
|
55 | - $loader->load($confDir . '/{packages}/' . $this->environment . '/*' . self::CONFIG_EXTS, 'glob'); |
|
56 | - $loader->load($confDir . '/{services}' . self::CONFIG_EXTS, 'glob'); |
|
57 | - $loader->load($confDir . '/{services}_' . $this->environment . self::CONFIG_EXTS, 'glob'); |
|
54 | + $loader->load($confDir.'/{packages}/*'.self::CONFIG_EXTS, 'glob'); |
|
55 | + $loader->load($confDir.'/{packages}/'.$this->environment.'/*'.self::CONFIG_EXTS, 'glob'); |
|
56 | + $loader->load($confDir.'/{services}'.self::CONFIG_EXTS, 'glob'); |
|
57 | + $loader->load($confDir.'/{services}_'.$this->environment.self::CONFIG_EXTS, 'glob'); |
|
58 | 58 | } |
59 | 59 | |
60 | 60 | /** |
@@ -62,10 +62,10 @@ discard block |
||
62 | 62 | */ |
63 | 63 | protected function configureRoutes(RouteCollectionBuilder $routes): void |
64 | 64 | { |
65 | - $confDir = $this->getProjectDir() . '/config'; |
|
65 | + $confDir = $this->getProjectDir().'/config'; |
|
66 | 66 | |
67 | - $routes->import($confDir . '/{routes}/' . $this->environment . '/*' . self::CONFIG_EXTS, '/', 'glob'); |
|
68 | - $routes->import($confDir . '/{routes}/*' . self::CONFIG_EXTS, '/', 'glob'); |
|
69 | - $routes->import($confDir . '/{routes}' . self::CONFIG_EXTS, '/', 'glob'); |
|
67 | + $routes->import($confDir.'/{routes}/'.$this->environment.'/*'.self::CONFIG_EXTS, '/', 'glob'); |
|
68 | + $routes->import($confDir.'/{routes}/*'.self::CONFIG_EXTS, '/', 'glob'); |
|
69 | + $routes->import($confDir.'/{routes}'.self::CONFIG_EXTS, '/', 'glob'); |
|
70 | 70 | } |
71 | 71 | } |
@@ -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 | } |