@@ -2,9 +2,9 @@ |
||
2 | 2 | |
3 | 3 | namespace app\modules\data\models; |
4 | 4 | |
5 | +use Yii; |
|
5 | 6 | use app; |
6 | 7 | use app\modules\config\models\BaseConfigurationModel; |
7 | -use Yii; |
|
8 | 8 | |
9 | 9 | /** |
10 | 10 | * Class ConfigConfigurableModel represents configuration model for retrieving user input |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace app\modules\data\models; |
4 | 4 | |
5 | -use app\modules\data\DataModule; |
|
6 | 5 | use Yii; |
7 | 6 | use yii\base\Model; |
8 | 7 | use yii\helpers\Json; |
@@ -2,10 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace app\modules\image\controllers; |
4 | 4 | |
5 | +use Yii; |
|
5 | 6 | use app\backgroundtasks\helpers\BackgroundTasks; |
6 | 7 | use app\components\SearchModel; |
7 | 8 | use app\modules\image\models\ErrorImage; |
8 | -use Yii; |
|
9 | 9 | use yii\filters\AccessControl; |
10 | 10 | |
11 | 11 | class BackendErrorImagesController extends \app\backend\components\BackendController |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace app\modules\image\controllers; |
4 | 4 | |
5 | -use app\backgroundtasks\helpers\BackgroundTasks; |
|
6 | 5 | use Yii; |
6 | +use app\backgroundtasks\helpers\BackgroundTasks; |
|
7 | 7 | use yii\filters\AccessControl; |
8 | 8 | |
9 | 9 | class BackendThumbnailController extends \app\backend\components\BackendController |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace app\modules\image\controllers; |
4 | 4 | |
5 | -use app\modules\image\models\ThumbnailSize; |
|
6 | 5 | use Yii; |
6 | +use app\modules\image\models\ThumbnailSize; |
|
7 | 7 | use yii\filters\AccessControl; |
8 | 8 | use yii\helpers\Url; |
9 | 9 | use yii\web\NotFoundHttpException; |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace app\modules\image\controllers; |
4 | 4 | |
5 | -use app\modules\image\models\Watermark; |
|
6 | 5 | use Yii; |
6 | +use app\modules\image\models\Watermark; |
|
7 | 7 | use yii\filters\AccessControl; |
8 | 8 | use yii\helpers\Url; |
9 | 9 | use yii\web\NotFoundHttpException; |
@@ -2,9 +2,9 @@ |
||
2 | 2 | |
3 | 3 | namespace app\modules\image\models; |
4 | 4 | |
5 | +use Yii; |
|
5 | 6 | use app; |
6 | 7 | use app\modules\config\models\BaseConfigurationModel; |
7 | -use Yii; |
|
8 | 8 | use yii\helpers\ArrayHelper; |
9 | 9 | |
10 | 10 |
@@ -93,6 +93,9 @@ |
||
93 | 93 | return $dataProvider; |
94 | 94 | } |
95 | 95 | |
96 | + /** |
|
97 | + * @param string $demand |
|
98 | + */ |
|
96 | 99 | public static function getByDemand($demand) |
97 | 100 | { |
98 | 101 | $sizes = explode('x', $demand); |
@@ -62,7 +62,7 @@ |
||
62 | 62 | |
63 | 63 | /** |
64 | 64 | * Return thumbnail width watermark or create if not exist |
65 | - * @param $thumb Thumbnail |
|
65 | + * @param Thumbnail $thumb Thumbnail |
|
66 | 66 | * @param $water Watermark |
67 | 67 | * @return thumbnail |
68 | 68 | */ |
@@ -2,9 +2,9 @@ |
||
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 Yii; |
7 | +use app\behaviors\ImageExist; |
|
8 | 8 | use yii\base\Exception; |
9 | 9 | use yii\imagine\Image as Imagine; |
10 | 10 |