@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\backend\widgets; |
| 4 | 4 | |
| 5 | -use app\modules\shop\models\Category; |
|
| 6 | 5 | use Yii; |
| 6 | +use app\modules\shop\models\Category; |
|
| 7 | 7 | use yii\helpers\ArrayHelper; |
| 8 | 8 | use yii\helpers\Json; |
| 9 | 9 | use yii\helpers\Url; |
@@ -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 | /** |
@@ -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 |
@@ -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 | { |