@@ -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()), |
@@ -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 | - $data = \array_map(function ($child) { |
|
31 | + $data = \array_map(function($child) { |
|
32 | 32 | return $child['errors'] ?? []; |
33 | 33 | }, $data); |
34 | 34 |
@@ -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 | } |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | */ |
26 | 26 | public function getCacheDir(): string |
27 | 27 | { |
28 | - return $this->getProjectDir() . '/var/cache/' . $this->environment; |
|
28 | + return $this->getProjectDir().'/var/cache/'.$this->environment; |
|
29 | 29 | } |
30 | 30 | |
31 | 31 | /** |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | */ |
34 | 34 | public function getLogDir(): string |
35 | 35 | { |
36 | - return $this->getProjectDir() . '/var/log'; |
|
36 | + return $this->getProjectDir().'/var/log'; |
|
37 | 37 | } |
38 | 38 | |
39 | 39 | /** |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | */ |
42 | 42 | public function registerBundles() |
43 | 43 | { |
44 | - $contents = require $this->getProjectDir() . '/config/bundles.php'; |
|
44 | + $contents = require $this->getProjectDir().'/config/bundles.php'; |
|
45 | 45 | |
46 | 46 | foreach ($contents as $class => $envs) { |
47 | 47 | if (isset($envs['all']) || isset($envs[$this->environment])) { |
@@ -55,14 +55,14 @@ discard block |
||
55 | 55 | */ |
56 | 56 | protected function configureContainer(ContainerBuilder $container, LoaderInterface $loader): void |
57 | 57 | { |
58 | - $container->addResource(new FileResource($this->getProjectDir() . '/config/bundles.php')); |
|
58 | + $container->addResource(new FileResource($this->getProjectDir().'/config/bundles.php')); |
|
59 | 59 | $container->setParameter('container.dumper.inline_class_loader', true); |
60 | 60 | |
61 | - $confDir = $this->getProjectDir() . '/config'; |
|
62 | - $loader->load($confDir . '/{packages}/*' . self::CONFIG_EXTS, 'glob'); |
|
63 | - $loader->load($confDir . '/{packages}/' . $this->environment . '/**/*' . self::CONFIG_EXTS, 'glob'); |
|
64 | - $loader->load($confDir . '/{services}' . self::CONFIG_EXTS, 'glob'); |
|
65 | - $loader->load($confDir . '/{services}_' . $this->environment . self::CONFIG_EXTS, 'glob'); |
|
61 | + $confDir = $this->getProjectDir().'/config'; |
|
62 | + $loader->load($confDir.'/{packages}/*'.self::CONFIG_EXTS, 'glob'); |
|
63 | + $loader->load($confDir.'/{packages}/'.$this->environment.'/**/*'.self::CONFIG_EXTS, 'glob'); |
|
64 | + $loader->load($confDir.'/{services}'.self::CONFIG_EXTS, 'glob'); |
|
65 | + $loader->load($confDir.'/{services}_'.$this->environment.self::CONFIG_EXTS, 'glob'); |
|
66 | 66 | } |
67 | 67 | |
68 | 68 | /** |
@@ -70,9 +70,9 @@ discard block |
||
70 | 70 | */ |
71 | 71 | protected function configureRoutes(RouteCollectionBuilder $routes): void |
72 | 72 | { |
73 | - $confDir = $this->getProjectDir() . '/config'; |
|
74 | - $routes->import($confDir . '/{routes}/*' . self::CONFIG_EXTS, '/', 'glob'); |
|
75 | - $routes->import($confDir . '/{routes}/' . $this->environment . '/**/*' . self::CONFIG_EXTS, '/', 'glob'); |
|
76 | - $routes->import($confDir . '/{routes}' . self::CONFIG_EXTS, '/', 'glob'); |
|
73 | + $confDir = $this->getProjectDir().'/config'; |
|
74 | + $routes->import($confDir.'/{routes}/*'.self::CONFIG_EXTS, '/', 'glob'); |
|
75 | + $routes->import($confDir.'/{routes}/'.$this->environment.'/**/*'.self::CONFIG_EXTS, '/', 'glob'); |
|
76 | + $routes->import($confDir.'/{routes}'.self::CONFIG_EXTS, '/', 'glob'); |
|
77 | 77 | } |
78 | 78 | } |