Skip to content

Commit 32b7d93

Browse files
Format
1 parent e31d1ba commit 32b7d93

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/SelectTree.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ class SelectTree extends Field implements HasAffixActions
8888

8989
protected Closure|array|null $prepend = null;
9090

91-
9291
protected function setUp(): void
9392
{
9493
// Load the state from relationships using a callback function.
@@ -296,12 +295,14 @@ public function parentNullValue(int|string|null $parentNullValue = null): static
296295
public function multiple(Closure|bool $multiple = true): static
297296
{
298297
$this->multiple = $multiple;
298+
299299
return $this;
300300
}
301301

302302
public function prepend(Closure|array|null $prepend = null): static
303303
{
304304
$this->prepend = $prepend;
305+
305306
return $this;
306307
}
307308

@@ -412,7 +413,7 @@ public function storeResults(bool $storeResults = true): static
412413
public function getTree(): Collection|array
413414
{
414415
return $this->evaluate($this->buildTree()->when($this->prepend,
415-
fn(Collection $tree) => $tree->prepend($this->evaluate($this->prepend))));
416+
fn (Collection $tree) => $tree->prepend($this->evaluate($this->prepend))));
416417
}
417418

418419
public function getResults(): Collection|array|null

0 commit comments

Comments
 (0)