@@ -46,7 +46,7 @@ |
||
| 46 | 46 | * If a message is not a string, it will return var export to generate |
| 47 | 47 | * a returnable string from a message. |
| 48 | 48 | * |
| 49 | - * @param mixed $message |
|
| 49 | + * @param string $message |
|
| 50 | 50 | * @return string |
| 51 | 51 | * @since 1.0.22 |
| 52 | 52 | */ |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | if (strpos($basePath, '@') === 0) { |
| 53 | 53 | $dir = Yii::getAlias($basePath); |
| 54 | 54 | } elseif (strpos($basePath, '/') !== 0) { |
| 55 | - $dir = $basePath = Yii::$app->basePath . DIRECTORY_SEPARATOR . $basePath; |
|
| 55 | + $dir = $basePath = Yii::$app->basePath.DIRECTORY_SEPARATOR.$basePath; |
|
| 56 | 56 | } else { |
| 57 | 57 | $dir = $basePath; |
| 58 | 58 | } |
@@ -64,12 +64,12 @@ discard block |
||
| 64 | 64 | $basePath = pathinfo($basePath, PATHINFO_DIRNAME); |
| 65 | 65 | } else { |
| 66 | 66 | if (!is_dir($dir) || !is_readable($dir)) { |
| 67 | - throw new Exception('Theme directory not exists or readable: ' . $dir); |
|
| 67 | + throw new Exception('Theme directory not exists or readable: '.$dir); |
|
| 68 | 68 | } |
| 69 | 69 | |
| 70 | - $themeFile = $dir . DIRECTORY_SEPARATOR . 'theme.json'; |
|
| 70 | + $themeFile = $dir.DIRECTORY_SEPARATOR.'theme.json'; |
|
| 71 | 71 | if (!file_exists($themeFile)) { |
| 72 | - throw new InvalidConfigException('Theme config file missing at: ' . $themeFile); |
|
| 72 | + throw new InvalidConfigException('Theme config file missing at: '.$themeFile); |
|
| 73 | 73 | } |
| 74 | 74 | } |
| 75 | 75 | |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | |
| 172 | 172 | if (file_exists(Yii::getAlias('@app/themes'))) { |
| 173 | 173 | foreach (glob(Yii::getAlias('@app/themes/*')) as $dirPath) { |
| 174 | - $themeDefinitions[] = "@app/themes/" . basename($dirPath); |
|
| 174 | + $themeDefinitions[] = "@app/themes/".basename($dirPath); |
|
| 175 | 175 | } |
| 176 | 176 | } |
| 177 | 177 | |
@@ -217,7 +217,7 @@ discard block |
||
| 217 | 217 | |
| 218 | 218 | $this->_themes[$basePath] = $themeConfig; |
| 219 | 219 | |
| 220 | - Yii::setAlias('@' . basename($basePath) . 'Theme', $basePath); |
|
| 220 | + Yii::setAlias('@'.basename($basePath).'Theme', $basePath); |
|
| 221 | 221 | } |
| 222 | 222 | |
| 223 | 223 | /** |