Skip to content

Commit 1b0a288

Browse files
committed
Fixed Indentation and line breaks
Fixed Indentation and line breaks
1 parent d0dfeb6 commit 1b0a288

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/Html/Builder.php

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -420,13 +420,14 @@ public function addCheckbox(array $attributes = [], $position = false)
420420
'width' => '10px',
421421
], $attributes);
422422
$column = new Column($attributes);
423-
if ($position === true) {
424-
$this->collection->prepend($column);
425-
} else if ($position === false || $position >= $this->collection->count()) {
426-
$this->collection->push($column);
427-
} else {
428-
$this->collection->splice($position, 0, [$column]);
429-
}
423+
424+
if ($position === true) {
425+
$this->collection->prepend($column);
426+
} elseif ($position === false || $position >= $this->collection->count()) {
427+
$this->collection->push($column);
428+
} else {
429+
$this->collection->splice($position, 0, [$column]);
430+
}
430431

431432
return $this;
432433
}

0 commit comments

Comments
 (0)