Skip to content

Commit bb39c92

Browse files
Update SelectTree.php
1 parent efbc096 commit bb39c92

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/SelectTree.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ private function buildTree(): Collection
168168
// Combine the results from both queries
169169
$combinedResults = $nullParentResults->concat($nonNullParentResults);
170170

171-
// store results for additional functionality. results are accessible through $component->getResults()
171+
// Store results for additional functionality
172172
if ($this->storeResults) {
173173
$this->results = $combinedResults;
174174
}
@@ -383,7 +383,6 @@ public function enableBranchNode(bool $enableBranchNode = true): static
383383
return $this;
384384
}
385385

386-
// store results in variable $results
387386
public function storeResults(bool $storeResults = true): static
388387
{
389388
$this->storeResults = $storeResults;
@@ -395,8 +394,7 @@ public function getTree(): Collection|array
395394
{
396395
return $this->evaluate($this->buildTree());
397396
}
398-
399-
// get results stored in variable $results
397+
400398
public function getResults(): Collection|array|null
401399
{
402400
return $this->results;

0 commit comments

Comments
 (0)