@@ -237,7 +237,7 @@ discard block |
||
| 237 | 237 | /** |
| 238 | 238 | * Returns model instance by ID using per-request Identity Map and cache |
| 239 | 239 | * @param $id |
| 240 | - * @param int $is_active Return only active |
|
| 240 | + * @param int $isActive Return only active |
|
| 241 | 241 | * @return Product |
| 242 | 242 | */ |
| 243 | 243 | public static function findById($id, $isActive = 1) |
@@ -1071,7 +1071,7 @@ discard block |
||
| 1071 | 1071 | } |
| 1072 | 1072 | |
| 1073 | 1073 | /** |
| 1074 | - * @param int|Category|null $category |
|
| 1074 | + * @param integer $category |
|
| 1075 | 1075 | * @param bool $asMainCategory |
| 1076 | 1076 | * @return bool |
| 1077 | 1077 | * @throws \yii\db\Exception |
@@ -2,29 +2,29 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\modules\shop\models; |
| 4 | 4 | |
| 5 | +use Yii; |
|
| 5 | 6 | use app\behaviors\CleanRelations; |
| 6 | 7 | use app\behaviors\Tree; |
| 7 | 8 | use app\components\Helper; |
| 8 | -use app\modules\image\models\Image; |
|
| 9 | 9 | use app\models\Object; |
| 10 | -use app\modules\data\components\ImportableInterface; |
|
| 11 | 10 | use app\modules\data\components\ExportableInterface; |
| 12 | -use app\modules\shop\traits\HasAddonTrait; |
|
| 11 | +use app\modules\data\components\ImportableInterface; |
|
| 12 | +use app\modules\image\models\Image; |
|
| 13 | 13 | use app\modules\shop\ShopModule; |
| 14 | +use app\modules\shop\traits\HasAddonTrait; |
|
| 14 | 15 | use app\properties\HasProperties; |
| 15 | 16 | use app\traits\GetImages; |
| 16 | 17 | use devgroup\TagDependencyHelper\ActiveRecordHelper; |
| 17 | -use Yii; |
|
| 18 | 18 | use yii\base\Exception; |
| 19 | 19 | use yii\behaviors\TimestampBehavior; |
| 20 | 20 | use yii\caching\TagDependency; |
| 21 | 21 | use yii\data\ActiveDataProvider; |
| 22 | +use yii\data\Pagination; |
|
| 22 | 23 | use yii\db\ActiveQuery; |
| 23 | 24 | use yii\db\ActiveRecord; |
| 24 | 25 | use yii\db\Expression; |
| 25 | 26 | use yii\db\Query; |
| 26 | 27 | use yii\helpers\ArrayHelper; |
| 27 | -use yii\data\Pagination; |
|
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | 30 | * This is the model class for table "product". |
@@ -168,7 +168,7 @@ |
||
| 168 | 168 | } |
| 169 | 169 | |
| 170 | 170 | /** |
| 171 | - * @return array |
|
| 171 | + * @return string[] |
|
| 172 | 172 | */ |
| 173 | 173 | public function getOfferElements() |
| 174 | 174 | { |
@@ -1,5 +1,4 @@ |
||
| 1 | 1 | <?php |
| 2 | -use kartik\select2\Select2; |
|
| 3 | 2 | |
| 4 | 3 | /** |
| 5 | 4 | * @var $this yii\web\View |
@@ -1,16 +1,16 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | +use app\backend\components\ActiveForm; |
|
| 4 | +use app\backend\components\Helper; |
|
| 3 | 5 | use app\backend\widgets\BackendWidget; |
| 6 | +use app\backend\widgets\GridView; |
|
| 7 | +use app\modules\shop\ShopModule; |
|
| 4 | 8 | use app\modules\shop\controllers\BackendProductController; |
| 5 | 9 | use app\modules\shop\models\Product; |
| 6 | -use app\backend\widgets\GridView; |
|
| 7 | 10 | use kartik\helpers\Html; |
| 8 | 11 | use kartik\icons\Icon; |
| 9 | -use app\backend\components\ActiveForm; |
|
| 10 | 12 | use kartik\widgets\DateTimePicker; |
| 11 | 13 | use yii\data\ActiveDataProvider; |
| 12 | -use app\backend\components\Helper; |
|
| 13 | -use app\modules\shop\ShopModule; |
|
| 14 | 14 | use yii\helpers\Url; |
| 15 | 15 | |
| 16 | 16 | /** |
@@ -5,9 +5,9 @@ |
||
| 5 | 5 | * @var \yii\data\ActiveDataProvider $dataProvider |
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | +use kartik\icons\Icon; |
|
| 8 | 9 | use yii\helpers\Html; |
| 9 | - use yii\helpers\Url; |
|
| 10 | - use kartik\icons\Icon; |
|
| 10 | +use yii\helpers\Url; |
|
| 11 | 11 | |
| 12 | 12 | $this->title = Yii::t('app', 'Order stages'); |
| 13 | 13 | $this->params['breadcrumbs'] = [ |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace app\modules\shop\widgets; |
| 4 | 4 | |
| 5 | 5 | use app\modules\shop\helpers\ProductCompareHelper; |
| 6 | -use yii; |
|
| 7 | 6 | use yii\base\Widget; |
| 8 | 7 | |
| 9 | 8 | class ProductCompare extends Widget |
@@ -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 | /** |