@@ -40,7 +40,7 @@ |
||
40 | 40 | ); |
41 | 41 | } |
42 | 42 | |
43 | - $benchmark = $this->benchmark('callAction', $controller . '::' . ($action ?? '~default~')); |
|
43 | + $benchmark = $this->benchmark('callAction', $controller.'::'.($action ?? '~default~')); |
|
44 | 44 | |
45 | 45 | //Making sure that all static functionality works well |
46 | 46 | $iocScope = self::staticContainer($this->container); |
@@ -130,14 +130,14 @@ discard block |
||
130 | 130 | * Default directories pattern, you can overwrite any directory you want in index file. |
131 | 131 | */ |
132 | 132 | $this->directories = $directories + [ |
133 | - 'framework' => dirname(__DIR__) . '/', |
|
134 | - 'public' => $directories['root'] . 'webroot/', |
|
135 | - 'config' => $directories['application'] . 'config/', |
|
136 | - 'views' => $directories['application'] . 'views/', |
|
137 | - 'runtime' => $directories['application'] . 'runtime/', |
|
138 | - 'cache' => $directories['application'] . 'runtime/cache/', |
|
139 | - 'resources' => $directories['application'] . 'resources/', |
|
140 | - 'locales' => $directories['application'] . 'resources/locales/' |
|
133 | + 'framework' => dirname(__DIR__).'/', |
|
134 | + 'public' => $directories['root'].'webroot/', |
|
135 | + 'config' => $directories['application'].'config/', |
|
136 | + 'views' => $directories['application'].'views/', |
|
137 | + 'runtime' => $directories['application'].'runtime/', |
|
138 | + 'cache' => $directories['application'].'runtime/cache/', |
|
139 | + 'resources' => $directories['application'].'resources/', |
|
140 | + 'locales' => $directories['application'].'resources/locales/' |
|
141 | 141 | ]; |
142 | 142 | |
143 | 143 | //Every application needs timezone to be set, by default we are using UTC |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | */ |
197 | 197 | public function setDirectory(string $alias, string $path): DirectoriesInterface |
198 | 198 | { |
199 | - $this->directories[$alias] = rtrim($path, '/\\') . '/'; |
|
199 | + $this->directories[$alias] = rtrim($path, '/\\').'/'; |
|
200 | 200 | |
201 | 201 | return $this; |
202 | 202 | } |
@@ -448,7 +448,7 @@ discard block |
||
448 | 448 | * Default spiral environment is based on .env file. |
449 | 449 | */ |
450 | 450 | $environment = new Environment( |
451 | - $core->directory('root') . '.env', |
|
451 | + $core->directory('root').'.env', |
|
452 | 452 | $container->get(FilesInterface::class), |
453 | 453 | $core->memory |
454 | 454 | ); |