@@ -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 | { |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace app\widgets\options; |
4 | 4 | |
5 | 5 | use app\models\Property; |
6 | -use Yii; |
|
7 | 6 | use yii\base\Widget; |
8 | 7 | use yii\helpers\ArrayHelper; |
9 | 8 | use yii\helpers\Json; |
@@ -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 |
@@ -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,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 | /** |
@@ -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 | { |
@@ -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 | /** |