@@ -3,11 +3,11 @@ |
||
3 | 3 | namespace app\commands; |
4 | 4 | |
5 | 5 | use Imagine\Image\ManipulatorInterface; |
6 | -use app\backend\actions\FlushCacheConsoleAction; |
|
7 | 6 | use Yii; |
8 | -use yii\console\Controller; |
|
9 | 7 | use app; |
8 | +use app\backend\actions\FlushCacheConsoleAction; |
|
10 | 9 | use app\modules\image\models\Image; |
10 | +use yii\console\Controller; |
|
11 | 11 | |
12 | 12 | /** |
13 | 13 | * Admin commands |
@@ -109,6 +109,9 @@ |
||
109 | 109 | } |
110 | 110 | |
111 | 111 | |
112 | + /** |
|
113 | + * @param string $themeName |
|
114 | + */ |
|
112 | 115 | protected function createStructure($path, $children, $themeName) |
113 | 116 | { |
114 | 117 | foreach ($children as $child) { |
@@ -2,12 +2,11 @@ |
||
2 | 2 | |
3 | 3 | namespace app\modules\shop\controllers; |
4 | 4 | |
5 | +use Yii; |
|
5 | 6 | use app\models\Object; |
6 | 7 | use app\modules\core\behaviors\DisableRobotIndexBehavior; |
7 | 8 | use app\modules\shop\helpers\ProductCompareHelper; |
8 | 9 | use app\modules\shop\models\Product; |
9 | -use Yii; |
|
10 | -use yii\caching\TagDependency; |
|
11 | 10 | use yii\web\Controller; |
12 | 11 | |
13 | 12 | class ProductCompareController extends Controller |
@@ -6,7 +6,6 @@ |
||
6 | 6 | * @var \yii\web\View $this |
7 | 7 | */ |
8 | 8 | |
9 | -use app\modules\shop\models\Product; |
|
10 | 9 | use kartik\helpers\Html; |
11 | 10 | |
12 | 11 | ?> |
@@ -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,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 |
@@ -1094,7 +1094,7 @@ |
||
1094 | 1094 | } |
1095 | 1095 | |
1096 | 1096 | /** |
1097 | - * @param int|Category|null $category |
|
1097 | + * @param integer $category |
|
1098 | 1098 | * @param bool $asMainCategory |
1099 | 1099 | * @return bool |
1100 | 1100 | * @throws \yii\db\Exception |
@@ -2,31 +2,31 @@ |
||
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; |
11 | +use app\modules\data\components\ImportableInterface; |
|
12 | +use app\modules\image\models\Image; |
|
13 | +use app\modules\shop\ShopModule; |
|
12 | 14 | use app\modules\shop\data\FilterPagination; |
13 | 15 | use app\modules\shop\traits\HasAddonTrait; |
14 | -use app\modules\shop\ShopModule; |
|
15 | 16 | use app\properties\HasProperties; |
16 | 17 | use app\properties\PropertiesHelper; |
17 | 18 | use app\traits\GetImages; |
18 | 19 | use devgroup\TagDependencyHelper\ActiveRecordHelper; |
19 | -use Yii; |
|
20 | 20 | use yii\base\Exception; |
21 | 21 | use yii\behaviors\TimestampBehavior; |
22 | 22 | use yii\caching\TagDependency; |
23 | 23 | use yii\data\ActiveDataProvider; |
24 | +use yii\data\Pagination; |
|
24 | 25 | use yii\db\ActiveQuery; |
25 | 26 | use yii\db\ActiveRecord; |
26 | 27 | use yii\db\Expression; |
27 | 28 | use yii\db\Query; |
28 | 29 | use yii\helpers\ArrayHelper; |
29 | -use yii\data\Pagination; |
|
30 | 30 | use yii\web\ServerErrorHttpException; |
31 | 31 | |
32 | 32 | /** |
@@ -2,12 +2,12 @@ |
||
2 | 2 | |
3 | 3 | namespace app\widgets\navigation\models; |
4 | 4 | |
5 | +use Yii; |
|
5 | 6 | use app\backgroundtasks\traits\SearchModelTrait; |
6 | 7 | use app\behaviors\Tree; |
7 | 8 | use app\properties\HasProperties; |
8 | 9 | use app\traits\FindById; |
9 | 10 | use app\traits\GetImages; |
10 | -use Yii; |
|
11 | 11 | use yii\data\ActiveDataProvider; |
12 | 12 | |
13 | 13 | /** |
@@ -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; |