Skip to content

Commit 7ec2279

Browse files
CodeWithDennisgithub-actions[bot]
authored andcommitted
Fix styling
1 parent 16c2189 commit 7ec2279

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SelectTree.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ private function buildTreeFromResults($results, $parent = null): Collection
120120
// Group results by their parent IDs
121121
foreach ($results as $result) {
122122
$parentId = $result->{$this->getParentAttribute()};
123-
if (!isset($resultMap[$parentId])) {
123+
if (! isset($resultMap[$parentId])) {
124124
$resultMap[$parentId] = [];
125125
}
126126
$resultMap[$parentId][] = $result;
@@ -143,7 +143,7 @@ private function buildNode($result, $resultMap): array
143143
$node = [
144144
'name' => $result->{$this->getTitleAttribute()},
145145
'value' => $result->id,
146-
'disabled' => in_array($result->id, $this->getDisabledOptions())
146+
'disabled' => in_array($result->id, $this->getDisabledOptions()),
147147
];
148148

149149
// Check if the result has children

0 commit comments

Comments
 (0)