@@ -241,6 +241,9 @@ |
||
241 | 241 | return $files; |
242 | 242 | } |
243 | 243 | |
244 | + /** |
|
245 | + * @param string $prefix |
|
246 | + */ |
|
244 | 247 | private function fileToName($prefix, $file) |
245 | 248 | { |
246 | 249 | $value = ltrim(str_replace([$prefix, 'Controller.php'], '', $file), DIRECTORY_SEPARATOR); |
@@ -234,7 +234,7 @@ |
||
234 | 234 | $files[$this->fileToName($staticPath, $file)] = $file; |
235 | 235 | } |
236 | 236 | } catch (InvalidParamException $e) { |
237 | - // catch if folder not found. |
|
237 | + // catch if folder not found. |
|
238 | 238 | } |
239 | 239 | }; |
240 | 240 |
@@ -229,7 +229,7 @@ discard block |
||
229 | 229 | } |
230 | 230 | } catch (InvalidParamException $e) { |
231 | 231 | try { |
232 | - $staticPath = static::staticBasePath() . DIRECTORY_SEPARATOR . 'controllers'; |
|
232 | + $staticPath = static::staticBasePath().DIRECTORY_SEPARATOR.'controllers'; |
|
233 | 233 | foreach (FileHelper::findFiles($staticPath) as $file) { |
234 | 234 | $files[$this->fileToName($staticPath, $file)] = $file; |
235 | 235 | } |
@@ -257,7 +257,7 @@ discard block |
||
257 | 257 | */ |
258 | 258 | public function getControllerPath() |
259 | 259 | { |
260 | - return Yii::getAlias('@' . str_replace('\\', '/', $this->controllerNamespace), false); |
|
260 | + return Yii::getAlias('@'.str_replace('\\', '/', $this->controllerNamespace), false); |
|
261 | 261 | } |
262 | 262 | |
263 | 263 | // STATIC METHODS |