Skip to content

Commit 70708ac

Browse files
Update src/SelectTree.php
1 parent ef0e13f commit 70708ac

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/SelectTree.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -438,12 +438,8 @@ public function storeResults(bool $storeResults = true): static
438438
public function getTree(): Collection|array
439439
{
440440
return $this->evaluate($this->buildTree()
441-
->when($this->prepend,
442-
fn (Collection $tree) => $tree->prepend($this->evaluate($this->prepend))
443-
)
444-
->when($this->append,
445-
fn(Collection $tree) => $tree->push($this->evaluate($this->append))
446-
)
441+
->when($this->prepend, fn (Collection $tree) => $tree->prepend($this->evaluate($this->prepend)))
442+
->when($this->append, fn(Collection $tree) => $tree->push($this->evaluate($this->append)))
447443
);
448444
}
449445

0 commit comments

Comments
 (0)