@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace tests\unit\models; |
| 4 | 4 | |
| 5 | -use app\modules\user\models\User; |
|
| 6 | 5 | use Yii; |
| 6 | +use app\modules\user\models\User; |
|
| 7 | 7 | use yii\codeception\TestCase; |
| 8 | 8 | |
| 9 | 9 | class LoginFormTest extends TestCase |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | - * @return User|\yii\db\ActiveQuery |
|
| 30 | + * @return \yii\db\ActiveQuery |
|
| 31 | 31 | */ |
| 32 | 32 | public function getUser() |
| 33 | 33 | { |
@@ -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 | { |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | /** |
| 28 | - * @return Category|\yii\db\ActiveQuery |
|
| 28 | + * @return \yii\db\ActiveQuery |
|
| 29 | 29 | */ |
| 30 | 30 | public function getCategory() |
| 31 | 31 | { |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | /** |
| 27 | - * @return Product|\yii\db\ActiveQuery |
|
| 27 | + * @return \yii\db\ActiveQuery |
|
| 28 | 28 | */ |
| 29 | 29 | public function getProduct() |
| 30 | 30 | { |