@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace app\modules\shop\widgets; |
3 | 3 | |
4 | +use Yii; |
|
4 | 5 | use yii\db\Query; |
5 | 6 | use yii\helpers\ArrayHelper; |
6 | -use Yii; |
|
7 | 7 | |
8 | 8 | |
9 | 9 | class PriceSliderRangeWidget extends SliderRangeWidget |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace app\modules\shop\widgets; |
4 | 4 | |
5 | -use yii\helpers\ArrayHelper; |
|
6 | 5 | use Yii; |
6 | +use yii\helpers\ArrayHelper; |
|
7 | 7 | |
8 | 8 | /** |
9 | 9 | * @property \app\models\Property $property |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace app\modules\user\actions; |
4 | 4 | |
5 | -use app; |
|
6 | 5 | use Yii; |
6 | +use app; |
|
7 | 7 | |
8 | 8 | /** |
9 | 9 | * AuthAction extends base yii2 auth action adding error view |
@@ -2,17 +2,16 @@ |
||
2 | 2 | |
3 | 3 | namespace app\modules\user\controllers; |
4 | 4 | |
5 | +use Yii; |
|
5 | 6 | use app\backend\components\BackendController; |
6 | 7 | use app\components\SearchModel; |
7 | 8 | use app\modules\user\models\User; |
8 | -use Yii; |
|
9 | 9 | use yii\filters\AccessControl; |
10 | 10 | use yii\filters\VerbFilter; |
11 | 11 | use yii\helpers\ArrayHelper; |
12 | 12 | use yii\helpers\Json; |
13 | -use yii\rbac\Item; |
|
14 | 13 | use yii\helpers\Url; |
15 | - |
|
14 | +use yii\rbac\Item; |
|
16 | 15 | use yii\web\NotFoundHttpException; |
17 | 16 | |
18 | 17 | /** |
@@ -156,7 +156,7 @@ |
||
156 | 156 | * Deletes an existing User model. |
157 | 157 | * If deletion is successful, the browser will be redirected to the 'index' page. |
158 | 158 | * @param integer $id |
159 | - * @return mixed |
|
159 | + * @return \yii\web\Response |
|
160 | 160 | */ |
161 | 161 | public function actionDelete($id) |
162 | 162 | { |
@@ -2,9 +2,9 @@ |
||
2 | 2 | |
3 | 3 | namespace app\modules\user\models; |
4 | 4 | |
5 | +use Yii; |
|
5 | 6 | use app; |
6 | 7 | use app\validators\ClassnameValidator; |
7 | -use Yii; |
|
8 | 8 | use yii\base\Model; |
9 | 9 | use yii\helpers\ArrayHelper; |
10 | 10 |
@@ -2,10 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace app\modules\user\models; |
4 | 4 | |
5 | +use Yii; |
|
5 | 6 | use app; |
6 | 7 | use app\modules\config\models\BaseConfigurationModel; |
7 | 8 | use app\validators\ClassnameValidator; |
8 | -use Yii; |
|
9 | 9 | use yii\helpers\StringHelper; |
10 | 10 | |
11 | 11 | /** |
@@ -2,13 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace app\modules\user\models; |
4 | 4 | |
5 | -use app\modules\shop\models\Customer; |
|
6 | -use app\properties\HasProperties; |
|
5 | +use Yii; |
|
7 | 6 | use app\models\PropertyGroup; |
8 | -use app\models\ObjectPropertyGroup; |
|
9 | - |
|
7 | +use app\properties\HasProperties; |
|
10 | 8 | use devgroup\TagDependencyHelper\ActiveRecordHelper; |
11 | -use Yii; |
|
12 | 9 | use yii\base\NotSupportedException; |
13 | 10 | use yii\behaviors\TimestampBehavior; |
14 | 11 | use yii\caching\TagDependency; |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | } |
129 | 129 | |
130 | 130 | /** |
131 | - * @return array List of all possible statuses for User instance |
|
131 | + * @return string[] List of all possible statuses for User instance |
|
132 | 132 | */ |
133 | 133 | public static function getStatuses() |
134 | 134 | { |
@@ -385,7 +385,7 @@ discard block |
||
385 | 385 | } |
386 | 386 | |
387 | 387 | /** |
388 | - * @return mixed|string Display name for the user visual identification |
|
388 | + * @return string Display name for the user visual identification |
|
389 | 389 | */ |
390 | 390 | public function getDisplayName() |
391 | 391 | { |
@@ -2,10 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace app\properties; |
4 | 4 | |
5 | +use Yii; |
|
5 | 6 | use app\models\Object; |
6 | 7 | use app\models\ObjectStaticValues; |
7 | 8 | use app\models\Property; |
8 | -use Yii; |
|
9 | 9 | use yii\base\Model; |
10 | 10 | use yii\db\ActiveRecord; |
11 | 11 | use yii\helpers\ArrayHelper; |
@@ -31,6 +31,9 @@ discard block |
||
31 | 31 | */ |
32 | 32 | private $arrayMode = false; |
33 | 33 | |
34 | + /** |
|
35 | + * @param ActiveRecord $ownerModel |
|
36 | + */ |
|
34 | 37 | public function __construct($config = [], $ownerModel = null) |
35 | 38 | { |
36 | 39 | parent::__construct($config); |
@@ -52,7 +55,7 @@ discard block |
||
52 | 55 | } |
53 | 56 | |
54 | 57 | /** |
55 | - * @param $name |
|
58 | + * @param string $name |
|
56 | 59 | */ |
57 | 60 | public function setFormName($name) |
58 | 61 | { |
@@ -3,10 +3,10 @@ |
||
3 | 3 | namespace app\properties; |
4 | 4 | |
5 | 5 | |
6 | +use Yii; |
|
6 | 7 | use app\models\Object; |
7 | 8 | use app\models\Property; |
8 | 9 | use app\models\PropertyStaticValues; |
9 | -use Yii; |
|
10 | 10 | use yii\base\DynamicModel; |
11 | 11 | use yii\data\ActiveDataProvider; |
12 | 12 | use yii\helpers\ArrayHelper; |