Completed
Pull Request — master (#3)
by Dejan
06:16
created
src/AppBundle/Kernel.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -17,17 +17,17 @@  discard block
 block discarded – undo
17 17
 
18 18
     public function getCacheDir()
19 19
     {
20
-        return $this->getProjectDir().'/var/cache/'.$this->environment;
20
+        return $this->getProjectDir() . '/var/cache/' . $this->environment;
21 21
     }
22 22
 
23 23
     public function getLogDir()
24 24
     {
25
-        return $this->getProjectDir().'/var/log';
25
+        return $this->getProjectDir() . '/var/log';
26 26
     }
27 27
 
28 28
     public function registerBundles()
29 29
     {
30
-        $contents = require $this->getProjectDir().'/config/bundles.php';
30
+        $contents = require $this->getProjectDir() . '/config/bundles.php';
31 31
         foreach ($contents as $class => $envs) {
32 32
             if (isset($envs['all']) || isset($envs[$this->environment])) {
33 33
                 yield new $class();
@@ -37,25 +37,25 @@  discard block
 block discarded – undo
37 37
 
38 38
     protected function configureContainer(ContainerBuilder $container, LoaderInterface $loader)
39 39
     {
40
-        $container->addResource(new FileResource($this->getProjectDir().'/config/bundles.php'));
40
+        $container->addResource(new FileResource($this->getProjectDir() . '/config/bundles.php'));
41 41
         // Feel free to remove the "container.autowiring.strict_mode" parameter
42 42
         // if you are using symfony/dependency-injection 4.0+ as it's the default behavior
43 43
         $container->setParameter('container.autowiring.strict_mode', true);
44 44
         $container->setParameter('container.dumper.inline_class_loader', true);
45
-        $confDir = $this->getProjectDir().'/config';
45
+        $confDir = $this->getProjectDir() . '/config';
46 46
 
47
-        $loader->load($confDir.'/{packages}/*'.self::CONFIG_EXTS, 'glob');
48
-        $loader->load($confDir.'/{packages}/'.$this->environment.'/**/*'.self::CONFIG_EXTS, 'glob');
49
-        $loader->load($confDir.'/{services}'.self::CONFIG_EXTS, 'glob');
50
-        $loader->load($confDir.'/{services}_'.$this->environment.self::CONFIG_EXTS, 'glob');
47
+        $loader->load($confDir . '/{packages}/*' . self::CONFIG_EXTS, 'glob');
48
+        $loader->load($confDir . '/{packages}/' . $this->environment . '/**/*' . self::CONFIG_EXTS, 'glob');
49
+        $loader->load($confDir . '/{services}' . self::CONFIG_EXTS, 'glob');
50
+        $loader->load($confDir . '/{services}_' . $this->environment . self::CONFIG_EXTS, 'glob');
51 51
     }
52 52
 
53 53
     protected function configureRoutes(RouteCollectionBuilder $routes)
54 54
     {
55
-        $confDir = $this->getProjectDir().'/config';
55
+        $confDir = $this->getProjectDir() . '/config';
56 56
 
57
-        $routes->import($confDir.'/{routes}/*'.self::CONFIG_EXTS, '/', 'glob');
58
-        $routes->import($confDir.'/{routes}/'.$this->environment.'/**/*'.self::CONFIG_EXTS, '/', 'glob');
59
-        $routes->import($confDir.'/{routes}'.self::CONFIG_EXTS, '/', 'glob');
57
+        $routes->import($confDir . '/{routes}/*' . self::CONFIG_EXTS, '/', 'glob');
58
+        $routes->import($confDir . '/{routes}/' . $this->environment . '/**/*' . self::CONFIG_EXTS, '/', 'glob');
59
+        $routes->import($confDir . '/{routes}' . self::CONFIG_EXTS, '/', 'glob');
60 60
     }
61 61
 }
Please login to merge, or discard this patch.
public/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,14 +5,14 @@
 block discarded – undo
5 5
 use Symfony\Component\Dotenv\Dotenv;
6 6
 use Symfony\Component\HttpFoundation\Request;
7 7
 
8
-require __DIR__.'/../vendor/autoload.php';
8
+require __DIR__ . '/../vendor/autoload.php';
9 9
 
10 10
 // The check is to ensure we don't use .env in production
11 11
 if (!isset($_SERVER['APP_ENV'])) {
12 12
     if (!class_exists(Dotenv::class)) {
13 13
         throw new \RuntimeException('APP_ENV environment variable is not defined. You need to define environment variables for configuration or add "symfony/dotenv" as a Composer dependency to load variables from a .env file.');
14 14
     }
15
-    (new Dotenv())->load(__DIR__.'/../.env');
15
+    (new Dotenv())->load(__DIR__ . '/../.env');
16 16
 }
17 17
 
18 18
 $env = $_SERVER['APP_ENV'] ?? 'dev';
Please login to merge, or discard this patch.