@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | } |
65 | 65 | |
66 | 66 | $pos = strpos($viewPath, '/'); |
67 | - $rootPath = $pos === false ? $viewPath : (substr($viewPath, 0, $pos) . '/views'); |
|
67 | + $rootPath = $pos === false ? $viewPath : (substr($viewPath, 0, $pos).'/views'); |
|
68 | 68 | $this->pathMap[$rootPath] = $pathMap; |
69 | 69 | |
70 | 70 | $this->pathMap['@app/views'] = $pathMap; |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | |
85 | 85 | public function getLayoutPath() |
86 | 86 | { |
87 | - return $this->viewPath . '/' . self::LAYOUTS_PATH; |
|
87 | + return $this->viewPath.'/'.self::LAYOUTS_PATH; |
|
88 | 88 | } |
89 | 89 | |
90 | 90 | public function getConfig() |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | */ |
215 | 215 | public function getLayoutPath() |
216 | 216 | { |
217 | - if ($this->theme){ |
|
217 | + if ($this->theme) { |
|
218 | 218 | if ($this->useAppLayoutPath) { |
219 | 219 | $this->setLayoutPath($this->theme->layoutPath); |
220 | 220 | } |
@@ -323,7 +323,7 @@ discard block |
||
323 | 323 | */ |
324 | 324 | public function getControllerPath() |
325 | 325 | { |
326 | - return Yii::getAlias('@' . str_replace('\\', '/', $this->controllerNamespace), false); |
|
326 | + return Yii::getAlias('@'.str_replace('\\', '/', $this->controllerNamespace), false); |
|
327 | 327 | } |
328 | 328 | |
329 | 329 | // STATIC METHODS |
@@ -19,5 +19,5 @@ |
||
19 | 19 | |
20 | 20 | spl_autoload_register(['Yii', 'autoload'], true, true); |
21 | 21 | defined('LUYA_YII_VENDOR') ?: define('LUYA_YII_VENDOR', 'vendor/yiisoft/yii2'); |
22 | -Yii::$classMap = require(LUYA_YII_VENDOR . '/classes.php'); |
|
22 | +Yii::$classMap = require(LUYA_YII_VENDOR.'/classes.php'); |
|
23 | 23 | Yii::$container = new yii\di\Container(); |