Test Setup Failed
Push — master ( 996370...76eb4e )
by Александр
36:39 queued 10s
created
src/widgets/DualSelect.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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,
Please login to merge, or discard this patch.
src/components/storage/ClusterLocal.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -57,11 +57,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/widgets/GridView.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
                 }
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
                         $this->_autoColumns[(string)$name] = [
297 297
                             'attribute' => $name,
298 298
                             'format'    => 'raw',
299
-                            'value'     => function ($model, $key, $index) use ($name, $keyName) {
299
+                            'value'     => function($model, $key, $index) use ($name, $keyName) {
300 300
                                 return $model->{$keyName};
301 301
                             },
302 302
                         ];
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
                         $this->_autoColumns[(string)$name] = [
305 305
                             'attribute' => $name,
306 306
                             'format'    => 'raw',
307
-                            'value'     => function ($model, $key, $index) use ($name, $keyManyName) {
307
+                            'value'     => function($model, $key, $index) use ($name, $keyManyName) {
308 308
                                 return count($model->{$keyManyName});
309 309
                             },
310 310
                         ];
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
                         $this->_autoColumns[(string)$name] = [
313 313
                             'attribute' => $name,
314 314
                             'format'    => 'raw',
315
-                            'value'     => function ($model, $key, $index) use ($name) {
315
+                            'value'     => function($model, $key, $index) use ($name) {
316 316
                                 if (is_array($model->{$name})) {
317 317
                                     return implode(",", $model->{$name});
318 318
                                 } else {
@@ -380,7 +380,7 @@  discard block
 block discarded – undo
380 380
         }
381 381
 
382 382
         if ($resultColumns) {
383
-            $resultColumns = ArrayHelper::merge((array) $resultColumns, (array) $columns);
383
+            $resultColumns = ArrayHelper::merge((array)$resultColumns, (array)$columns);
384 384
             $columns = $resultColumns;
385 385
         }
386 386
 
Please login to merge, or discard this patch.