Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeWithDennis authored and github-actions[bot] committed Sep 30, 2023
1 parent a5201d1 commit b140b6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SelectTree.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ private function buildTreeFromResults($results, $parent = null): Collection
// Group results by their parent IDs
foreach ($results as $result) {
$parentId = $result->{$this->getParentAttribute()};
if (!isset($resultMap[$parentId])) {
if (! isset($resultMap[$parentId])) {
$resultMap[$parentId] = [];
}
$resultMap[$parentId][] = $result;
Expand Down

0 comments on commit b140b6f

Please sign in to comment.