@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace app\modules\shop\models; |
| 3 | 3 | |
| 4 | -use app; |
|
| 5 | 4 | use Yii; |
| 6 | -use yii\base\Model; |
|
| 5 | +use app; |
|
| 7 | 6 | use app\modules\shop\helpers\CurrencyHelper; |
| 7 | +use yii\base\Model; |
|
| 8 | 8 | |
| 9 | 9 | /** |
| 10 | 10 | * Class for handling User's preferences ie: |
@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | +use app\backend\components\ActionColumn; |
|
| 2 | 3 | use kartik\dynagrid\DynaGrid; |
| 3 | 4 | use yii\helpers\Html; |
| 4 | -use app\backend\components\ActionColumn; |
|
| 5 | 5 | use \app\modules\shop\models\AddonCategory; |
| 6 | 6 | /* |
| 7 | 7 | * @var $dataProvider yii\data\ActiveDataProvider |
@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | +use app\backend\components\ActionColumn; |
|
| 2 | 3 | use kartik\dynagrid\DynaGrid; |
| 3 | 4 | use yii\helpers\Html; |
| 4 | -use app\backend\components\ActionColumn; |
|
| 5 | 5 | /* |
| 6 | 6 | * @var $dataProvider yii\data\ActiveDataProvider |
| 7 | 7 | * @var $searchModel app\modules\models\AddonCategory |
@@ -5,10 +5,10 @@ |
||
| 5 | 5 | * @var \yii\web\View $this |
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | -use kartik\editable\Editable; |
|
| 9 | -use kartik\helpers\Html; |
|
| 10 | 8 | use app\modules\shop\components\ProductEntity; |
| 11 | 9 | use app\modules\shop\models\Product; |
| 10 | +use kartik\editable\Editable; |
|
| 11 | +use kartik\helpers\Html; |
|
| 12 | 12 | |
| 13 | 13 | ?> |
| 14 | 14 | <?php foreach ($items as $item): ?> |
@@ -1,18 +1,18 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace app\modules\shop\widgets\charts; |
| 3 | 3 | |
| 4 | -use app\modules\user\models\User; |
|
| 5 | 4 | use Yii; |
| 6 | -use yii\db\ActiveQuery; |
|
| 7 | -use yii\db\ActiveRecord; |
|
| 8 | -use yii\db\Connection; |
|
| 9 | -use yii\helpers\Json; |
|
| 5 | +use app\modules\shop\helpers\CurrencyHelper; |
|
| 10 | 6 | use app\modules\shop\models\Currency; |
| 11 | -use yii\base\Widget; |
|
| 12 | 7 | use app\modules\shop\models\Order; |
| 13 | 8 | use app\modules\shop\models\OrderTransaction; |
| 14 | -use app\modules\shop\helpers\CurrencyHelper; |
|
| 15 | 9 | use app\modules\shop\widgets\charts\assets\SalesChartsAsset; |
| 10 | +use app\modules\user\models\User; |
|
| 11 | +use yii\base\Widget; |
|
| 12 | +use yii\db\ActiveQuery; |
|
| 13 | +use yii\db\ActiveRecord; |
|
| 14 | +use yii\db\Connection; |
|
| 15 | +use yii\helpers\Json; |
|
| 16 | 16 | |
| 17 | 17 | class SalesChartsWidget extends Widget |
| 18 | 18 | { |
@@ -46,7 +46,6 @@ discard block |
||
| 46 | 46 | |
| 47 | 47 | /** |
| 48 | 48 | * @param string $code |
| 49 | - * @param bool|true $useMainCurrency |
|
| 50 | 49 | * @return Currency |
| 51 | 50 | */ |
| 52 | 51 | static public function findCurrencyByIso($code) |
@@ -57,7 +56,7 @@ discard block |
||
| 57 | 56 | } |
| 58 | 57 | |
| 59 | 58 | /** |
| 60 | - * @param float|int $input |
|
| 59 | + * @param integer $input |
|
| 61 | 60 | * @param Currency $from |
| 62 | 61 | * @param Currency $to |
| 63 | 62 | * @return float|int |
@@ -84,7 +83,7 @@ discard block |
||
| 84 | 83 | } |
| 85 | 84 | |
| 86 | 85 | /** |
| 87 | - * @param float|int $input |
|
| 86 | + * @param integer $input |
|
| 88 | 87 | * @param Currency $from |
| 89 | 88 | * @return float|int |
| 90 | 89 | */ |
@@ -94,7 +93,7 @@ discard block |
||
| 94 | 93 | } |
| 95 | 94 | |
| 96 | 95 | /** |
| 97 | - * @param float|int $input |
|
| 96 | + * @param integer $input |
|
| 98 | 97 | * @param Currency $from |
| 99 | 98 | * @return float|int |
| 100 | 99 | */ |
@@ -104,7 +103,7 @@ discard block |
||
| 104 | 103 | } |
| 105 | 104 | |
| 106 | 105 | /** |
| 107 | - * @param float|int $input |
|
| 106 | + * @param integer $input |
|
| 108 | 107 | * @param Currency $to |
| 109 | 108 | * @return float|int |
| 110 | 109 | */ |
@@ -5,5 +5,8 @@ |
||
| 5 | 5 | |
| 6 | 6 | interface ModificationDataInterface |
| 7 | 7 | { |
| 8 | + /** |
|
| 9 | + * @return void |
|
| 10 | + */ |
|
| 8 | 11 | public static function processData(ModificationDataEvent $event); |
| 9 | 12 | } |
| 10 | 13 | \ No newline at end of file |
@@ -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,7 +5,6 @@ |
||
| 5 | 5 | use Yii; |
| 6 | 6 | use app\properties\AbstractPropertyEavModel; |
| 7 | 7 | use yii\helpers\FileHelper; |
| 8 | -use yii\helpers\VarDumper; |
|
| 9 | 8 | use yii\web\NotFoundHttpException; |
| 10 | 9 | use yii\web\Response; |
| 11 | 10 | use yii\web\UploadedFile; |