@@ -2,12 +2,12 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\modules\image\models; |
| 4 | 4 | |
| 5 | +use Yii; |
|
| 5 | 6 | use app\backend\components\Helper; |
| 6 | 7 | use app\models\Object; |
| 7 | 8 | use app\modules\page\models\Page; |
| 8 | 9 | use app\modules\shop\models\Category; |
| 9 | 10 | use app\modules\shop\models\Product; |
| 10 | -use Yii; |
|
| 11 | 11 | use yii\helpers\Html; |
| 12 | 12 | |
| 13 | 13 | /** |
@@ -22,6 +22,9 @@ discard block |
||
| 22 | 22 | protected $backendLink; |
| 23 | 23 | protected static $classNames; |
| 24 | 24 | |
| 25 | + /** |
|
| 26 | + * @param integer $id |
|
| 27 | + */ |
|
| 25 | 28 | protected function getPageLinks($id) |
| 26 | 29 | { |
| 27 | 30 | /** @var Page $model */ |
@@ -46,6 +49,9 @@ discard block |
||
| 46 | 49 | } |
| 47 | 50 | } |
| 48 | 51 | |
| 52 | + /** |
|
| 53 | + * @param integer $id |
|
| 54 | + */ |
|
| 49 | 55 | protected function getCategoryLinks($id) |
| 50 | 56 | { |
| 51 | 57 | $model = Category::findById($id, null); |
@@ -72,6 +78,9 @@ discard block |
||
| 72 | 78 | } |
| 73 | 79 | } |
| 74 | 80 | |
| 81 | + /** |
|
| 82 | + * @param integer $id |
|
| 83 | + */ |
|
| 75 | 84 | protected function getProductLinks($id) |
| 76 | 85 | { |
| 77 | 86 | $product = Yii::$container->get(Product::class); |
@@ -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); |
@@ -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 | |
@@ -62,9 +62,9 @@ |
||
| 62 | 62 | |
| 63 | 63 | /** |
| 64 | 64 | * Return thumbnail width watermark or create if not exist |
| 65 | - * @param $thumb Thumbnail |
|
| 66 | - * @param $water Watermark |
|
| 67 | - * @return thumbnail |
|
| 65 | + * @param Thumbnail $thumb Thumbnail |
|
| 66 | + * @param Watermark $water Watermark |
|
| 67 | + * @return ThumbnailWatermark |
|
| 68 | 68 | */ |
| 69 | 69 | public static function getThumbnailWatermark($thumb, $water) |
| 70 | 70 | { |
@@ -2,10 +2,10 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\modules\image\widgets; |
| 4 | 4 | |
| 5 | -use app\modules\image\models\Image; |
|
| 6 | -use devgroup\dropzone\DropZone; |
|
| 7 | 5 | use Imagine\Image\ManipulatorInterface; |
| 8 | 6 | use Yii; |
| 7 | +use app\modules\image\models\Image; |
|
| 8 | +use devgroup\dropzone\DropZone; |
|
| 9 | 9 | use yii\helpers\ArrayHelper; |
| 10 | 10 | use yii\helpers\Html; |
| 11 | 11 | use yii\helpers\Json; |
@@ -2,10 +2,10 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\modules\image\widgets; |
| 4 | 4 | |
| 5 | +use Yii; |
|
| 5 | 6 | use app\modules\image\models\Image; |
| 6 | 7 | use app\traits\GetImages; |
| 7 | 8 | use devgroup\TagDependencyHelper\ActiveRecordHelper; |
| 8 | -use Yii; |
|
| 9 | 9 | use yii\base\Widget; |
| 10 | 10 | use yii\caching\TagDependency; |
| 11 | 11 | |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\modules\image\widgets; |
| 4 | 4 | |
| 5 | -use app\components\Helper; |
|
| 6 | 5 | use Yii; |
| 6 | +use app\components\Helper; |
|
| 7 | 7 | use app\modules\image\models\Image; |
| 8 | 8 | use yii\helpers\ArrayHelper; |
| 9 | 9 | use yii\helpers\Json; |
@@ -2,15 +2,13 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\modules\installer\commands; |
| 4 | 4 | |
| 5 | +use Yii; |
|
| 5 | 6 | use app\modules\core\helpers\UpdateHelper; |
| 6 | -use app\modules\installer\models\AdminUser; |
|
| 7 | -use app\modules\installer\models\DbConfig; |
|
| 8 | 7 | use app\modules\installer\components\InstallerFilter; |
| 9 | 8 | use app\modules\installer\components\InstallerHelper; |
| 9 | +use app\modules\installer\models\AdminUser; |
|
| 10 | +use app\modules\installer\models\DbConfig; |
|
| 10 | 11 | use app\modules\installer\models\FinalStep; |
| 11 | -use app\modules\installer\models\MigrateModel; |
|
| 12 | -use Yii; |
|
| 13 | -use yii\base\DynamicModel; |
|
| 14 | 12 | use yii\console\Controller; |
| 15 | 13 | use yii\helpers\Console; |
| 16 | 14 | |
@@ -2,14 +2,14 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\modules\installer\controllers; |
| 4 | 4 | |
| 5 | +use Yii; |
|
| 5 | 6 | use app\modules\core\helpers\UpdateHelper; |
| 6 | -use app\modules\installer\models\AdminUser; |
|
| 7 | -use app\modules\installer\models\DbConfig; |
|
| 8 | 7 | use app\modules\installer\components\InstallerFilter; |
| 9 | 8 | use app\modules\installer\components\InstallerHelper; |
| 9 | +use app\modules\installer\models\AdminUser; |
|
| 10 | +use app\modules\installer\models\DbConfig; |
|
| 10 | 11 | use app\modules\installer\models\FinalStep; |
| 11 | 12 | use app\modules\installer\models\MigrateModel; |
| 12 | -use Yii; |
|
| 13 | 13 | use yii\base\DynamicModel; |
| 14 | 14 | use yii\web\Controller; |
| 15 | 15 | |
@@ -2,9 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\modules\page\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 ConfigConfigurationModel represents configuration model for retrieving user input |