Skip to content

Commit 9eb6c43

Browse files
authored
[CLEANUP] Avoid Hungarian notation for comment (#1123)
Part of #756
1 parent 337f861 commit 9eb6c43

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Parsing/ParserState.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -306,26 +306,26 @@ public function consumeExpression($expression, $maximumLength = null): string
306306
*/
307307
public function consumeComment()
308308
{
309-
$mComment = false;
309+
$comment = false;
310310
if ($this->comes('/*')) {
311311
$lineNumber = $this->lineNumber;
312312
$this->consume(1);
313-
$mComment = '';
313+
$comment = '';
314314
while (($char = $this->consume(1)) !== '') {
315-
$mComment .= $char;
315+
$comment .= $char;
316316
if ($this->comes('*/')) {
317317
$this->consume(2);
318318
break;
319319
}
320320
}
321321
}
322322

323-
if ($mComment !== false) {
323+
if ($comment !== false) {
324324
// We skip the * which was included in the comment.
325-
return new Comment(\substr($mComment, 1), $lineNumber);
325+
return new Comment(\substr($comment, 1), $lineNumber);
326326
}
327327

328-
return $mComment;
328+
return $comment;
329329
}
330330

331331
public function isEnd(): bool

0 commit comments

Comments
 (0)