From f8524aa0647625b3d282b6a65ed43bb316060bac Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Sat, 8 Mar 2025 19:41:03 +0100 Subject: [PATCH] [CLEANUP] Avoid Hungarian notation for `comment` Part of #756 --- src/Parsing/ParserState.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Parsing/ParserState.php b/src/Parsing/ParserState.php index 6e6d33f6..cb2dbc00 100644 --- a/src/Parsing/ParserState.php +++ b/src/Parsing/ParserState.php @@ -306,13 +306,13 @@ public function consumeExpression($expression, $iMaxLength = null): string */ public function consumeComment() { - $mComment = false; + $comment = false; if ($this->comes('/*')) { $lineNumber = $this->lineNumber; $this->consume(1); - $mComment = ''; + $comment = ''; while (($char = $this->consume(1)) !== '') { - $mComment .= $char; + $comment .= $char; if ($this->comes('*/')) { $this->consume(2); break; @@ -320,12 +320,12 @@ public function consumeComment() } } - if ($mComment !== false) { + if ($comment !== false) { // We skip the * which was included in the comment. - return new Comment(\substr($mComment, 1), $lineNumber); + return new Comment(\substr($comment, 1), $lineNumber); } - return $mComment; + return $comment; } public function isEnd(): bool