@@ -2,11 +2,11 @@ |
||
2 | 2 | |
3 | 3 | namespace app\backend\widgets; |
4 | 4 | |
5 | +use Yii; |
|
6 | +use kartik\icons\Icon; |
|
5 | 7 | use yii\base\InvalidParamException; |
6 | 8 | use yii\base\Widget; |
7 | 9 | use yii\helpers\Html; |
8 | -use kartik\icons\Icon; |
|
9 | -use Yii; |
|
10 | 10 | |
11 | 11 | class PublishSwitchButtons extends Widget |
12 | 12 | { |
@@ -3,12 +3,12 @@ |
||
3 | 3 | namespace app\backend\widgets; |
4 | 4 | |
5 | 5 | |
6 | -use yii\base\Widget; |
|
7 | 6 | use Yii; |
8 | -use yii\helpers\Html; |
|
9 | -use yii\base\InvalidParamException; |
|
10 | 7 | use app\modules\shop\models\Category; |
11 | 8 | use kartik\icons\Icon; |
9 | +use yii\base\InvalidParamException; |
|
10 | +use yii\base\Widget; |
|
11 | +use yii\helpers\Html; |
|
12 | 12 | |
13 | 13 | class CategoryMovementsButtons extends Widget |
14 | 14 | { |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace app\backend\actions; |
4 | 4 | |
5 | -use yii\web\Application; |
|
6 | 5 | use Yii; |
6 | +use yii\web\Application; |
|
7 | 7 | |
8 | 8 | class FlushCacheConsoleAction extends FlushCacheAction |
9 | 9 | { |
@@ -2,13 +2,13 @@ |
||
2 | 2 | |
3 | 3 | namespace app\backgroundtasks\controllers; |
4 | 4 | |
5 | -use app\backgroundtasks\models\Task; |
|
6 | 5 | use Yii; |
6 | +use app\backgroundtasks\models\Task; |
|
7 | 7 | use yii\filters\AccessControl; |
8 | 8 | use yii\filters\VerbFilter; |
9 | +use yii\helpers\Url; |
|
9 | 10 | use yii\web\Controller; |
10 | 11 | use yii\web\NotFoundHttpException; |
11 | -use yii\helpers\Url; |
|
12 | 12 | |
13 | 13 | /** |
14 | 14 | * Class ManageController |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | |
159 | 159 | /** |
160 | 160 | * Users relation |
161 | - * @return mixed |
|
161 | + * @return \yii\db\ActiveQuery |
|
162 | 162 | */ |
163 | 163 | public function getUsers() |
164 | 164 | { |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | |
232 | 232 | /** |
233 | 233 | * Set status |
234 | - * @param $status |
|
234 | + * @param string $status |
|
235 | 235 | * @return bool |
236 | 236 | */ |
237 | 237 | public function setStatus($status) |
@@ -2,10 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace app\backgroundtasks\traits; |
4 | 4 | |
5 | -use app\modules\page\models\Page; |
|
5 | +use Yii; |
|
6 | 6 | use app\models\SubscribeEmail; |
7 | +use app\modules\page\models\Page; |
|
7 | 8 | use app\properties\HasProperties; |
8 | -use Yii; |
|
9 | 9 | |
10 | 10 | trait NewsletterSenderTrait |
11 | 11 | { |
@@ -2,12 +2,12 @@ |
||
2 | 2 | |
3 | 3 | namespace app\behaviors; |
4 | 4 | |
5 | -use app\modules\shop\models\Category; |
|
6 | 5 | use Yii; |
7 | -use yii\helpers\ArrayHelper; |
|
6 | +use app\modules\shop\models\Category; |
|
8 | 7 | use yii\base\Behavior; |
9 | 8 | use yii\caching\TagDependency; |
10 | 9 | use yii\db\ActiveRecord; |
10 | +use yii\helpers\ArrayHelper; |
|
11 | 11 | |
12 | 12 | /** |
13 | 13 | * Class Tree |
@@ -109,6 +109,10 @@ |
||
109 | 109 | } |
110 | 110 | |
111 | 111 | |
112 | + /** |
|
113 | + * @param string|boolean $path |
|
114 | + * @param string $themeName |
|
115 | + */ |
|
112 | 116 | protected function createStructure($path, $children, $themeName) |
113 | 117 | { |
114 | 118 | foreach ($children as $child) { |
@@ -3,11 +3,11 @@ |
||
3 | 3 | namespace app\commands; |
4 | 4 | |
5 | 5 | use Imagine\Image\ManipulatorInterface; |
6 | -use app\backend\actions\FlushCacheConsoleAction; |
|
7 | 6 | use Yii; |
8 | -use yii\console\Controller; |
|
9 | 7 | use app; |
8 | +use app\backend\actions\FlushCacheConsoleAction; |
|
10 | 9 | use app\modules\image\models\Image; |
10 | +use yii\console\Controller; |
|
11 | 11 | |
12 | 12 | /** |
13 | 13 | * Admin commands |
@@ -2,13 +2,13 @@ |
||
2 | 2 | |
3 | 3 | namespace app\components\swap\provider; |
4 | 4 | |
5 | -use app\modules\shop\models\CurrencyRateProvider; |
|
6 | 5 | use Ivory\HttpAdapter\HttpAdapterInterface; |
7 | 6 | use Swap\Exception\Exception; |
8 | 7 | use Swap\Model\CurrencyPair; |
9 | 8 | use Swap\Model\Rate; |
10 | 9 | use Swap\Provider\AbstractProvider; |
11 | 10 | use Swap\Swap; |
11 | +use app\modules\shop\models\CurrencyRateProvider; |
|
12 | 12 | |
13 | 13 | /** |
14 | 14 | * Class MultiProvider |