@@ -44,8 +44,8 @@ discard block |
||
44 | 44 | */ |
45 | 45 | public function boot(EnvironmentInterface $env, DirectoriesInterface $dirs): void |
46 | 46 | { |
47 | - if (!$dirs->has('views')) { |
|
48 | - $dirs->set('views', $dirs->get('app') . 'views'); |
|
47 | + if (!$dirs->has('views')){ |
|
48 | + $dirs->set('views', $dirs->get('app').'views'); |
|
49 | 49 | } |
50 | 50 | |
51 | 51 | // default view config |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | [ |
55 | 55 | 'cache' => [ |
56 | 56 | 'enabled' => $env->get('VIEW_CACHE', !$env->get('DEBUG', false)), |
57 | - 'directory' => $dirs->get('cache') . 'views' |
|
57 | + 'directory' => $dirs->get('cache').'views' |
|
58 | 58 | ], |
59 | 59 | 'namespaces' => [ |
60 | 60 | 'default' => [$dirs->get('views')] |
@@ -71,11 +71,11 @@ discard block |
||
71 | 71 | */ |
72 | 72 | public function addDirectory(string $namespace, string $directory): void |
73 | 73 | { |
74 | - if (!isset($this->config->getConfig('views')['namespaces'][$namespace])) { |
|
74 | + if (!isset($this->config->getConfig('views')['namespaces'][$namespace])){ |
|
75 | 75 | $this->config->modify('views', new Append('namespaces', $namespace, [])); |
76 | 76 | } |
77 | 77 | |
78 | - $this->config->modify('views', new Append('namespaces.' . $namespace, null, $directory)); |
|
78 | + $this->config->modify('views', new Append('namespaces.'.$namespace, null, $directory)); |
|
79 | 79 | } |
80 | 80 | |
81 | 81 | /** |