@@ -2,12 +2,12 @@ |
||
2 | 2 | |
3 | 3 | namespace app\modules\shop\models; |
4 | 4 | |
5 | +use Yii; |
|
5 | 6 | use app\modules\core\helpers\EventTriggeringHelper; |
6 | 7 | use app\modules\shop\events\OrderCalculateEvent; |
7 | 8 | use app\modules\shop\helpers\PriceHelper; |
8 | 9 | use app\modules\user\models\User; |
9 | 10 | use app\properties\HasProperties; |
10 | -use Yii; |
|
11 | 11 | use yii\base\Exception; |
12 | 12 | use yii\behaviors\TimestampBehavior; |
13 | 13 | use yii\caching\TagDependency; |
@@ -252,7 +252,7 @@ discard block |
||
252 | 252 | } |
253 | 253 | |
254 | 254 | /** |
255 | - * @return Customer|null |
|
255 | + * @return \yii\db\ActiveQuery |
|
256 | 256 | */ |
257 | 257 | public function getCustomer() |
258 | 258 | { |
@@ -295,7 +295,7 @@ discard block |
||
295 | 295 | } |
296 | 296 | |
297 | 297 | /** |
298 | - * @return OrderDeliveryInformation|null |
|
298 | + * @return \yii\db\ActiveQuery |
|
299 | 299 | */ |
300 | 300 | public function getOrderDeliveryInformation() |
301 | 301 | { |
@@ -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; |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace app\modules\shop\models; |
4 | 4 | |
5 | -use app\modules\user\models\User; |
|
6 | 5 | use Yii; |
6 | +use app\modules\user\models\User; |
|
7 | 7 | |
8 | 8 | /** |
9 | 9 | * This is the model class for table "{{%user_discount}}". |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace app\modules\shop\models; |
4 | 4 | |
5 | -use devgroup\TagDependencyHelper\ActiveRecordHelper; |
|
6 | 5 | use Yii; |
6 | +use devgroup\TagDependencyHelper\ActiveRecordHelper; |
|
7 | 7 | use yii\caching\TagDependency; |
8 | 8 | |
9 | 9 | /** |
@@ -168,7 +168,7 @@ |
||
168 | 168 | } |
169 | 169 | |
170 | 170 | /** |
171 | - * @return array |
|
171 | + * @return string[] |
|
172 | 172 | */ |
173 | 173 | public function getOfferElements() |
174 | 174 | { |
@@ -5,8 +5,8 @@ |
||
5 | 5 | */ |
6 | 6 | |
7 | 7 | use \app\backend\widgets\BackendWidget; |
8 | -use yii\helpers\Html; |
|
9 | 8 | use app\components\Helper; |
9 | +use yii\helpers\Html; |
|
10 | 10 | |
11 | 11 | $this->title = Yii::t('app', 'Customer edit'); |
12 | 12 | $this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Customers'), 'url' => ['index']]; |
@@ -1,5 +1,4 @@ |
||
1 | 1 | <?php |
2 | -use kartik\select2\Select2; |
|
3 | 2 | |
4 | 3 | /** |
5 | 4 | * @var $this yii\web\View |
@@ -5,9 +5,9 @@ |
||
5 | 5 | * @var \yii\data\ActiveDataProvider $dataProvider |
6 | 6 | */ |
7 | 7 | |
8 | +use kartik\icons\Icon; |
|
8 | 9 | use yii\helpers\Html; |
9 | - use yii\helpers\Url; |
|
10 | - use kartik\icons\Icon; |
|
10 | +use yii\helpers\Url; |
|
11 | 11 | |
12 | 12 | $this->title = Yii::t('app', 'Order stages leafs'); |
13 | 13 | $this->params['breadcrumbs'] = [ |
@@ -5,9 +5,9 @@ |
||
5 | 5 | * @var \yii\data\ActiveDataProvider $dataProvider |
6 | 6 | */ |
7 | 7 | |
8 | +use kartik\icons\Icon; |
|
8 | 9 | use yii\helpers\Html; |
9 | - use yii\helpers\Url; |
|
10 | - use kartik\icons\Icon; |
|
10 | +use yii\helpers\Url; |
|
11 | 11 | |
12 | 12 | $this->title = Yii::t('app', 'Order stages'); |
13 | 13 | $this->params['breadcrumbs'] = [ |