File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -537,8 +537,8 @@ public function getTreeUsing(Closure|array $value): static
537537 public function getTree (): Collection
538538 {
539539 return Collection::wrap ($ this ->evaluate ($ this ->getTreeUsing ) ?? $ this ->buildTree ())
540- ->when (filled ($ this ->prepend ), fn (Collection $ tree ) => $ tree ->prepend ($ this ->getPrependedItems ()))
541- ->when (filled ($ this ->append ), fn (Collection $ tree ) => $ tree ->push ($ this ->getAppendedItems ()));
540+ ->when (filled ($ this ->prepend ), fn (Collection $ tree ) => $ tree ->prepend ($ this ->getPrependedItems ()))
541+ ->when (filled ($ this ->append ), fn (Collection $ tree ) => $ tree ->push ($ this ->getAppendedItems ()));
542542 }
543543
544544 public function getResults (): Collection |LazyCollection |array |null
@@ -614,7 +614,7 @@ public function getAppendedItems(): ?array
614614 } elseif (is_null ($ appendedItems )) {
615615 // Avoid throwing an exception in case $append is explicitly set to null, or a Closure evaluates to null.
616616 } else {
617- throw new \ InvalidArgumentException ('The provided append value must be an array with "name" and "value" keys. ' );
617+ throw new InvalidArgumentException ('The provided append value must be an array with "name" and "value" keys. ' );
618618 }
619619
620620 return $ appendedItems ;
You can’t perform that action at this time.
0 commit comments