@@ -13,7 +13,6 @@ |
||
13 | 13 | |
14 | 14 | use hiqdev\thememanager\models\Settings; |
15 | 15 | use Yii; |
16 | -use yii\base\Application; |
|
17 | 16 | use yii\base\InvalidConfigException; |
18 | 17 | use yii\web\AssetBundle; |
19 | 18 |
@@ -109,6 +109,7 @@ discard block |
||
109 | 109 | /** |
110 | 110 | * Changes theme. |
111 | 111 | * @param string theme name |
112 | + * @param string $name |
|
112 | 113 | * @throws InvalidConfigException |
113 | 114 | */ |
114 | 115 | public function setTheme($name) |
@@ -199,7 +200,7 @@ discard block |
||
199 | 200 | * Draws widget. |
200 | 201 | * @param mixed $config |
201 | 202 | * @throws InvalidConfigException |
202 | - * @return void |
|
203 | + * @return string |
|
203 | 204 | */ |
204 | 205 | public function widget($config) |
205 | 206 | { |
@@ -174,6 +174,9 @@ |
||
174 | 174 | return substr($class, 0, strrpos($class, '\\')) . '\\models\\Settings'; |
175 | 175 | } |
176 | 176 | |
177 | + /** |
|
178 | + * @param string $class |
|
179 | + */ |
|
177 | 180 | public static function findSettingsClass($class) |
178 | 181 | { |
179 | 182 | $res = static::calcSettingsClass($class); |