We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef0e13f commit 70708acCopy full SHA for 70708ac
src/SelectTree.php
@@ -438,12 +438,8 @@ public function storeResults(bool $storeResults = true): static
438
public function getTree(): Collection|array
439
{
440
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
+ ->when($this->prepend, fn (Collection $tree) => $tree->prepend($this->evaluate($this->prepend)))
+ ->when($this->append, fn(Collection $tree) => $tree->push($this->evaluate($this->append)))
447
);
448
}
449
0 commit comments