@@ -44,7 +44,7 @@ |
||
44 | 44 | 'title' => $object->getTitle(), |
45 | 45 | 'description' => $object->getDescription(), |
46 | 46 | 'body' => $object->getBody(), |
47 | - 'tagList' => \array_map(function (Tag $tag) { |
|
47 | + 'tagList' => \array_map(function(Tag $tag) { |
|
48 | 48 | return $this->normalizer->normalize($tag); |
49 | 49 | }, $object->getTags()->toArray()), |
50 | 50 | 'createdAt' => $this->normalizer->normalize($object->getCreatedAt()), |
@@ -31,6 +31,6 @@ |
||
31 | 31 | */ |
32 | 32 | public function load(ObjectManager $manager): void |
33 | 33 | { |
34 | - $this->loader->load([__DIR__ . '/../../fixtures/data.yaml']); |
|
34 | + $this->loader->load([__DIR__.'/../../fixtures/data.yaml']); |
|
35 | 35 | } |
36 | 36 | } |
@@ -24,11 +24,11 @@ |
||
24 | 24 | |
25 | 25 | /** @var array $data */ |
26 | 26 | $data = $data['errors']['children']; |
27 | - $data = \array_filter($data, function ($child) { |
|
27 | + $data = \array_filter($data, function($child) { |
|
28 | 28 | return isset($child['errors']) && \count($child['errors']) > 0; |
29 | 29 | }); |
30 | 30 | |
31 | - return \array_map(function ($child) { |
|
31 | + return \array_map(function($child) { |
|
32 | 32 | return $child['errors'] ?? []; |
33 | 33 | }, $data); |
34 | 34 | } |
@@ -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 | |
30 | 30 | foreach ($contents as $class => $envs) { |
31 | 31 | if ($envs[$this->environment] ?? $envs['all'] ?? false) { |
@@ -47,14 +47,14 @@ discard block |
||
47 | 47 | */ |
48 | 48 | protected function configureContainer(ContainerBuilder $container, LoaderInterface $loader): void |
49 | 49 | { |
50 | - $container->addResource(new FileResource($this->getProjectDir() . '/config/bundles.php')); |
|
50 | + $container->addResource(new FileResource($this->getProjectDir().'/config/bundles.php')); |
|
51 | 51 | $container->setParameter('container.dumper.inline_class_loader', 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 | } |