Skip to content

Commit 6e72eea

Browse files
Code style
1 parent 0670ee4 commit 6e72eea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/SelectTree.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ public function prepend(Closure|array|null $prepend = null): static
305305

306306
if (is_array($this->prepend) && isset($this->prepend['name'], $this->prepend['value'])) {
307307
$this->prepend['value'] = (string) $this->prepend['value'];
308-
}else{
308+
} else {
309309
throw new \InvalidArgumentException('The provided prepend value must be an array with "name" and "value" keys.');
310310
}
311311

@@ -449,7 +449,7 @@ public function getIndependent(): bool
449449

450450
public function getCustomKey($record): string
451451
{
452-
$key = is_null($this->customKey) ? $record->getKey() : $record->{$this->customKey};
452+
$key = is_null($this->customKey) ? $record->getKey() : $record->{$this->customKey};
453453

454454
return (string) $key;
455455
}
@@ -628,7 +628,7 @@ public function getState(): mixed
628628
$state = parent::getState();
629629

630630
if (is_array($state)) {
631-
return array_map(fn($value) => (string) $value, $state);
631+
return array_map(fn ($value) => (string) $value, $state);
632632
}
633633

634634
return (string) $state;

0 commit comments

Comments
 (0)