@@ -2,14 +2,14 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\backend\widgets; |
| 4 | 4 | |
| 5 | -use devgroup\TagDependencyHelper\ActiveRecordHelper; |
|
| 6 | 5 | use Yii; |
| 7 | 6 | use app; |
| 7 | +use app\modules\shop\models\Warehouse; |
|
| 8 | +use app\modules\shop\models\WarehouseProduct; |
|
| 9 | +use devgroup\TagDependencyHelper\ActiveRecordHelper; |
|
| 8 | 10 | use yii\base\InvalidConfigException; |
| 9 | 11 | use yii\base\Widget; |
| 10 | 12 | use yii\caching\TagDependency; |
| 11 | -use app\modules\shop\models\WarehouseProduct; |
|
| 12 | -use app\modules\shop\models\Warehouse; |
|
| 13 | 13 | |
| 14 | 14 | |
| 15 | 15 | /** |
@@ -231,7 +231,7 @@ |
||
| 231 | 231 | |
| 232 | 232 | /** |
| 233 | 233 | * Set status |
| 234 | - * @param $status |
|
| 234 | + * @param string $status |
|
| 235 | 235 | * @return bool |
| 236 | 236 | */ |
| 237 | 237 | public function setStatus($status) |
@@ -2,12 +2,12 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\behaviors; |
| 4 | 4 | |
| 5 | -use app\modules\image\models\Image; |
|
| 5 | +use Yii; |
|
| 6 | 6 | use app\models\Object; |
| 7 | 7 | use app\models\ObjectPropertyGroup; |
| 8 | 8 | use app\models\ObjectStaticValues; |
| 9 | 9 | use app\models\ViewObject; |
| 10 | -use Yii; |
|
| 10 | +use app\modules\image\models\Image; |
|
| 11 | 11 | use yii\base\Behavior; |
| 12 | 12 | use yii\db\ActiveRecord; |
| 13 | 13 | use yii\db\Exception; |
@@ -7,5 +7,9 @@ |
||
| 7 | 7 | interface SpamCheckable |
| 8 | 8 | { |
| 9 | 9 | public function check(); |
| 10 | + |
|
| 11 | + /** |
|
| 12 | + * @return string |
|
| 13 | + */ |
|
| 10 | 14 | public function getType(); |
| 11 | 15 | } |
| 12 | 16 | \ No newline at end of file |
@@ -2,12 +2,12 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\commands; |
| 4 | 4 | |
| 5 | -use app\modules\core\models\Extensions; |
|
| 6 | 5 | use Yii; |
| 6 | +use app\modules\core\models\Extensions; |
|
| 7 | 7 | use yii\console\Controller; |
| 8 | 8 | use yii\helpers\ArrayHelper; |
| 9 | -use yii\helpers\Json; |
|
| 10 | 9 | use yii\helpers\Console; |
| 10 | +use yii\helpers\Json; |
|
| 11 | 11 | |
| 12 | 12 | class ExtensionController extends Controller |
| 13 | 13 | { |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\components; |
| 4 | 4 | |
| 5 | -use kartik\icons\Icon; |
|
| 6 | 5 | use Yii; |
| 6 | +use kartik\icons\Icon; |
|
| 7 | 7 | use yii\helpers\Html; |
| 8 | 8 | |
| 9 | 9 | class ActionColumn extends \yii\grid\ActionColumn |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | * Installs module |
| 32 | 32 | * @param bool $applyAppMigrations |
| 33 | 33 | * @param bool $updateComposer |
| 34 | - * @return mixed |
|
| 34 | + * @return boolean |
|
| 35 | 35 | */ |
| 36 | 36 | public static function installModule($applyAppMigrations = true, $updateComposer = true) |
| 37 | 37 | { |
@@ -2,12 +2,12 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\components; |
| 4 | 4 | |
| 5 | +use Symfony\Component\Process\Process; |
|
| 6 | +use Yii; |
|
| 5 | 7 | use app; |
| 6 | -use app\modules\config\models\Configurable; |
|
| 7 | 8 | use app\modules\config\helpers\ConfigurationUpdater; |
| 9 | +use app\modules\config\models\Configurable; |
|
| 8 | 10 | use devgroup\TagDependencyHelper\ActiveRecordHelper; |
| 9 | -use Symfony\Component\Process\Process; |
|
| 10 | -use Yii; |
|
| 11 | 11 | |
| 12 | 12 | /** |
| 13 | 13 | * Class ExtensionModule is the base module that must use all DotPlant2 extensions |
@@ -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; |