@@ -4,8 +4,6 @@ |
||
4 | 4 | */ |
5 | 5 | use \app\modules\shop\models\OrderTransaction; |
6 | 6 | use \yii\helpers\Html; |
7 | -use kartik\icons\Icon; |
|
8 | -use yii\helpers\Url; |
|
9 | 7 | |
10 | 8 | $paymentType = $transaction->paymentType; |
11 | 9 | ?> |
@@ -277,7 +277,7 @@ |
||
277 | 277 | * Deletes an existing User model. |
278 | 278 | * If deletion is successful, the browser will be redirected to the 'index' page. |
279 | 279 | * @param integer $id |
280 | - * @return mixed |
|
280 | + * @return \yii\web\Response |
|
281 | 281 | */ |
282 | 282 | public function actionDelete($id) |
283 | 283 | { |
@@ -2,15 +2,15 @@ |
||
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\backend\models\AuthItemForm; |
7 | 8 | use yii\data\ArrayDataProvider; |
8 | 9 | use yii\filters\AccessControl; |
9 | 10 | use yii\filters\VerbFilter; |
10 | 11 | use yii\helpers\ArrayHelper; |
11 | -use yii\rbac\Item; |
|
12 | 12 | use yii\helpers\Url; |
13 | -use Yii; |
|
13 | +use yii\rbac\Item; |
|
14 | 14 | |
15 | 15 | /** |
16 | 16 | * BackendUserController implements the CRUD actions for User model. |
@@ -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 | { |
@@ -2,10 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace app\properties; |
4 | 4 | |
5 | +use Yii; |
|
5 | 6 | use app\models\BaseObject; |
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; |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | +use app\models\Property; |
|
3 | 4 | use kartik\helpers\Html; |
4 | 5 | use yii\helpers\Url; |
5 | -use app\models\Property; |
|
6 | 6 | /** |
7 | 7 | * @var int $category_group_id |
8 | 8 | * @var array $possible_selections |
@@ -4,10 +4,9 @@ |
||
4 | 4 | namespace app\modules\image\actions; |
5 | 5 | |
6 | 6 | |
7 | +use Yii; |
|
7 | 8 | use app\modules\image\models\Image; |
8 | - |
|
9 | 9 | use creocoder\flysystem\Filesystem; |
10 | -use Yii; |
|
11 | 10 | use yii\base\Action; |
12 | 11 | use yii\base\Exception; |
13 | 12 | use yii\web\NotAcceptableHttpException; |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | * @param Order $order |
93 | 93 | * @param SpecialPriceList $specialPrice |
94 | 94 | * @param $price |
95 | - * @return float |
|
95 | + * @return integer |
|
96 | 96 | */ |
97 | 97 | static public function getDiscountPriceOrder( |
98 | 98 | Order $order, |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | * @param Order $order |
122 | 122 | * @param SpecialPriceList $specialPrice |
123 | 123 | * @param $price |
124 | - * @return float |
|
124 | + * @return integer |
|
125 | 125 | */ |
126 | 126 | static public function getDeliveryPriceOrder( |
127 | 127 | Order $order, |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | } |
144 | 144 | |
145 | 145 | /** |
146 | - * @param array $types |
|
146 | + * @param string[] $types |
|
147 | 147 | * @return array |
148 | 148 | */ |
149 | 149 | static protected function getDiscountsByAppliance($types = []) |
@@ -3,13 +3,11 @@ |
||
3 | 3 | |
4 | 4 | use app\modules\shop\events\OrderCalculateEvent; |
5 | 5 | use app\modules\shop\models\AbstractDiscountType; |
6 | -use app\modules\shop\models\Currency; |
|
7 | 6 | use app\modules\shop\models\Discount; |
8 | 7 | use app\modules\shop\models\Order; |
9 | 8 | use app\modules\shop\models\Product; |
10 | 9 | use app\modules\shop\models\SpecialPriceList; |
11 | 10 | use app\modules\shop\models\SpecialPriceObject; |
12 | -use Yii; |
|
13 | 11 | |
14 | 12 | class PriceHandlers |
15 | 13 | { |
@@ -2,10 +2,9 @@ |
||
2 | 2 | |
3 | 3 | namespace app\modules\seo\models; |
4 | 4 | |
5 | +use Yii; |
|
5 | 6 | use app\backend\BackendModule; |
6 | -use app\backend\components\BackendController; |
|
7 | 7 | use devgroup\TagDependencyHelper\ActiveRecordHelper; |
8 | -use Yii; |
|
9 | 8 | use yii\data\ActiveDataProvider; |
10 | 9 | use yii\db\ActiveRecord; |
11 | 10 |
@@ -2,14 +2,13 @@ |
||
2 | 2 | |
3 | 3 | namespace app\modules\shop\models; |
4 | 4 | |
5 | +use Yii; |
|
5 | 6 | use app\modules\shop\models\CurrencyRateProvider; |
6 | -use app\modules\shop\components\SpecialPriceProductInterface; |
|
7 | 7 | use devgroup\TagDependencyHelper\ActiveRecordHelper; |
8 | -use Yii; |
|
9 | 8 | use yii\base\InvalidConfigException; |
10 | 9 | use yii\caching\TagDependency; |
11 | -use yii\helpers\ArrayHelper; |
|
12 | 10 | use yii\data\ActiveDataProvider; |
11 | +use yii\helpers\ArrayHelper; |
|
13 | 12 | |
14 | 13 | /** |
15 | 14 | * This is the model class Multi-currency |
@@ -1,6 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | namespace app\modules\shop\components\yml; |
3 | 3 | |
4 | +use Yii; |
|
4 | 5 | use app\models\ObjectStaticValues; |
5 | 6 | use app\models\Property; |
6 | 7 | use app\models\PropertyStaticValues; |
@@ -9,10 +10,9 @@ discard block |
||
9 | 10 | use app\modules\shop\models\Category; |
10 | 11 | use app\modules\shop\models\Currency; |
11 | 12 | use app\modules\shop\models\Product; |
13 | +use app\modules\shop\models\Yml as YmlModel; |
|
12 | 14 | use devgroup\TagDependencyHelper\ActiveRecordHelper; |
13 | -use Yii; |
|
14 | 15 | use yii\base\Component; |
15 | -use app\modules\shop\models\Yml as YmlModel; |
|
16 | 16 | use yii\caching\TagDependency; |
17 | 17 | use yii\db\Query; |
18 | 18 | use yii\helpers\Json; |