@@ -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 | { |
@@ -44,11 +44,11 @@ |
||
44 | 44 | } |
45 | 45 | |
46 | 46 | /** |
47 | - * @param $property |
|
47 | + * @param \app\models\Property $property |
|
48 | 48 | * @param $model |
49 | 49 | * @param $values |
50 | 50 | * @param $form |
51 | - * @param $renderType |
|
51 | + * @param string $renderType |
|
52 | 52 | * @return string |
53 | 53 | */ |
54 | 54 | public function render($property, $model, $values, $form, $renderType) |
@@ -11,8 +11,6 @@ |
||
11 | 11 | * @var $this \app\properties\handlers\Handler |
12 | 12 | * @var $values array |
13 | 13 | */ |
14 | -use vova07\imperavi\Widget as ImperaviWidget; |
|
15 | -use yii\helpers\Url; |
|
16 | 14 | |
17 | 15 | ?> |
18 | 16 | <?=$form->field($model, $property_key.'[0]')->widget( |
@@ -32,7 +32,7 @@ |
||
32 | 32 | } |
33 | 33 | |
34 | 34 | /** |
35 | - * @param null $id |
|
35 | + * @param integer $id |
|
36 | 36 | * @return null |
37 | 37 | */ |
38 | 38 | static public function getHandlerById($id = null) |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use app\modules\shop\models\Category; |
6 | 6 | use devgroup\TagDependencyHelper\ActiveRecordHelper; |
7 | -use Yii; |
|
8 | 7 | |
9 | 8 | abstract class CategoryPart extends UrlPart |
10 | 9 | { |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use app\modules\shop\models\Category; |
6 | 6 | use devgroup\TagDependencyHelper\ActiveRecordHelper; |
7 | -use Yii; |
|
8 | 7 | |
9 | 8 | class PartialCategoryPathPart extends CategoryPart |
10 | 9 | { |