@@ -79,6 +79,7 @@ discard block |
||
79 | 79 | |
80 | 80 | /** |
81 | 81 | * Возвращает модель по ID с использованием IdentityMap |
82 | + * @param integer $id |
|
82 | 83 | */ |
83 | 84 | public static function findById($id) |
84 | 85 | { |
@@ -139,7 +140,7 @@ discard block |
||
139 | 140 | } |
140 | 141 | |
141 | 142 | /** |
142 | - * @param $name |
|
143 | + * @param string $name |
|
143 | 144 | * @return null|int |
144 | 145 | */ |
145 | 146 | public static function findByName($name) |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace app\models; |
4 | 4 | |
5 | -use devgroup\TagDependencyHelper\ActiveRecordHelper; |
|
6 | 5 | use Yii; |
6 | +use devgroup\TagDependencyHelper\ActiveRecordHelper; |
|
7 | 7 | |
8 | 8 | /** |
9 | 9 | * This is the model class for table "{{%slider_handler}}". |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace app\models; |
4 | 4 | |
5 | -use app\traits\LoadModel; |
|
6 | 5 | use Yii; |
6 | +use app\traits\LoadModel; |
|
7 | 7 | use yii\caching\TagDependency; |
8 | 8 | use yii\data\ActiveDataProvider; |
9 | 9 | use yii\db\ActiveRecord; |
@@ -137,6 +137,9 @@ |
||
137 | 137 | return $result; |
138 | 138 | } |
139 | 139 | |
140 | + /** |
|
141 | + * @param integer $view_id |
|
142 | + */ |
|
140 | 143 | public static function deleteByViewId($view_id = null) |
141 | 144 | { |
142 | 145 | if (null === $view_id) { |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace app\modules\config\models; |
4 | 4 | |
5 | -use app\modules\config\helpers\ApplicationConfigWriter; |
|
6 | 5 | use Yii; |
6 | +use app\modules\config\helpers\ApplicationConfigWriter; |
|
7 | 7 | use yii\base\Model; |
8 | 8 | use yii\helpers\StringHelper; |
9 | 9 |
@@ -2,17 +2,13 @@ |
||
2 | 2 | |
3 | 3 | namespace app\modules\core\backend; |
4 | 4 | |
5 | +use Packagist\Api\Result\Package\Version; |
|
6 | +use Yii; |
|
5 | 7 | use app; |
6 | 8 | use app\backend\components\BackendController; |
7 | 9 | use app\modules\core\models\Extensions; |
8 | -use Packagist\Api\Result\Package\Version; |
|
9 | -use Yii; |
|
10 | -use yii\data\ArrayDataProvider; |
|
11 | -use yii\helpers\VarDumper; |
|
12 | -use yii\web\BadRequestHttpException; |
|
13 | -use yii\web\NotFoundHttpException; |
|
14 | -use yii\web\ServerErrorHttpException; |
|
15 | 10 | use yii\filters\AccessControl; |
11 | +use yii\web\NotFoundHttpException; |
|
16 | 12 | |
17 | 13 | |
18 | 14 | class ExtensionsController extends BackendController |
@@ -291,7 +291,7 @@ |
||
291 | 291 | * @param string $key ContentBlock key |
292 | 292 | * @param array $params . Array of params to be replaced while render |
293 | 293 | * @param yii\base\Model $model . Caller model instance to use in caching |
294 | - * @return mixed |
|
294 | + * @return string |
|
295 | 295 | */ |
296 | 296 | public static function getChunk($key, $params = [], yii\base\Model $model = null) |
297 | 297 | { |
@@ -9,10 +9,10 @@ |
||
9 | 9 | use app\modules\shop\models\Category; |
10 | 10 | use app\modules\shop\models\Product; |
11 | 11 | use devgroup\TagDependencyHelper\ActiveRecordHelper; |
12 | +use yii; |
|
12 | 13 | use yii\caching\TagDependency; |
13 | 14 | use yii\helpers\ArrayHelper; |
14 | 15 | use yii\helpers\Url; |
15 | -use yii; |
|
16 | 16 | |
17 | 17 | /** |
18 | 18 | * Class ContentBlockHelper |
@@ -144,7 +144,7 @@ |
||
144 | 144 | } |
145 | 145 | |
146 | 146 | /** |
147 | - * @return array |
|
147 | + * @return string[] |
|
148 | 148 | */ |
149 | 149 | public function attributeLabels() |
150 | 150 | { |
@@ -2,9 +2,9 @@ |
||
2 | 2 | |
3 | 3 | namespace app\modules\core\models; |
4 | 4 | |
5 | +use Yii; |
|
5 | 6 | use app; |
6 | 7 | use app\modules\config\models\BaseConfigurationModel; |
7 | -use Yii; |
|
8 | 8 | |
9 | 9 | /** |
10 | 10 | * Class ConfigConfigurationModel represents configuration model for retrieving user input |
@@ -2,11 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace app\modules\core\models; |
4 | 4 | |
5 | +use Yii; |
|
5 | 6 | use app\modules\core\helpers\ContentBlockHelper; |
6 | 7 | use devgroup\TagDependencyHelper\ActiveRecordHelper; |
7 | -use yii\caching\TagDependency; |
|
8 | 8 | use yii\data\ActiveDataProvider; |
9 | -use Yii; |
|
10 | 9 | |
11 | 10 | /** |
12 | 11 | * This is the model class for table "content_block". |
@@ -124,7 +124,7 @@ |
||
124 | 124 | |
125 | 125 | |
126 | 126 | /** |
127 | - * @return ContentBlockGroup[] |
|
127 | + * @return \yii\db\ActiveQuery |
|
128 | 128 | */ |
129 | 129 | public function getGroup() |
130 | 130 | { |