Completed
Pull Request — master (#11)
by Çağrı
06:55
created
src/Application.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -38,12 +38,12 @@  discard block
 block discarded – undo
38 38
 
39 39
     public function getCacheDir()
40 40
     {
41
-        return $this->getRootDir().'/var/cache/'.$this->environment;
41
+        return $this->getRootDir() . '/var/cache/' . $this->environment;
42 42
     }
43 43
 
44 44
     public function getConfigurationDir()
45 45
     {
46
-        return $this->getRootDir().'/config';
46
+        return $this->getRootDir() . '/config';
47 47
     }
48 48
 
49 49
     public function getEnvironment()
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 
54 54
     public function getLogDir()
55 55
     {
56
-        return $this->getRootDir().'/var/log';
56
+        return $this->getRootDir() . '/var/log';
57 57
     }
58 58
 
59 59
     public function getRootDir()
@@ -74,8 +74,8 @@  discard block
 block discarded – undo
74 74
     {
75 75
         $settings = $this->readConfigFile('framework.php', ['app' => $this]);
76 76
 
77
-        if (file_exists($this->getConfigurationDir().'/settings.'.$this->getEnvironment().'.php')) {
78
-            $filename = 'settings.'.$this->getEnvironment().'.php';
77
+        if (file_exists($this->getConfigurationDir() . '/settings.' . $this->getEnvironment() . '.php')) {
78
+            $filename = 'settings.' . $this->getEnvironment() . '.php';
79 79
         } else {
80 80
             $filename = 'settings.php';
81 81
         }
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
         $controllers = $this->readConfigFile('controllers.php', ['container' => $container]);
108 108
 
109 109
         foreach ($controllers as $key => $class) {
110
-            $container['controller.'.$key] = function ($container) use ($class) {
110
+            $container['controller.' . $key] = function($container) use ($class) {
111 111
                 return new $class($container);
112 112
             };
113 113
         }
@@ -131,6 +131,6 @@  discard block
 block discarded – undo
131 131
             }
132 132
         }
133 133
 
134
-        return require $this->getConfigurationDir().'/'.$filename;
134
+        return require $this->getConfigurationDir() . '/' . $filename;
135 135
     }
136 136
 }
Please login to merge, or discard this patch.