@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use Yii; |
| 6 | 6 | use app\properties\AbstractPropertyEavModel; |
| 7 | 7 | use yii\helpers\FileHelper; |
| 8 | -use yii\helpers\VarDumper; |
|
| 9 | 8 | use yii\web\NotFoundHttpException; |
| 10 | 9 | use yii\web\Response; |
| 11 | 10 | use yii\web\UploadedFile; |
@@ -78,6 +78,11 @@ |
||
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | |
| 81 | + /** |
|
| 82 | + * @param string $relationName |
|
| 83 | + * |
|
| 84 | + * @return string |
|
| 85 | + */ |
|
| 81 | 86 | protected static function getRelation($model, $relationName, $default_value = '') |
| 82 | 87 | { |
| 83 | 88 | $result = $default_value; |
@@ -16,7 +16,6 @@ |
||
| 16 | 16 | public static $returnUrlWithoutHistory = false; |
| 17 | 17 | |
| 18 | 18 | /** |
| 19 | - * @param int $depth |
|
| 20 | 19 | * @return string |
| 21 | 20 | */ |
| 22 | 21 | public static function getReturnUrl() |
@@ -2,12 +2,12 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\backend\components; |
| 4 | 4 | |
| 5 | +use Yii; |
|
| 5 | 6 | use app\backend\BackendModule; |
| 6 | 7 | use app\components\BaseModule; |
| 7 | -use Yii; |
|
| 8 | +use kartik\icons\Icon; |
|
| 8 | 9 | use yii\db\ActiveRecord; |
| 9 | 10 | use yii\helpers\Html; |
| 10 | -use kartik\icons\Icon; |
|
| 11 | 11 | |
| 12 | 12 | class Helper |
| 13 | 13 | { |
@@ -2,14 +2,10 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\controllers; |
| 4 | 4 | |
| 5 | +use Yii; |
|
| 5 | 6 | use app\actions\SubmitFormAction; |
| 6 | -use app\backend\actions\PropertyHandler; |
|
| 7 | -use app\models\Form; |
|
| 8 | 7 | use app\models\Search; |
| 9 | -use app\modules\core\components\MailComponent; |
|
| 10 | 8 | use app\modules\shop\models\Product; |
| 11 | -use app\modules\seo\behaviors\MetaBehavior; |
|
| 12 | -use Yii; |
|
| 13 | 9 | use yii\helpers\Url; |
| 14 | 10 | use yii\web\Controller; |
| 15 | 11 | use yii\web\Response; |
@@ -2,15 +2,15 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\modules\core\controllers; |
| 4 | 4 | |
| 5 | +use Yii; |
|
| 5 | 6 | use app\backend\components\BackendController; |
| 6 | 7 | use app\backend\traits\BackendRedirect; |
| 8 | +use app\modules\core\models\ContentBlock; |
|
| 7 | 9 | use app\modules\core\models\ContentBlockGroup; |
| 8 | 10 | use devgroup\JsTreeWidget\AdjacencyFullTreeDataAction; |
| 9 | 11 | use devgroup\JsTreeWidget\TreeNodeMoveAction; |
| 10 | 12 | use devgroup\JsTreeWidget\TreeNodesReorderAction; |
| 11 | 13 | use yii\filters\AccessControl; |
| 12 | -use app\modules\core\models\ContentBlock; |
|
| 13 | -use Yii; |
|
| 14 | 14 | use yii\helpers\Url; |
| 15 | 15 | use yii\web\NotFoundHttpException; |
| 16 | 16 | |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\traits; |
| 4 | 4 | |
| 5 | -use devgroup\TagDependencyHelper\ActiveRecordHelper; |
|
| 6 | 5 | use Yii; |
| 6 | +use devgroup\TagDependencyHelper\ActiveRecordHelper; |
|
| 7 | 7 | use yii\caching\TagDependency; |
| 8 | 8 | use yii\db\ActiveRecord; |
| 9 | 9 | use yii\web\NotFoundHttpException; |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | /** |
| 78 | - * @return ContentBlockGroup[] |
|
| 78 | + * @return \yii\db\ActiveQuery |
|
| 79 | 79 | */ |
| 80 | 80 | public function getChild() |
| 81 | 81 | { |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | /** |
| 86 | - * @return ContentBlock[] |
|
| 86 | + * @return \yii\db\ActiveQuery |
|
| 87 | 87 | */ |
| 88 | 88 | public function getContentBlocks() |
| 89 | 89 | { |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | protected $subject = null; |
| 45 | 45 | |
| 46 | 46 | /** |
| 47 | - * @return null |
|
| 47 | + * @return string |
|
| 48 | 48 | */ |
| 49 | 49 | public function getSubject() |
| 50 | 50 | { |
@@ -2,11 +2,10 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\models; |
| 4 | 4 | |
| 5 | +use Yii; |
|
| 5 | 6 | use app\properties\AbstractModel; |
| 6 | 7 | use app\properties\HasProperties; |
| 7 | -use Yii; |
|
| 8 | 8 | use yii\data\ActiveDataProvider; |
| 9 | -use yii\helpers\ArrayHelper; |
|
| 10 | 9 | |
| 11 | 10 | /** |
| 12 | 11 | * This is the model class for table "submission". |
@@ -2,12 +2,12 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\widgets\navigation\models; |
| 4 | 4 | |
| 5 | +use Yii; |
|
| 5 | 6 | use app\backgroundtasks\traits\SearchModelTrait; |
| 6 | 7 | use app\behaviors\Tree; |
| 7 | 8 | use app\properties\HasProperties; |
| 8 | 9 | use app\traits\FindById; |
| 9 | 10 | use app\traits\GetImages; |
| 10 | -use Yii; |
|
| 11 | 11 | use yii\data\ActiveDataProvider; |
| 12 | 12 | |
| 13 | 13 | /** |
@@ -2,12 +2,12 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\widgets\navigation\models; |
| 4 | 4 | |
| 5 | +use Yii; |
|
| 5 | 6 | use app\backgroundtasks\traits\SearchModelTrait; |
| 6 | 7 | use app\behaviors\Tree; |
| 7 | 8 | use app\properties\HasProperties; |
| 8 | 9 | use app\traits\FindById; |
| 9 | 10 | use app\traits\GetImages; |
| 10 | -use Yii; |
|
| 11 | 11 | use yii\data\ActiveDataProvider; |
| 12 | 12 | |
| 13 | 13 | /** |