@@ -92,7 +92,7 @@ |
||
92 | 92 | ], |
93 | 93 | |
94 | 94 | "grid" => [ |
95 | - 'on init' => function (Event $e) { |
|
95 | + 'on init' => function(Event $e) { |
|
96 | 96 | /** |
97 | 97 | * @var $dataProvider ActiveDataProvider |
98 | 98 | * @var $query ActiveQuery |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | 'hiddenLabel' => \Yii::t('skeeks/cms', 'Hidden columns'), |
132 | 132 | ], |
133 | 133 | //'multiple' => true, |
134 | - 'on beforeRender' => function ($e) { |
|
134 | + 'on beforeRender' => function($e) { |
|
135 | 135 | /** |
136 | 136 | * @var $widgetField WidgetField |
137 | 137 | */ |
@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | ['pageSizeLimitMax', 'integer'], |
226 | 226 | ], |
227 | 227 | ], |
228 | - ], (array) $this->configBehaviorData), |
|
228 | + ], (array)$this->configBehaviorData), |
|
229 | 229 | ]); |
230 | 230 | } |
231 | 231 | |
@@ -270,7 +270,7 @@ discard block |
||
270 | 270 | } |
271 | 271 | |
272 | 272 | if ($result && in_array($label, array_values($result))) { |
273 | - $result[$code] = $label." ({$code})"; |
|
273 | + $result[$code] = $label . " ({$code})"; |
|
274 | 274 | } else { |
275 | 275 | $result[$code] = $label; |
276 | 276 | } |
@@ -426,7 +426,7 @@ discard block |
||
426 | 426 | $this->_autoColumns[(string)$name] = [ |
427 | 427 | 'attribute' => $name, |
428 | 428 | 'format' => 'raw', |
429 | - 'value' => function ($model, $key, $index) use ($name, $keyName) { |
|
429 | + 'value' => function($model, $key, $index) use ($name, $keyName) { |
|
430 | 430 | return $model->{$keyName}; |
431 | 431 | }, |
432 | 432 | ]; |
@@ -434,7 +434,7 @@ discard block |
||
434 | 434 | $this->_autoColumns[(string)$name] = [ |
435 | 435 | 'attribute' => $name, |
436 | 436 | 'format' => 'raw', |
437 | - 'value' => function ($model, $key, $index) use ($name, $keyManyName) { |
|
437 | + 'value' => function($model, $key, $index) use ($name, $keyManyName) { |
|
438 | 438 | return count($model->{$keyManyName}); |
439 | 439 | }, |
440 | 440 | ]; |
@@ -442,7 +442,7 @@ discard block |
||
442 | 442 | $this->_autoColumns[(string)$name] = [ |
443 | 443 | 'attribute' => $name, |
444 | 444 | 'format' => 'raw', |
445 | - 'value' => function ($model, $key, $index) use ($name) { |
|
445 | + 'value' => function($model, $key, $index) use ($name) { |
|
446 | 446 | if (is_array($model->{$name})) { |
447 | 447 | return implode(",", $model->{$name}); |
448 | 448 | } else { |
@@ -510,7 +510,7 @@ discard block |
||
510 | 510 | } |
511 | 511 | |
512 | 512 | if ($resultColumns) { |
513 | - $resultColumns = ArrayHelper::merge((array) $resultColumns, (array) $columns); |
|
513 | + $resultColumns = ArrayHelper::merge((array)$resultColumns, (array)$columns); |
|
514 | 514 | $columns = $resultColumns; |
515 | 515 | } |
516 | 516 |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | |
62 | 62 | $this->options['multiple'] = true; |
63 | 63 | |
64 | - $items = (array) $this->model->{$this->attribute}; |
|
64 | + $items = (array)$this->model->{$this->attribute}; |
|
65 | 65 | $selectedItems = []; |
66 | 66 | if ($items) { |
67 | 67 | foreach ($items as $value) |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | } |
71 | 71 | } |
72 | 72 | |
73 | - $element = Html::activeListBox($this->model, $this->attribute, (array) $selectedItems, $this->options); |
|
73 | + $element = Html::activeListBox($this->model, $this->attribute, (array)$selectedItems, $this->options); |
|
74 | 74 | |
75 | 75 | echo $this->render('sort-select', [ |
76 | 76 | 'element' => $element, |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | |
14 | 14 | $hidden = $widget->items; |
15 | 15 | $visible = []; |
16 | -$values = (array) $widget->model->{$widget->attribute}; |
|
16 | +$values = (array)$widget->model->{$widget->attribute}; |
|
17 | 17 | |
18 | 18 | |
19 | 19 | \yii\jui\Sortable::widget(); |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | 'size' => 1 |
48 | 48 | ]); ?> |
49 | 49 | </div> |
50 | - <? $counter ++; ?> |
|
50 | + <? $counter++; ?> |
|
51 | 51 | <? endforeach; ?> |
52 | 52 | </div> |
53 | 53 | <?= \yii\helpers\Html::endTag('div'); ?> |