@@ -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 |
@@ -16,6 +16,9 @@ discard block |
||
16 | 16 | const EVENT_PRE_DECORATOR = 'pre-decorator'; |
17 | 17 | const EVENT_POST_DECORATOR = 'post-decorator'; |
18 | 18 | |
19 | + /** |
|
20 | + * @param string $methodName |
|
21 | + */ |
|
19 | 22 | protected function renderDecorator($methodName, $view, $params = []) |
20 | 23 | { |
21 | 24 | if (!empty(Yii::$app->response->title)) { |
@@ -91,6 +94,7 @@ discard block |
||
91 | 94 | |
92 | 95 | /** |
93 | 96 | * @inheritdoc |
97 | + * @param string $view |
|
94 | 98 | */ |
95 | 99 | public function render($view, $params = []) |
96 | 100 | { |
@@ -99,6 +103,7 @@ discard block |
||
99 | 103 | |
100 | 104 | /** |
101 | 105 | * @inheritdoc |
106 | + * @param string $view |
|
102 | 107 | */ |
103 | 108 | public function renderAjax($view, $params = []) |
104 | 109 | { |
@@ -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; |
@@ -61,7 +61,7 @@ |
||
61 | 61 | } |
62 | 62 | |
63 | 63 | /** |
64 | - * @return string|null |
|
64 | + * @return null|\yii\web\Response |
|
65 | 65 | */ |
66 | 66 | public function customCheck() |
67 | 67 | { |