@@ -91,7 +91,7 @@ |
||
91 | 91 | if ($this->layout && (!$layoutPath = $this->getLayoutFile((new KernelInjector)->get()->getAppDir(), |
92 | 92 | $this->module)) |
93 | 93 | ) { |
94 | - (new LoggerInjector)->get()->send('error', 'Layout `' . $this->layout . '` not found'); |
|
94 | + (new LoggerInjector)->get()->send('error', 'Layout `'.$this->layout.'` not found'); |
|
95 | 95 | } |
96 | 96 | |
97 | 97 | if ($layoutPath) { |
@@ -125,7 +125,7 @@ |
||
125 | 125 | return '\\Micro\\Validator\\'.self::$validators[$name]; |
126 | 126 | } elseif (class_exists($name) && is_subclass_of($name, '\Micro\Validator\IValidator')) { |
127 | 127 | return $name; |
128 | - } elseif (file_exists((new KernelInjector)->get()->getAppDir() . '/validator/' . $name . '.php')) { |
|
128 | + } elseif (file_exists((new KernelInjector)->get()->getAppDir().'/validator/'.$name.'.php')) { |
|
129 | 129 | return '\\App\\Validator\\'.$name; |
130 | 130 | } |
131 | 131 |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | protected function prepareExtensions(&$uriBlocks) |
111 | 111 | { |
112 | 112 | foreach ($uriBlocks as $i => $block) { |
113 | - if (file_exists((new KernelInjector)->get()->getAppDir() . $this->extensions . '/extensions/' . $block)) { |
|
113 | + if (file_exists((new KernelInjector)->get()->getAppDir().$this->extensions.'/extensions/'.$block)) { |
|
114 | 114 | $this->extensions .= '/Extensions/'.ucfirst($block); |
115 | 115 | |
116 | 116 | unset($uriBlocks[$i]); |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | */ |
136 | 136 | protected function prepareModules(&$uriBlocks) |
137 | 137 | { |
138 | - $path = (new KernelInjector)->get()->getAppDir() . ($this->extensions ?: ''); |
|
138 | + $path = (new KernelInjector)->get()->getAppDir().($this->extensions ?: ''); |
|
139 | 139 | |
140 | 140 | foreach ($uriBlocks as $i => $block) { |
141 | 141 | if ($block && file_exists($path.strtolower($this->modules).'/modules/'.$block)) { |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | */ |
162 | 162 | protected function prepareController(&$uriBlocks) |
163 | 163 | { |
164 | - $path = (new KernelInjector)->get()->getAppDir() . ($this->extensions ?: '') . strtolower($this->modules ?: ''); |
|
164 | + $path = (new KernelInjector)->get()->getAppDir().($this->extensions ?: '').strtolower($this->modules ?: ''); |
|
165 | 165 | $str = array_shift($uriBlocks); |
166 | 166 | |
167 | 167 | if (file_exists(str_replace('\\', '/', $path.'/controllers/'.ucfirst($str).'Controller.php'))) { |