@@ -16,6 +16,9 @@ discard block |
||
16 | 16 | const EVENT_PRE_DECORATOR = 'pre-decorator'; |
17 | 17 | const EVENT_POST_DECORATOR = 'post-decorator'; |
18 | 18 | |
19 | + /** |
|
20 | + * @param string $methodName |
|
21 | + */ |
|
19 | 22 | protected function renderDecorator($methodName, $view, $params = []) |
20 | 23 | { |
21 | 24 | /** @var \app\components\Response $response */ |
@@ -94,6 +97,7 @@ discard block |
||
94 | 97 | |
95 | 98 | /** |
96 | 99 | * @inheritdoc |
100 | + * @param string $view |
|
97 | 101 | */ |
98 | 102 | public function render($view, $params = []) |
99 | 103 | { |
@@ -102,6 +106,7 @@ discard block |
||
102 | 106 | |
103 | 107 | /** |
104 | 108 | * @inheritdoc |
109 | + * @param string $view |
|
105 | 110 | */ |
106 | 111 | public function renderAjax($view, $params = []) |
107 | 112 | { |
@@ -2,11 +2,11 @@ |
||
2 | 2 | |
3 | 3 | namespace app\controllers; |
4 | 4 | |
5 | +use Yii; |
|
5 | 6 | use app\actions\SubmitFormAction; |
6 | 7 | use app\components\search\SearchEvent; |
7 | 8 | use app\models\Search; |
8 | 9 | use app\modules\shop\models\Product; |
9 | -use Yii; |
|
10 | 10 | use yii\helpers\Url; |
11 | 11 | use yii\web\Controller; |
12 | 12 | use yii\web\Response; |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace app\models; |
4 | 4 | |
5 | -use devgroup\TagDependencyHelper\ActiveRecordHelper; |
|
6 | 5 | use Yii; |
6 | +use devgroup\TagDependencyHelper\ActiveRecordHelper; |
|
7 | 7 | use yii\data\ActiveDataProvider; |
8 | 8 | use yii\db\ActiveRecord; |
9 | 9 |
@@ -2,20 +2,20 @@ |
||
2 | 2 | |
3 | 3 | namespace app\models; |
4 | 4 | |
5 | +use Yii; |
|
5 | 6 | use app\modules\shop\models\ConfigConfigurationModel; |
7 | +use app\modules\shop\models\Currency; |
|
6 | 8 | use app\modules\shop\models\Product; |
7 | 9 | use app\properties\HasProperties; |
8 | 10 | use app\traits\GetImages; |
9 | 11 | use app\traits\SortModels; |
10 | 12 | use devgroup\TagDependencyHelper\ActiveRecordHelper; |
11 | -use Yii; |
|
12 | 13 | use yii\behaviors\AttributeBehavior; |
13 | 14 | use yii\caching\TagDependency; |
14 | 15 | use yii\data\ActiveDataProvider; |
15 | 16 | use yii\db\ActiveQuery; |
16 | 17 | use yii\db\ActiveRecord; |
17 | 18 | use yii\db\Expression; |
18 | -use app\modules\shop\models\Currency; |
|
19 | 19 | |
20 | 20 | /** |
21 | 21 | * This is the model class for table "property_static_values". |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | } |
195 | 195 | |
196 | 196 | /** |
197 | - * @param $property_id |
|
197 | + * @param integer $property_id |
|
198 | 198 | * @param $category_id |
199 | 199 | * @param $properties |
200 | 200 | * @return PropertyStaticValues[] |
@@ -333,6 +333,9 @@ discard block |
||
333 | 333 | return $allSelections; |
334 | 334 | } |
335 | 335 | |
336 | + /** |
|
337 | + * @param string $joinCondition |
|
338 | + */ |
|
336 | 339 | private static function initSubQuery($category_id, $joinCondition) |
337 | 340 | { |
338 | 341 | $product = Yii::$container->get(Product::class); |
@@ -2,10 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace app\modules\review\widgets\rating; |
4 | 4 | |
5 | +use Yii; |
|
5 | 6 | use app\modules\review\models\RatingItem; |
6 | 7 | use app\modules\review\models\RatingValues; |
7 | 8 | use app\modules\review\models\Review; |
8 | -use Yii; |
|
9 | 9 | use yii\base\Widget; |
10 | 10 | use yii\helpers\ArrayHelper; |
11 | 11 |
@@ -2,7 +2,6 @@ |
||
2 | 2 | namespace app\modules\shop\commands; |
3 | 3 | |
4 | 4 | use app\modules\shop\models\Yml; |
5 | -use Yii; |
|
6 | 5 | |
7 | 6 | class YmlController extends \yii\console\Controller |
8 | 7 | { |
@@ -2,10 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace app\modules\shop\components\GoogleMerchants; |
4 | 4 | |
5 | +use Yii; |
|
5 | 6 | use app\modules\shop\models\Currency; |
6 | 7 | use app\modules\shop\models\GoogleFeed; |
7 | 8 | use app\modules\shop\models\Product; |
8 | -use Yii; |
|
9 | 9 | use yii\base\Component; |
10 | 10 | use yii\helpers\Json; |
11 | 11 |
@@ -3,9 +3,9 @@ |
||
3 | 3 | namespace app\modules\shop\models; |
4 | 4 | |
5 | 5 | |
6 | +use Yii; |
|
6 | 7 | use app\traits\FindById; |
7 | 8 | use devgroup\TagDependencyHelper\ActiveRecordHelper; |
8 | -use Yii; |
|
9 | 9 | use yii\caching\TagDependency; |
10 | 10 | use yii\data\ActiveDataProvider; |
11 | 11 |
@@ -2,10 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace app\modules\shop\models; |
4 | 4 | |
5 | +use Yii; |
|
5 | 6 | use app\models\Property; |
6 | 7 | use app\traits\SortModels; |
7 | 8 | use devgroup\TagDependencyHelper\ActiveRecordHelper; |
8 | -use Yii; |
|
9 | 9 | use yii\caching\TagDependency; |
10 | 10 | |
11 | 11 | /** |