@@ -140,7 +140,7 @@ |
||
140 | 140 | */ |
141 | 141 | public function afterSave($insert, $changedAttributes) |
142 | 142 | { |
143 | - $this->linkWithAbout(empty($this->about) ? [] : $this->about); |
|
143 | + $this->linkWithAbout(empty($this->about) ? [ ] : $this->about); |
|
144 | 144 | |
145 | 145 | parent::afterSave($insert, $changedAttributes); |
146 | 146 | } |
@@ -19,7 +19,7 @@ |
||
19 | 19 | { |
20 | 20 | return [ |
21 | 21 | [ |
22 | - ['id'], |
|
22 | + [ 'id' ], |
|
23 | 23 | 'integer', |
24 | 24 | ], |
25 | 25 | [ |
@@ -19,7 +19,7 @@ |
||
19 | 19 | { |
20 | 20 | return [ |
21 | 21 | [ |
22 | - ['id'], |
|
22 | + [ 'id' ], |
|
23 | 23 | 'integer', |
24 | 24 | ], |
25 | 25 | [ |
@@ -19,7 +19,7 @@ |
||
19 | 19 | { |
20 | 20 | return [ |
21 | 21 | [ |
22 | - ['id'], |
|
22 | + [ 'id' ], |
|
23 | 23 | 'integer', |
24 | 24 | ], |
25 | 25 | [ |
@@ -19,7 +19,7 @@ |
||
19 | 19 | { |
20 | 20 | return [ |
21 | 21 | [ |
22 | - ['id'], |
|
22 | + [ 'id' ], |
|
23 | 23 | 'integer', |
24 | 24 | ], |
25 | 25 | [ |
@@ -19,7 +19,7 @@ |
||
19 | 19 | { |
20 | 20 | return [ |
21 | 21 | [ |
22 | - ['id'], |
|
22 | + [ 'id' ], |
|
23 | 23 | 'integer', |
24 | 24 | ], |
25 | 25 | [ |
@@ -19,7 +19,7 @@ |
||
19 | 19 | { |
20 | 20 | return [ |
21 | 21 | [ |
22 | - ['id'], |
|
22 | + [ 'id' ], |
|
23 | 23 | 'integer', |
24 | 24 | ], |
25 | 25 | [ |
@@ -19,7 +19,7 @@ |
||
19 | 19 | { |
20 | 20 | return [ |
21 | 21 | [ |
22 | - ['id'], |
|
22 | + [ 'id' ], |
|
23 | 23 | 'integer', |
24 | 24 | ], |
25 | 25 | [ |
@@ -51,10 +51,10 @@ discard block |
||
51 | 51 | 'filebrowserWindowHeight' => '700', |
52 | 52 | 'extraPlugins' => 'pbckcode', |
53 | 53 | 'toolbarGroups' => [ |
54 | - ['name' => 'pbckcode'] |
|
54 | + [ 'name' => 'pbckcode' ] |
|
55 | 55 | ], |
56 | 56 | 'allowedContent' => true, |
57 | - 'language' => $this->params['shortLanguage'], |
|
57 | + 'language' => $this->params[ 'shortLanguage' ], |
|
58 | 58 | ] |
59 | 59 | ], |
60 | 60 | [ |
@@ -79,8 +79,8 @@ discard block |
||
79 | 79 | ])->label(Yii::t('app', 'Icon html class')); ?> |
80 | 80 | <div class="row" style="margin-bottom: 15px;"> |
81 | 81 | <div class="col-md-4"> |
82 | - <?php if(!$model->mainModel->isNewRecord): ?> |
|
83 | - <?php echo Html::tag('i', '', ['class' => empty($model->mainModel->icon) ? 'fa fa-file fa-2x' : $model->mainModel->icon]) ?> |
|
82 | + <?php if (!$model->mainModel->isNewRecord): ?> |
|
83 | + <?php echo Html::tag('i', '', [ 'class' => empty($model->mainModel->icon) ? 'fa fa-file fa-2x' : $model->mainModel->icon ]) ?> |
|
84 | 84 | <?php endif; ?> |
85 | 85 | <?php echo Html::a('Fontawesome icons', Url::to('https://fontawesome.ru/all-icons/'), [ |
86 | 86 | 'target' => '_blank' |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | <!-- Thumbnail end --> |
101 | 101 | |
102 | 102 | <?php echo $form->field($model, 'active') |
103 | - ->radioList([1 => Yii::t('app', 'Active'), 0 => Yii::t('app', 'Inactive')]) |
|
103 | + ->radioList([ 1 => Yii::t('app', 'Active'), 0 => Yii::t('app', 'Inactive') ]) |
|
104 | 104 | ->label(Yii::t('app', 'Active status')); ?> |
105 | 105 | |
106 | 106 | <?php echo Html::label(Yii::t('app', 'Parent object'), 'multi-level-menu', [ |
@@ -115,8 +115,8 @@ discard block |
||
115 | 115 | ], |
116 | 116 | 'mainContainerOptions' => [ |
117 | 117 | 'levels' => [ |
118 | - ['style' => 'margin-left: 0; padding-left: 0;'], |
|
119 | - ['style' => 'margin-left: 10px; padding-left: 10px;'], |
|
118 | + [ 'style' => 'margin-left: 0; padding-left: 0;' ], |
|
119 | + [ 'style' => 'margin-left: 10px; padding-left: 10px;' ], |
|
120 | 120 | ] |
121 | 121 | ], |
122 | 122 | 'itemContainerOptions' => [ |