Skip to content

Commit ac587a9

Browse files
committed
Refactor SelectTree formatting and minor logic improvements
Removed redundant blank lines and refined spacing for better code readability. Adjusted conditional key assignment logic to ensure consistent formatting without altering functionality.
1 parent 9ea82ec commit ac587a9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/SelectTree.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,6 @@ public function prepend(Closure|array|null $prepend = null): static
312312
return $this;
313313
}
314314

315-
316315
public function getRelationship(): BelongsToMany|BelongsTo
317316
{
318317
return $this->getModelInstance()->{$this->evaluate($this->relationship)}();
@@ -450,7 +449,7 @@ public function getIndependent(): bool
450449

451450
public function getCustomKey($record): string
452451
{
453-
$key = is_null($this->customKey) ? $record->getKey() : $record->{$this->customKey};
452+
$key = is_null($this->customKey) ? $record->getKey() : $record->{$this->customKey};
454453

455454
return (string) $key;
456455
}

0 commit comments

Comments
 (0)