@@ -80,6 +80,9 @@ |
||
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | |
| 83 | + /** |
|
| 84 | + * @param string $relationName |
|
| 85 | + */ |
|
| 83 | 86 | protected static function getRelation($model, $relationName, $default_value = '') |
| 84 | 87 | { |
| 85 | 88 | $result = $default_value; |
@@ -2,14 +2,12 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\modules\core; |
| 4 | 4 | |
| 5 | +use Yii; |
|
| 5 | 6 | use app; |
| 6 | -use app\backend\widgets\FloatingPanel; |
|
| 7 | 7 | use app\components\BaseModule; |
| 8 | 8 | use app\modules\core\models\ContentDecorator; |
| 9 | -use Yii; |
|
| 10 | 9 | use yii\base\Application; |
| 11 | 10 | use yii\base\BootstrapInterface; |
| 12 | -use yii\base\Event; |
|
| 13 | 11 | |
| 14 | 12 | /** |
| 15 | 13 | * Core module handles base DotPlant2 functions |
@@ -2,22 +2,22 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\modules\page\controllers; |
| 4 | 4 | |
| 5 | +use Yii; |
|
| 5 | 6 | use app\components\Controller; |
| 7 | +use app\models\Search; |
|
| 6 | 8 | use app\modules\core\helpers\ContentBlockHelper; |
| 7 | 9 | use app\modules\core\models\ContentBlock; |
| 8 | 10 | use app\modules\page\models\Page; |
| 9 | -use app\models\Search; |
|
| 11 | +use app\modules\seo\behaviors\SetCanonicalBehavior; |
|
| 10 | 12 | use app\traits\LoadModel; |
| 11 | 13 | use devgroup\TagDependencyHelper\ActiveRecordHelper; |
| 12 | -use Yii; |
|
| 13 | 14 | use yii\caching\TagDependency; |
| 14 | 15 | use yii\data\Pagination; |
| 15 | 16 | use yii\db\ActiveQuery; |
| 17 | +use yii\helpers\Url; |
|
| 16 | 18 | use yii\web\ForbiddenHttpException; |
| 17 | 19 | use yii\web\NotFoundHttpException; |
| 18 | 20 | use yii\web\Response; |
| 19 | -use app\modules\seo\behaviors\SetCanonicalBehavior; |
|
| 20 | -use yii\helpers\Url; |
|
| 21 | 21 | |
| 22 | 22 | class PageController extends Controller |
| 23 | 23 | { |
@@ -1,12 +1,12 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | +use app\backend\components\ActiveForm; |
|
| 3 | 4 | use app\backend\widgets\BackendWidget; |
| 5 | +use app\backend\widgets\GridView; |
|
| 4 | 6 | use app\modules\shop\controllers\BackendProductController; |
| 5 | 7 | use app\modules\shop\models\Product; |
| 6 | -use app\backend\widgets\GridView; |
|
| 7 | 8 | use kartik\helpers\Html; |
| 8 | 9 | use kartik\icons\Icon; |
| 9 | -use app\backend\components\ActiveForm; |
|
| 10 | 10 | use kartik\widgets\DateTimePicker; |
| 11 | 11 | use yii\data\ActiveDataProvider; |
| 12 | 12 | use yii\helpers\Url; |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace app\backend\clients; |
| 4 | 4 | |
| 5 | 5 | use app\backend\models\ApiService; |
| 6 | -use Yii; |
|
| 7 | 6 | use yii\authclient\OAuthToken; |
| 8 | 7 | |
| 9 | 8 | class YandexWebmasterOAuth extends \yii\authclient\clients\YandexOAuth |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | /** |
| 21 | 21 | * Saves token in DB. |
| 22 | 22 | * @param OAuthToken $token |
| 23 | - * @return ApiService|null|\yii\db\ActiveQuery|\yii\db\ActiveRecord|static |
|
| 23 | + * @return boolean |
|
| 24 | 24 | */ |
| 25 | 25 | protected function saveAccessToken(OAuthToken $token) |
| 26 | 26 | { |
@@ -2,6 +2,7 @@ discard block |
||
| 2 | 2 | |
| 3 | 3 | namespace app\backend\controllers; |
| 4 | 4 | |
| 5 | +use Yii; |
|
| 5 | 6 | use app\components\Helper; |
| 6 | 7 | use app\models\Form; |
| 7 | 8 | use app\models\Object; |
@@ -10,11 +11,10 @@ discard block |
||
| 10 | 11 | use app\models\PropertyGroup; |
| 11 | 12 | use app\models\PropertyStaticValues; |
| 12 | 13 | use app\models\Submission; |
| 14 | +use app\modules\image\widgets\SaveInfoAction; |
|
| 13 | 15 | use app\modules\image\widgets\views\AddImageAction; |
| 14 | 16 | use app\properties\PropertyHandlers; |
| 15 | -use app\modules\image\widgets\SaveInfoAction; |
|
| 16 | 17 | use devgroup\TagDependencyHelper\ActiveRecordHelper; |
| 17 | -use Yii; |
|
| 18 | 18 | use yii\caching\TagDependency; |
| 19 | 19 | use yii\filters\AccessControl; |
| 20 | 20 | use yii\helpers\Html; |
@@ -24,6 +24,9 @@ |
||
| 24 | 24 | |
| 25 | 25 | class PropertiesController extends Controller |
| 26 | 26 | { |
| 27 | + /** |
|
| 28 | + * @param string $slug |
|
| 29 | + */ |
|
| 27 | 30 | protected function checkDoubledSlugs($slug) |
| 28 | 31 | { |
| 29 | 32 | if (empty($slug) === false) { |
@@ -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 | /** @var \app\components\Response $response */ |
@@ -94,6 +97,7 @@ discard block |
||
| 94 | 97 | |
| 95 | 98 | /** |
| 96 | 99 | * @inheritdoc |
| 100 | + * @param string $view |
|
| 97 | 101 | */ |
| 98 | 102 | public function render($view, $params = []) |
| 99 | 103 | { |
@@ -102,6 +106,7 @@ discard block |
||
| 102 | 106 | |
| 103 | 107 | /** |
| 104 | 108 | * @inheritdoc |
| 109 | + * @param string $view |
|
| 105 | 110 | */ |
| 106 | 111 | public function renderAjax($view, $params = []) |
| 107 | 112 | { |
@@ -2,11 +2,11 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\controllers; |
| 4 | 4 | |
| 5 | +use Yii; |
|
| 5 | 6 | use app\actions\SubmitFormAction; |
| 6 | 7 | use app\components\search\SearchEvent; |
| 7 | 8 | use app\models\Search; |
| 8 | 9 | use app\modules\shop\models\Product; |
| 9 | -use Yii; |
|
| 10 | 10 | use yii\helpers\Url; |
| 11 | 11 | use yii\web\Controller; |
| 12 | 12 | use yii\web\Response; |
@@ -2,13 +2,13 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\extensions\DefaultTheme\widgets\FilterSets; |
| 4 | 4 | |
| 5 | +use Yii; |
|
| 5 | 6 | use app\extensions\DefaultTheme\components\BaseWidget; |
| 6 | 7 | use app\models\Property; |
| 7 | 8 | use app\models\PropertyStaticValues; |
| 8 | 9 | use app\modules\shop\models\FilterSets; |
| 9 | 10 | use app\modules\shop\models\Product; |
| 10 | 11 | use devgroup\TagDependencyHelper\ActiveRecordHelper; |
| 11 | -use Yii; |
|
| 12 | 12 | use yii\caching\TagDependency; |
| 13 | 13 | use yii\helpers\Url; |
| 14 | 14 | |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | /** |
| 16 | 16 | * Actual run function for all widget classes extending BaseWidget |
| 17 | 17 | * |
| 18 | - * @return mixed |
|
| 18 | + * @return string |
|
| 19 | 19 | */ |
| 20 | 20 | public function widgetRun() |
| 21 | 21 | { |