@@ -3,10 +3,10 @@ |
||
3 | 3 | namespace app\modules\core\helpers; |
4 | 4 | |
5 | 5 | |
6 | +use Symfony\Component\Process\Exception\ProcessFailedException; |
|
7 | +use Symfony\Component\Process\Exception\ProcessTimedOutException; |
|
6 | 8 | use Symfony\Component\Process\Process; |
7 | 9 | use Symfony\Component\Process\ProcessBuilder; |
8 | -use Symfony\Component\Process\Exception\ProcessTimedOutException; |
|
9 | -use Symfony\Component\Process\Exception\ProcessFailedException; |
|
10 | 10 | use Yii; |
11 | 11 | use yii\base\Component; |
12 | 12 |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | } |
76 | 76 | |
77 | 77 | /** |
78 | - * @return ContentBlockGroup[] |
|
78 | + * @return \yii\db\ActiveQuery |
|
79 | 79 | */ |
80 | 80 | public function getChild() |
81 | 81 | { |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | } |
84 | 84 | |
85 | 85 | /** |
86 | - * @return ContentBlock[] |
|
86 | + * @return \yii\db\ActiveQuery |
|
87 | 87 | */ |
88 | 88 | public function getContentBlocks() |
89 | 89 | { |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace app\modules\core\models; |
4 | 4 | |
5 | -use devgroup\TagDependencyHelper\ActiveRecordHelper; |
|
6 | 5 | use Yii; |
6 | +use devgroup\TagDependencyHelper\ActiveRecordHelper; |
|
7 | 7 | |
8 | 8 | /** |
9 | 9 | * This is the model class for table "{{%content_block_group}}". |
@@ -2,12 +2,11 @@ |
||
2 | 2 | |
3 | 3 | namespace app\modules\image\models; |
4 | 4 | |
5 | -use app\behaviors\ImageExist; |
|
6 | 5 | use Imagine\Image\Box; |
7 | 6 | use Imagine\Image\ImageInterface; |
8 | 7 | use League\Flysystem\Filesystem; |
9 | -use League\Flysystem\Util; |
|
10 | 8 | use Yii; |
9 | +use app\behaviors\ImageExist; |
|
11 | 10 | use yii\helpers\ArrayHelper; |
12 | 11 | use yii\imagine\Image as Imagine; |
13 | 12 | use yii\web\BadRequestHttpException; |
@@ -3,11 +3,10 @@ |
||
3 | 3 | use app\backend\widgets\BackendWidget; |
4 | 4 | use app\modules\image\models\Watermark; |
5 | 5 | use app\widgets\Alert; |
6 | +use kartik\icons\Icon; |
|
6 | 7 | use kartik\widgets\ActiveForm; |
7 | 8 | use kartik\widgets\FileInput; |
8 | 9 | use yii\helpers\Html; |
9 | -use kartik\icons\Icon; |
|
10 | -use yii\helpers\Url; |
|
11 | 10 | |
12 | 11 | /** |
13 | 12 | * @var yii\web\View $this |
@@ -10,8 +10,6 @@ |
||
10 | 10 | |
11 | 11 | use app\modules\image\models\Image; |
12 | 12 | use kartik\helpers\Html; |
13 | -use yii\helpers\ArrayHelper; |
|
14 | -use yii\helpers\Url; |
|
15 | 13 | |
16 | 14 | foreach ($images as $image) { |
17 | 15 | $image_src = $image->file; |
@@ -2,13 +2,13 @@ |
||
2 | 2 | |
3 | 3 | namespace app\modules\installer\components; |
4 | 4 | |
5 | +use Yii; |
|
6 | +use app\modules\config\helpers\ConfigurationUpdater; |
|
7 | +use app\modules\config\models\Configurable; |
|
5 | 8 | use app\modules\installer\models\AdminUser; |
6 | 9 | use app\modules\installer\models\FinalStep; |
7 | -use Yii; |
|
8 | 10 | use yii\helpers\ArrayHelper; |
9 | 11 | use yii\helpers\VarDumper; |
10 | -use app\modules\config\helpers\ConfigurationUpdater; |
|
11 | -use app\modules\config\models\Configurable; |
|
12 | 12 | |
13 | 13 | class InstallerHelper |
14 | 14 | { |
@@ -1,13 +1,13 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -use app\backend\widgets\BackendWidget; |
|
4 | 3 | use app\backend\components\ActiveForm; |
4 | +use app\backend\components\Helper; |
|
5 | +use app\backend\widgets\BackendWidget; |
|
6 | +use app\modules\page\PageModule; |
|
5 | 7 | use app\modules\page\backend\PageController; |
6 | 8 | use kartik\helpers\Html; |
7 | 9 | use kartik\icons\Icon; |
8 | 10 | use kartik\widgets\DateTimePicker; |
9 | -use app\modules\page\PageModule; |
|
10 | -use app\backend\components\Helper; |
|
11 | 11 | use yii\helpers\Url; |
12 | 12 | |
13 | 13 |
@@ -11,6 +11,9 @@ discard block |
||
11 | 11 | protected $fileHandler; |
12 | 12 | protected $urlsCount = 0; |
13 | 13 | |
14 | + /** |
|
15 | + * @return resource |
|
16 | + */ |
|
14 | 17 | protected function getFileHandler() |
15 | 18 | { |
16 | 19 | if ($this->fileHandler === null) { |
@@ -38,12 +41,19 @@ discard block |
||
38 | 41 | return rename($this->directory . $oldName, $this->directory . $newName); |
39 | 42 | } |
40 | 43 | |
44 | + /** |
|
45 | + * @param string|boolean $directory |
|
46 | + * @param string $domain |
|
47 | + */ |
|
41 | 48 | public function __construct($directory, $domain) |
42 | 49 | { |
43 | 50 | $this->directory = $directory; |
44 | 51 | $this->domain = $domain; |
45 | 52 | } |
46 | 53 | |
54 | + /** |
|
55 | + * @param string $url |
|
56 | + */ |
|
47 | 57 | public function addUrl($url) |
48 | 58 | { |
49 | 59 | // @todo convert "wrong" symbols |
@@ -94,7 +94,7 @@ |
||
94 | 94 | } |
95 | 95 | |
96 | 96 | /** |
97 | - * @return array prepared to dropdown list in configurable |
|
97 | + * @return string[] prepared to dropdown list in configurable |
|
98 | 98 | */ |
99 | 99 | public static function getRedirectTypes() |
100 | 100 | { |
@@ -1,14 +1,13 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace app\modules\seo; |
3 | 3 | |
4 | +use Yii; |
|
4 | 5 | use app\components\BaseModule; |
5 | 6 | use app\modules\seo\handlers\AnalyticsHandler; |
6 | 7 | use app\modules\seo\models\Counter; |
7 | 8 | use app\modules\seo\models\Meta; |
8 | -use Yii; |
|
9 | 9 | use yii\base\BootstrapInterface; |
10 | 10 | use yii\web\Application; |
11 | -use yii\web\Controller; |
|
12 | 11 | use yii\web\View; |
13 | 12 | |
14 | 13 | class SeoModule extends BaseModule implements BootstrapInterface |