Test Setup Failed
Push — master ( 4cb17c...70f453 )
by Xu
35:43
created
src/grid/TreeGrid.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -244,14 +244,14 @@  discard block
 block discarded – undo
244 244
         } else {
245 245
             $options = $this->rowOptions;
246 246
         }
247
-        $options['data-key'] = is_array($key) ? json_encode($key) : (string) $key;
247
+        $options['data-key'] = is_array($key) ? json_encode($key) : (string)$key;
248 248
 
249 249
         $id = ArrayHelper::getValue($model, $this->keyColumnName);
250 250
         Html::addCssClass($options, "treegrid-$id");
251 251
 
252 252
         $parentId = ArrayHelper::getValue($model, $this->parentColumnName);
253 253
         if ($parentId) {
254
-            if(ArrayHelper::getValue($this->pluginOptions, 'initialState') == 'collapsed'){
254
+            if (ArrayHelper::getValue($this->pluginOptions, 'initialState') == 'collapsed') {
255 255
                 Html::addCssStyle($options, 'display: none;');
256 256
             }
257 257
             Html::addCssClass($options, "treegrid-parent-$parentId");
@@ -344,7 +344,7 @@  discard block
 block discarded – undo
344 344
                 $column = $this->createDataColumn($column);
345 345
             } else {
346 346
                 $column = Yii::createObject(array_merge([
347
-                    'class' => $this->dataColumnClass ? : TreeColumn::class,
347
+                    'class' => $this->dataColumnClass ?: TreeColumn::class,
348 348
                     'grid' => $this,
349 349
                 ], $column));
350 350
             }
@@ -369,7 +369,7 @@  discard block
 block discarded – undo
369 369
         }
370 370
 
371 371
         return Yii::createObject([
372
-            'class' => $this->dataColumnClass ? : TreeColumn::class,
372
+            'class' => $this->dataColumnClass ?: TreeColumn::class,
373 373
             'grid' => $this,
374 374
             'attribute' => $matches[1],
375 375
             'format' => isset($matches[3]) ? $matches[3] : 'text',
Please login to merge, or discard this patch.