Skip to content

Commit fa75073

Browse files
committed
improve code readability of last commit
1 parent 732f896 commit fa75073

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Parser/Parser.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -483,10 +483,7 @@ public function ListValue(): array
483483

484484
$this->eat("[");
485485

486-
if($this->lookahead["type"] !== "]")
487-
$valueList = [$this->Value()];
488-
else
489-
$valueList = [];
486+
$valueList = $this->lookahead["type"] !== "]" ? [$this->Value()] : [];
490487

491488
while ($this->lookahead["type"] !== "]") {
492489
$this->eat(",");

0 commit comments

Comments
 (0)