@@ -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 | /** |
@@ -6,11 +6,10 @@ |
||
6 | 6 | use app\modules\seo\assets\GoogleAnalyticsAssets; |
7 | 7 | use app\modules\shop\controllers\CartController; |
8 | 8 | use app\modules\shop\events\CartActionEvent; |
9 | +use app\modules\shop\helpers\CurrencyHelper; |
|
9 | 10 | use app\modules\shop\models\Currency; |
10 | 11 | use app\modules\shop\models\Order; |
11 | -use app\modules\shop\models\OrderItem; |
|
12 | 12 | use app\modules\shop\models\Product; |
13 | -use app\modules\shop\helpers\CurrencyHelper; |
|
14 | 13 | use yii\base\ActionEvent; |
15 | 14 | use yii\base\Event; |
16 | 15 | use yii\base\Object; |
@@ -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 | /** |
@@ -11,6 +11,9 @@ discard block |
||
11 | 11 | protected $fileHandler; |
12 | 12 | protected $urlsCount = 0; |
13 | 13 | |
14 | + /** |
|
15 | + * @return resource |
|
16 | + */ |
|
14 | 17 | protected function getFileHandler() |
15 | 18 | { |
16 | 19 | if ($this->fileHandler === null) { |
@@ -38,12 +41,19 @@ discard block |
||
38 | 41 | return rename($this->directory . $oldName, $this->directory . $newName); |
39 | 42 | } |
40 | 43 | |
44 | + /** |
|
45 | + * @param string|boolean $directory |
|
46 | + * @param string $domain |
|
47 | + */ |
|
41 | 48 | public function __construct($directory, $domain) |
42 | 49 | { |
43 | 50 | $this->directory = $directory; |
44 | 51 | $this->domain = $domain; |
45 | 52 | } |
46 | 53 | |
54 | + /** |
|
55 | + * @param string $url |
|
56 | + */ |
|
47 | 57 | public function addUrl($url) |
48 | 58 | { |
49 | 59 | // @todo convert "wrong" symbols |
@@ -94,7 +94,7 @@ |
||
94 | 94 | } |
95 | 95 | |
96 | 96 | /** |
97 | - * @return array prepared to dropdown list in configurable |
|
97 | + * @return string[] prepared to dropdown list in configurable |
|
98 | 98 | */ |
99 | 99 | public static function getRedirectTypes() |
100 | 100 | { |
@@ -1,14 +1,13 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace app\modules\seo; |
3 | 3 | |
4 | +use Yii; |
|
4 | 5 | use app\components\BaseModule; |
5 | 6 | use app\modules\seo\handlers\AnalyticsHandler; |
6 | 7 | use app\modules\seo\models\Counter; |
7 | 8 | use app\modules\seo\models\Meta; |
8 | -use Yii; |
|
9 | 9 | use yii\base\BootstrapInterface; |
10 | 10 | use yii\web\Application; |
11 | -use yii\web\Controller; |
|
12 | 11 | use yii\web\View; |
13 | 12 | |
14 | 13 | class SeoModule extends BaseModule implements BootstrapInterface |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | /** |
28 | 28 | * @param $id |
29 | 29 | * @param null|string $backUrl |
30 | - * @return bool|\yii\web\Response |
|
30 | + * @return \yii\web\Response |
|
31 | 31 | */ |
32 | 32 | public function actionAdd($id, $backUrl = null) |
33 | 33 | { |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | /** |
39 | 39 | * @param $id |
40 | 40 | * @param null|string $backUrl |
41 | - * @return bool|\yii\web\Response |
|
41 | + * @return \yii\web\Response |
|
42 | 42 | */ |
43 | 43 | public function actionRemove($id, $backUrl = null) |
44 | 44 | { |
@@ -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 |
@@ -1,11 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace app\modules\shop\controllers; |
3 | 3 | |
4 | +use Yii; |
|
4 | 5 | use app\modules\core\behaviors\DisableRobotIndexBehavior; |
5 | 6 | use app\modules\shop\models\UserPreferences; |
6 | -use Yii; |
|
7 | -use yii\helpers\Url; |
|
8 | -use yii\validators\UrlValidator; |
|
9 | 7 | use yii\web\Controller; |
10 | 8 | use yii\web\Response; |
11 | 9 |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace app\modules\shop\handlers; |
3 | 3 | |
4 | +use app\modules\shop\models\Order; |
|
4 | 5 | use yii\base\Object; |
5 | 6 | use yii\web\UserEvent; |
6 | -use app\modules\shop\models\Order; |
|
7 | 7 | |
8 | 8 | class UserHandler extends Object |
9 | 9 | { |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | } |
131 | 131 | |
132 | 132 | /** |
133 | - * @return OrderStageLeaf[] |
|
133 | + * @return \yii\db\ActiveQuery |
|
134 | 134 | */ |
135 | 135 | public function getNextLeafs() |
136 | 136 | { |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | } |
140 | 140 | |
141 | 141 | /** |
142 | - * @return OrderStageLeaf[] |
|
142 | + * @return \yii\db\ActiveQuery |
|
143 | 143 | */ |
144 | 144 | public function getPrevLeafs() |
145 | 145 | { |