Skip to content

Commit cb9f02b

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 ac587a9 commit cb9f02b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SelectTree.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ private function buildNode($result, $resultMap, $disabledOptions, $hiddenOptions
228228
// Create a node with 'name' and 'value' attributes
229229
$node = [
230230
'name' => $result->{$this->getTitleAttribute()},
231-
'value' => (string) $key,
231+
'value' => $key,
232232
'parent' => (string) $result->{$this->getParentAttribute()},
233233
'disabled' => in_array($key, $disabledOptions),
234234
'hidden' => in_array($key, $hiddenOptions),

0 commit comments

Comments
 (0)