@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | $editFormLabel = $this->getEditFormLabel($this->model); |
150 | 150 | } |
151 | 151 | |
152 | - $editFormLabel = strtr($this->labelTemplate, [ |
|
152 | + $editFormLabel = strtr($this->labelTemplate, [ |
|
153 | 153 | '{label}' => $editFormLabel, |
154 | 154 | '{closeButton}' => $this->closeButton, |
155 | 155 | ]); |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | } |
159 | 159 | |
160 | 160 | protected function getCreateFormLabel() { |
161 | - $m = $this->createFormLabel; |
|
161 | + $m = $this->createFormLabel; |
|
162 | 162 | |
163 | 163 | $t = $this->translate($m); |
164 | 164 |
@@ -265,7 +265,7 @@ |
||
265 | 265 | 'displayOnly' => false, |
266 | 266 | 'type' => DetailView::INPUT_WIDGET, |
267 | 267 | 'attribute' => 'id', |
268 | - 'value' => function () use ($modelsNames) { |
|
268 | + 'value' => function() use ($modelsNames) { |
|
269 | 269 | return implode(', ', $modelsNames); |
270 | 270 | }, |
271 | 271 | 'widgetOptions' => [ |
@@ -270,7 +270,7 @@ |
||
270 | 270 | // '{create}' => ['class' => 'col-xs-8 text-right'], |
271 | 271 | ], |
272 | 272 | 'bulkActionsItems' => [ |
273 | - 'General' => ['mass-update' => 'Mass edit',], |
|
273 | + 'General' => ['mass-update' => 'Mass edit', ], |
|
274 | 274 | ], |
275 | 275 | 'bulkActionsOptions' => [ |
276 | 276 | 'options' => [ |
@@ -246,7 +246,7 @@ |
||
246 | 246 | if (!empty($value)) { |
247 | 247 | if (is_array($value) && $this->filter->hasAttribute($attribute)) { |
248 | 248 | $value = current($value); |
249 | - } |
|
249 | + } |
|
250 | 250 | |
251 | 251 | $result[$formName][$attribute] = $value; |
252 | 252 | } |
@@ -43,7 +43,7 @@ |
||
43 | 43 | 'class' => GridView::class, |
44 | 44 | 'responsive' => false, |
45 | 45 | 'responsiveWrap' => false, |
46 | - 'rowOptions' => function ($row) { |
|
46 | + 'rowOptions' => function($row) { |
|
47 | 47 | if ($row instanceof DynaGridRow) { |
48 | 48 | return $row->getRowOptions(); |
49 | 49 | } |
@@ -146,7 +146,7 @@ |
||
146 | 146 | 'actions' => [ |
147 | 147 | 'class' => ActionColumn::class, |
148 | 148 | 'buttons' => [ |
149 | - 'view' => function () {}, |
|
149 | + 'view' => function() {}, |
|
150 | 150 | ], |
151 | 151 | ], |
152 | 152 | ]; |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | public function init() |
34 | 34 | { |
35 | 35 | $this->toolbar = $this->getToolbarConfig(); |
36 | - $rowOptions = function ($row) { |
|
36 | + $rowOptions = function($row) { |
|
37 | 37 | if (!($row instanceof ActiveRecord)) { |
38 | 38 | return []; |
39 | 39 | } |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | |
66 | 66 | if (is_callable($this->rowOptions)) { |
67 | 67 | $oldRowOptions = $this->rowOptions; |
68 | - $this->rowOptions = function ($row) use ($oldRowOptions, $rowOptions) { |
|
68 | + $this->rowOptions = function($row) use ($oldRowOptions, $rowOptions) { |
|
69 | 69 | $oldData = $oldRowOptions($row); |
70 | 70 | if ($oldData === null) { |
71 | 71 | $oldData = []; |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | }; |
76 | 76 | } else if (is_array($this->rowOptions)) { |
77 | 77 | $oldRowOptions = $this->rowOptions; |
78 | - $this->rowOptions = function ($row) use ($oldRowOptions, $rowOptions) { |
|
78 | + $this->rowOptions = function($row) use ($oldRowOptions, $rowOptions) { |
|
79 | 79 | return ArrayHelper::merge($rowOptions($row), $oldRowOptions); |
80 | 80 | }; |
81 | 81 | } else { |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | 'attributes' => [ |
40 | 40 | 'cancel' => [ |
41 | 41 | 'type' => Form::INPUT_RAW, |
42 | - 'value' => '<div style="text-align: right; margin-bottom: 20px">' . \yii\helpers\Html::submitButton('Удалить', ['class' => 'btn btn-danger']) . ' ' . \yii\helpers\Html::a('Отмена', ['#'], ['class' => 'btn btn-default', 'onclick' => 'javascript:history.back();return false',]) . '</div>', |
|
42 | + 'value' => '<div style="text-align: right; margin-bottom: 20px">' . \yii\helpers\Html::submitButton('Удалить', ['class' => 'btn btn-danger']) . ' ' . \yii\helpers\Html::a('Отмена', ['#'], ['class' => 'btn btn-default', 'onclick' => 'javascript:history.back();return false', ]) . '</div>', |
|
43 | 43 | ], |
44 | 44 | ] |
45 | 45 | ]; |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | 'attributes' => [ |
49 | 49 | 'cancel' => [ |
50 | 50 | 'type' => Form::INPUT_RAW, |
51 | - 'value' => '<div style="text-align: right; margin-bottom: 20px">' . \yii\helpers\Html::input('submit', 'stop', 'Стоп', ['class' => 'btn btn-danger']) . ' ' . \yii\helpers\Html::a('Назад', ['#'], ['class' => 'btn btn-default', 'onclick' => 'javascript:history.back();return false',]) . '</div>', |
|
51 | + 'value' => '<div style="text-align: right; margin-bottom: 20px">' . \yii\helpers\Html::input('submit', 'stop', 'Стоп', ['class' => 'btn btn-danger']) . ' ' . \yii\helpers\Html::a('Назад', ['#'], ['class' => 'btn btn-default', 'onclick' => 'javascript:history.back();return false', ]) . '</div>', |
|
52 | 52 | ], |
53 | 53 | ] |
54 | 54 | ]; |
@@ -41,7 +41,7 @@ |
||
41 | 41 | { |
42 | 42 | parent::bootstrap($app); |
43 | 43 | |
44 | - $app->on(Application::EVENT_BEFORE_REQUEST, function () use ($app) { |
|
44 | + $app->on(Application::EVENT_BEFORE_REQUEST, function() use ($app) { |
|
45 | 45 | if ($app instanceof Application) { |
46 | 46 | $this->registerKCFinderSessionSettings($app); |
47 | 47 | } |