@@ -110,6 +110,7 @@ discard block |
||
110 | 110 | /** |
111 | 111 | * Changes theme. |
112 | 112 | * @param string theme name |
113 | + * @param string $name |
|
113 | 114 | * @throws InvalidConfigException |
114 | 115 | */ |
115 | 116 | public function setTheme($name) |
@@ -139,7 +140,7 @@ discard block |
||
139 | 140 | } |
140 | 141 | |
141 | 142 | /** |
142 | - * @return bool |
|
143 | + * @return boolean|null |
|
143 | 144 | */ |
144 | 145 | public static function isHomePage() |
145 | 146 | { |
@@ -16,7 +16,6 @@ |
||
16 | 16 | use yii\base\InvalidConfigException; |
17 | 17 | use yii\web\AssetBundle; |
18 | 18 | use yii\web\Controller; |
19 | -use yii\web\Request; |
|
20 | 19 | |
21 | 20 | /** |
22 | 21 | * Theme Manager. Provides:. |
@@ -46,6 +46,9 @@ |
||
46 | 46 | return $this->source ?: $this->readFile($this->file); |
47 | 47 | } |
48 | 48 | |
49 | + /** |
|
50 | + * @param string $file |
|
51 | + */ |
|
49 | 52 | protected function readFile($file) |
50 | 53 | { |
51 | 54 | return file_get_contents($this->app->getAlias($file)); |