@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | |
78 | 78 | $this->options['multiple'] = true; |
79 | 79 | |
80 | - $items = (array) $this->model->{$this->attribute}; |
|
80 | + $items = (array)$this->model->{$this->attribute}; |
|
81 | 81 | $selectedItems = []; |
82 | 82 | if ($items) { |
83 | 83 | foreach ($items as $value) |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | } |
87 | 87 | } |
88 | 88 | |
89 | - $element = Html::activeListBox($this->model, $this->attribute, (array) $selectedItems, $this->options); |
|
89 | + $element = Html::activeListBox($this->model, $this->attribute, (array)$selectedItems, $this->options); |
|
90 | 90 | |
91 | 91 | echo $this->render('dual-select', [ |
92 | 92 | 'element' => $element, |
@@ -57,11 +57,11 @@ discard block |
||
57 | 57 | $clusterFileSrc = $clusterFileName; |
58 | 58 | |
59 | 59 | if ($localPath) { |
60 | - $clusterFileSrc = $localPath.DIRECTORY_SEPARATOR.$clusterFileSrc; |
|
60 | + $clusterFileSrc = $localPath . DIRECTORY_SEPARATOR . $clusterFileSrc; |
|
61 | 61 | } |
62 | 62 | |
63 | 63 | try { |
64 | - $dir = new Dir($dir.DIRECTORY_SEPARATOR.$localPath); |
|
64 | + $dir = new Dir($dir . DIRECTORY_SEPARATOR . $localPath); |
|
65 | 65 | $resultFile = $dir->newFile($clusterFileName); |
66 | 66 | $tmpFile->move($resultFile); |
67 | 67 | |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | if ($this->publicBaseUrlIsAbsolute) { |
120 | 120 | return $this->getPublicSrc($clusterFileUniqSrc); |
121 | 121 | } else { |
122 | - return \Yii::$app->urlManager->hostInfo.$this->getPublicSrc($clusterFileUniqSrc); |
|
122 | + return \Yii::$app->urlManager->hostInfo . $this->getPublicSrc($clusterFileUniqSrc); |
|
123 | 123 | } |
124 | 124 | } |
125 | 125 | /** |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | 'hiddenLabel' => \Yii::t('skeeks/cms', 'Hidden columns'), |
96 | 96 | ], |
97 | 97 | //'multiple' => true, |
98 | - 'on beforeRender' => function ($e) { |
|
98 | + 'on beforeRender' => function($e) { |
|
99 | 99 | /** |
100 | 100 | * @var $gridView GridView |
101 | 101 | */ |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | ['caption', 'string'], |
136 | 136 | ], |
137 | 137 | ], |
138 | - ], (array) $this->configBehaviorData), |
|
138 | + ], (array)$this->configBehaviorData), |
|
139 | 139 | ]); |
140 | 140 | } |
141 | 141 | |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | } |
181 | 181 | |
182 | 182 | if ($result && in_array($label, array_values($result))) { |
183 | - $result[$code] = $label." ({$code})"; |
|
183 | + $result[$code] = $label . " ({$code})"; |
|
184 | 184 | } else { |
185 | 185 | $result[$code] = $label; |
186 | 186 | } |
@@ -294,7 +294,7 @@ discard block |
||
294 | 294 | $this->_autoColumns[(string)$name] = [ |
295 | 295 | 'attribute' => $name, |
296 | 296 | 'format' => 'raw', |
297 | - 'value' => function ($model, $key, $index) use ($name, $keyName) { |
|
297 | + 'value' => function($model, $key, $index) use ($name, $keyName) { |
|
298 | 298 | return $model->{$keyName}; |
299 | 299 | }, |
300 | 300 | ]; |
@@ -302,7 +302,7 @@ discard block |
||
302 | 302 | $this->_autoColumns[(string)$name] = [ |
303 | 303 | 'attribute' => $name, |
304 | 304 | 'format' => 'raw', |
305 | - 'value' => function ($model, $key, $index) use ($name, $keyManyName) { |
|
305 | + 'value' => function($model, $key, $index) use ($name, $keyManyName) { |
|
306 | 306 | return count($model->{$keyManyName}); |
307 | 307 | }, |
308 | 308 | ]; |
@@ -310,7 +310,7 @@ discard block |
||
310 | 310 | $this->_autoColumns[(string)$name] = [ |
311 | 311 | 'attribute' => $name, |
312 | 312 | 'format' => 'raw', |
313 | - 'value' => function ($model, $key, $index) use ($name) { |
|
313 | + 'value' => function($model, $key, $index) use ($name) { |
|
314 | 314 | if (is_array($model->{$name})) { |
315 | 315 | return implode(",", $model->{$name}); |
316 | 316 | } else { |