Skip to content

Commit 58d1866

Browse files
CodeWithDennisgithub-actions[bot]
authored andcommitted
Fix styling
1 parent 2b4a126 commit 58d1866

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/SelectTree.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ private function buildTree(): Collection
170170

171171
// Store results for additional functionality
172172
if ($this->storeResults) {
173-
$this->results = $combinedResults;
173+
$this->results = $combinedResults;
174174
}
175175

176176
return $this->buildTreeFromResults($combinedResults);
@@ -192,7 +192,7 @@ private function buildTreeFromResults($results, $parent = null): Collection
192192
// Group results by their parent IDs
193193
foreach ($results as $result) {
194194
$parentId = $result->{$this->getParentAttribute()};
195-
if (!isset($resultMap[$parentId])) {
195+
if (! isset($resultMap[$parentId])) {
196196
$resultMap[$parentId] = [];
197197
}
198198
$resultMap[$parentId][] = $result;
@@ -520,7 +520,7 @@ public function getCreateOptionAction(): ?Action
520520
return null;
521521
}
522522

523-
if (!$this->hasCreateOptionActionFormSchema()) {
523+
if (! $this->hasCreateOptionActionFormSchema()) {
524524
return null;
525525
}
526526

@@ -531,7 +531,7 @@ public function getCreateOptionAction(): ?Action
531531
));
532532
})
533533
->action(static function (Action $action, array $arguments, SelectTree $component, array $data, ComponentContainer $form) {
534-
if (!$component->getCreateOptionUsing()) {
534+
if (! $component->getCreateOptionUsing()) {
535535
throw new Exception("Select field [{$component->getStatePath()}] must have a [createOptionUsing()] closure set.");
536536
}
537537

@@ -550,7 +550,7 @@ public function getCreateOptionAction(): ?Action
550550
$component->state($state);
551551
$component->callAfterStateUpdated();
552552

553-
if (!($arguments['another'] ?? false)) {
553+
if (! ($arguments['another'] ?? false)) {
554554
return;
555555
}
556556

0 commit comments

Comments
 (0)