@@ -3,8 +3,6 @@ |
||
| 3 | 3 | namespace app\modules\shop\controllers; |
| 4 | 4 | |
| 5 | 5 | use app\modules\core\behaviors\DisableRobotIndexBehavior; |
| 6 | -use app\modules\shop\models\Contragent; |
|
| 7 | -use app\modules\shop\models\Customer; |
|
| 8 | 6 | use app\modules\shop\models\Order; |
| 9 | 7 | use yii\filters\AccessControl; |
| 10 | 8 | use yii\helpers\Url; |
@@ -2,12 +2,14 @@ discard block |
||
| 2 | 2 | |
| 3 | 3 | namespace app\modules\shop\controllers; |
| 4 | 4 | |
| 5 | +use Yii; |
|
| 5 | 6 | use app\modules\core\behaviors\DisableRobotIndexBehavior; |
| 6 | 7 | use app\modules\core\helpers\EventTriggeringHelper; |
| 7 | 8 | use app\modules\core\models\Events; |
| 8 | -use app\modules\shop\helpers\PriceHelper; |
|
| 9 | +use app\modules\shop\ShopModule; |
|
| 9 | 10 | use app\modules\shop\events\OrderStageEvent; |
| 10 | 11 | use app\modules\shop\events\OrderStageLeafEvent; |
| 12 | +use app\modules\shop\helpers\PriceHelper; |
|
| 11 | 13 | use app\modules\shop\models\Currency; |
| 12 | 14 | use app\modules\shop\models\Order; |
| 13 | 15 | use app\modules\shop\models\OrderCode; |
@@ -16,10 +18,8 @@ discard block |
||
| 16 | 18 | use app\modules\shop\models\OrderStageLeaf; |
| 17 | 19 | use app\modules\shop\models\Product; |
| 18 | 20 | use app\modules\shop\models\SpecialPriceList; |
| 19 | -use app\modules\shop\ShopModule; |
|
| 20 | -use yii\helpers\Url; |
|
| 21 | -use Yii; |
|
| 22 | 21 | use yii\helpers\ArrayHelper; |
| 22 | +use yii\helpers\Url; |
|
| 23 | 23 | use yii\web\BadRequestHttpException; |
| 24 | 24 | use yii\web\Controller; |
| 25 | 25 | use yii\web\NotFoundHttpException; |
@@ -2,21 +2,21 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\modules\shop\controllers; |
| 4 | 4 | |
| 5 | +use Yii; |
|
| 5 | 6 | use app\components\Controller; |
| 6 | 7 | use app\extensions\DefaultTheme\components\BaseWidget; |
| 7 | 8 | use app\extensions\DefaultTheme\models\ThemeActiveWidgets; |
| 8 | 9 | use app\extensions\DefaultTheme\models\ThemeWidgets; |
| 9 | 10 | use app\extensions\DefaultTheme\widgets\FilterSets\Widget; |
| 11 | +use app\models\Object; |
|
| 10 | 12 | use app\models\PropertyStaticValues; |
| 13 | +use app\models\Search; |
|
| 11 | 14 | use app\modules\core\helpers\EventTriggeringHelper; |
| 12 | 15 | use app\modules\shop\events\ProductPageShowed; |
| 13 | 16 | use app\modules\shop\models\Category; |
| 14 | -use app\models\Object; |
|
| 15 | 17 | use app\modules\shop\models\Product; |
| 16 | -use app\models\Search; |
|
| 17 | 18 | use app\traits\DynamicContentTrait; |
| 18 | 19 | use devgroup\TagDependencyHelper\ActiveRecordHelper; |
| 19 | -use Yii; |
|
| 20 | 20 | use yii\caching\TagDependency; |
| 21 | 21 | use yii\data\Pagination; |
| 22 | 22 | use yii\helpers\ArrayHelper; |
@@ -9,7 +9,6 @@ |
||
| 9 | 9 | use app\modules\shop\models\DeliveryInformation; |
| 10 | 10 | use app\modules\shop\models\Order; |
| 11 | 11 | use app\modules\shop\models\OrderDeliveryInformation; |
| 12 | -use app\modules\shop\models\OrderStageLeaf; |
|
| 13 | 12 | use app\modules\shop\models\OrderTransaction; |
| 14 | 13 | use app\modules\shop\models\PaymentType; |
| 15 | 14 | use app\properties\HasProperties; |
@@ -239,7 +239,7 @@ discard block |
||
| 239 | 239 | /** |
| 240 | 240 | * Returns model using indentity map and cache |
| 241 | 241 | * @param int $id |
| 242 | - * @param int|null $isActive |
|
| 242 | + * @param integer $isActive |
|
| 243 | 243 | * @return Category|null |
| 244 | 244 | */ |
| 245 | 245 | public static function findById($id, $isActive = 1) |
@@ -275,6 +275,7 @@ discard block |
||
| 275 | 275 | /** |
| 276 | 276 | * Finds category by slug inside category_group_id |
| 277 | 277 | * Uses cache and identity_map |
| 278 | + * @param integer $category_group_id |
|
| 278 | 279 | */ |
| 279 | 280 | public static function findBySlug($slug, $category_group_id, $parent_id = 0) |
| 280 | 281 | { |
@@ -328,6 +329,7 @@ discard block |
||
| 328 | 329 | /** |
| 329 | 330 | * Ищет по name в рамках category_group_id |
| 330 | 331 | * Заносит в identity_map |
| 332 | + * @param integer $category_group_id |
|
| 331 | 333 | */ |
| 332 | 334 | public static function findByName($name, $category_group_id, $parent_id = 0) |
| 333 | 335 | { |
@@ -415,6 +417,7 @@ discard block |
||
| 415 | 417 | /** |
| 416 | 418 | * Ищет root для группы категорий |
| 417 | 419 | * Использует identity_map |
| 420 | + * @param integer $id |
|
| 418 | 421 | * @return Category|null |
| 419 | 422 | */ |
| 420 | 423 | public static function findRootForCategoryGroup($id = null) |
@@ -477,7 +480,7 @@ discard block |
||
| 477 | 480 | |
| 478 | 481 | /** |
| 479 | 482 | * @param int $parentId |
| 480 | - * @param int|null $isActive |
|
| 483 | + * @param integer $isActive |
|
| 481 | 484 | * @return Category[]|array |
| 482 | 485 | */ |
| 483 | 486 | public static function getByParentId($parentId = null, $isActive = 1) |
@@ -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 | /** |
@@ -257,7 +257,7 @@ |
||
| 257 | 257 | |
| 258 | 258 | /** |
| 259 | 259 | * Formats price with current currency settings |
| 260 | - * @param $price |
|
| 260 | + * @param double $price |
|
| 261 | 261 | * @return string |
| 262 | 262 | */ |
| 263 | 263 | public function format($price) |
@@ -2,13 +2,12 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\modules\shop\models; |
| 4 | 4 | |
| 5 | -use app\modules\shop\models\CurrencyRateProvider; |
|
| 6 | -use app\modules\shop\components\SpecialPriceProductInterface; |
|
| 7 | 5 | use Yii; |
| 6 | +use app\modules\shop\models\CurrencyRateProvider; |
|
| 8 | 7 | use yii\base\InvalidConfigException; |
| 9 | 8 | use yii\caching\TagDependency; |
| 10 | -use yii\helpers\ArrayHelper; |
|
| 11 | 9 | use yii\data\ActiveDataProvider; |
| 10 | +use yii\helpers\ArrayHelper; |
|
| 12 | 11 | |
| 13 | 12 | /** |
| 14 | 13 | * This is the model class Multi-currency |
@@ -224,7 +224,7 @@ |
||
| 224 | 224 | } |
| 225 | 225 | |
| 226 | 226 | /** |
| 227 | - * @return PropertyGroup|null |
|
| 227 | + * @return PropertyGroup |
|
| 228 | 228 | */ |
| 229 | 229 | public function getPropertyGroup() |
| 230 | 230 | { |
@@ -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 | /** |
@@ -84,7 +84,7 @@ |
||
| 84 | 84 | |
| 85 | 85 | /** |
| 86 | 86 | * @param Contragent $contragent |
| 87 | - * @return DeliveryInformation|null |
|
| 87 | + * @return DeliveryInformation |
|
| 88 | 88 | */ |
| 89 | 89 | public static function createNewDeliveryInformation(Contragent $contragent, $dummyObject = true) |
| 90 | 90 | { |
@@ -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 | /** |
@@ -3,8 +3,8 @@ |
||
| 3 | 3 | namespace app\modules\shop\models; |
| 4 | 4 | |
| 5 | 5 | |
| 6 | -use app\components\payment\AbstractPayment; |
|
| 7 | 6 | use Yii; |
| 7 | +use app\components\payment\AbstractPayment; |
|
| 8 | 8 | use yii\base\Exception; |
| 9 | 9 | use yii\base\UnknownClassException; |
| 10 | 10 | use yii\db\ActiveRecord; |