Passed
Push — master ( 659ed2...0f05ec )
by Nicolas
05:47
created
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
 
30 30
         foreach ($contents as $class => $envs) {
31 31
             if ($envs[$this->environment] ?? $envs['all'] ?? false) {
@@ -47,14 +47,14 @@  discard block
 block discarded – undo
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
 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.