@@ -2,13 +2,13 @@ |
||
2 | 2 | |
3 | 3 | namespace app\components; |
4 | 4 | |
5 | +use Imagine\Image\ManipulatorInterface; |
|
5 | 6 | use Yii; |
6 | 7 | use yii\base\Exception; |
7 | 8 | use yii\base\Model; |
8 | 9 | use yii\caching\TagDependency; |
9 | 10 | use yii\db\ActiveRecord; |
10 | 11 | use yii\helpers\ArrayHelper; |
11 | -use Imagine\Image\ManipulatorInterface; |
|
12 | 12 | |
13 | 13 | /** |
14 | 14 | * Universal helper for common use cases |
@@ -2,14 +2,14 @@ |
||
2 | 2 | |
3 | 3 | namespace app\components; |
4 | 4 | |
5 | -use app\modules\shop\models\Category; |
|
5 | +use Yii; |
|
6 | 6 | use app\models\Object; |
7 | 7 | use app\models\PrefilteredPages; |
8 | 8 | use app\models\Route; |
9 | +use app\modules\shop\models\Category; |
|
9 | 10 | use app\properties\url\StaticPart; |
10 | 11 | use app\properties\url\UrlPart; |
11 | 12 | use devgroup\TagDependencyHelper\ActiveRecordHelper; |
12 | -use Yii; |
|
13 | 13 | use yii\caching\TagDependency; |
14 | 14 | use yii\db\ActiveRecord; |
15 | 15 | use yii\helpers\ArrayHelper; |
@@ -36,6 +36,9 @@ |
||
36 | 36 | $this->elements[$cacheStackId][$elementType][] = $arguments; |
37 | 37 | } |
38 | 38 | |
39 | + /** |
|
40 | + * @param string $elementType |
|
41 | + */ |
|
39 | 42 | public function gather($elementType, $arguments) |
40 | 43 | { |
41 | 44 | if ($this->currentStackId===null) { |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace app\controllers; |
4 | 4 | |
5 | -use app\models\SubscribeEmail; |
|
6 | 5 | use Yii; |
6 | +use app\models\SubscribeEmail; |
|
7 | 7 | use yii\web\Controller; |
8 | 8 | |
9 | 9 | class SubscribeController extends Controller |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace app\controllers; |
4 | 4 | |
5 | -use app\backend\components\Yml; |
|
6 | 5 | use Yii; |
6 | +use app\backend\components\Yml; |
|
7 | 7 | use yii\web\Controller; |
8 | 8 | |
9 | 9 | class YmlController extends Controller |
@@ -2,6 +2,7 @@ discard block |
||
2 | 2 | |
3 | 3 | namespace app\extensions\DefaultTheme\backend; |
4 | 4 | |
5 | +use Yii; |
|
5 | 6 | use app\backend\components\BackendController; |
6 | 7 | use app\backend\traits\BackendRedirect; |
7 | 8 | use app\extensions\DefaultTheme\models\BaseWidgetConfigurationModel; |
@@ -12,8 +13,6 @@ discard block |
||
12 | 13 | use app\extensions\DefaultTheme\models\WidgetConfigurationModel; |
13 | 14 | use app\traits\LoadModel; |
14 | 15 | use devgroup\TagDependencyHelper\ActiveRecordHelper; |
15 | -use Yii; |
|
16 | -use yii\base\DynamicModel; |
|
17 | 16 | use yii\helpers\Json; |
18 | 17 | use yii\web\BadRequestHttpException; |
19 | 18 | use yii\web\NotFoundHttpException; |
@@ -151,6 +151,7 @@ |
||
151 | 151 | |
152 | 152 | /** |
153 | 153 | * @inheritdoc |
154 | + * @param string $view |
|
154 | 155 | */ |
155 | 156 | public function render($view, $params = []) |
156 | 157 | { |
@@ -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 | /** |
@@ -2,8 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace app\extensions\DefaultTheme\models; |
4 | 4 | |
5 | -use Yii; |
|
6 | - |
|
7 | 5 | class BaseWidgetConfigurationModel extends WidgetConfigurationModel |
8 | 6 | { |
9 | 7 | public $configurationJson = '{}'; |
@@ -6,9 +6,6 @@ |
||
6 | 6 | /** @var boolean $displayHeader */ |
7 | 7 | /** @var string $header */ |
8 | 8 | /** @var string $id */ |
9 | -use app\models\Object; |
|
10 | -use app\modules\shop\models\Product; |
|
11 | -use yii\db\Query; |
|
12 | 9 | use yii\helpers\Html; |
13 | 10 | use yii\helpers\Url; |
14 | 11 | ?> |