@@ -2,9 +2,9 @@ |
||
2 | 2 | |
3 | 3 | namespace app\backend\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 |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace app\backend\models; |
4 | 4 | |
5 | -use app\modules\user\models\User; |
|
6 | 5 | use Yii; |
6 | +use app\modules\user\models\User; |
|
7 | 7 | use yii\db\ActiveRecord; |
8 | 8 | |
9 | 9 | /** |
@@ -56,7 +56,7 @@ |
||
56 | 56 | } |
57 | 57 | |
58 | 58 | /** |
59 | - * @return User |
|
59 | + * @return \yii\db\ActiveQuery |
|
60 | 60 | */ |
61 | 61 | public function getUser() |
62 | 62 | { |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace app\backend\widgets; |
4 | 4 | |
5 | -use yii\base\Widget; |
|
6 | 5 | use app\backend\models\Notification as NotificationModel; |
6 | +use yii\base\Widget; |
|
7 | 7 | |
8 | 8 | class Notification extends Widget |
9 | 9 | { |
@@ -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 | /** |
@@ -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 |