Passed
Push — master ( 8dc3b8...159e86 )
by Nicolas
06:34
created
src/Serializer/Normalizer/ArticleNormalizer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
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()),
Please login to merge, or discard this patch.
src/DataFixtures/AppFixtures.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,6 +31,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Serializer/Normalizer/FormErrorNormalizer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,11 +24,11 @@
 block discarded – undo
24 24
 
25 25
         /** @var array $data */
26 26
         $data = $data['errors']['children'];
27
-        $data = \array_filter($data, function (array $child) {
27
+        $data = \array_filter($data, function(array $child) {
28 28
             return isset($child['errors']) && \count($child['errors']) > 0;
29 29
         });
30 30
 
31
-        return \array_map(function (array $child) {
31
+        return \array_map(function(array $child) {
32 32
             return $child['errors'] ?? [];
33 33
         }, $data);
34 34
     }
Please login to merge, or discard this patch.
src/Kernel.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.