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 Apr 7, 2024
1 parent 2b4a126 commit 58d1866
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/SelectTree.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ private function buildTree(): Collection

// Store results for additional functionality
if ($this->storeResults) {
$this->results = $combinedResults;
$this->results = $combinedResults;
}

return $this->buildTreeFromResults($combinedResults);
Expand All @@ -192,7 +192,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 Expand Up @@ -520,7 +520,7 @@ public function getCreateOptionAction(): ?Action
return null;
}

if (!$this->hasCreateOptionActionFormSchema()) {
if (! $this->hasCreateOptionActionFormSchema()) {
return null;
}

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

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

if (!($arguments['another'] ?? false)) {
if (! ($arguments['another'] ?? false)) {
return;
}

Expand Down

0 comments on commit 58d1866

Please sign in to comment.