Skip to content

Commit 2be86c9

Browse files
committed
[CLEANUP] Avoid Hungarian notation for matches
Part of #756
1 parent 150007c commit 2be86c9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Parsing/ParserState.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -293,10 +293,10 @@ public function consume($value = 1): string
293293
*/
294294
public function consumeExpression($mExpression, $iMaxLength = null): string
295295
{
296-
$aMatches = null;
296+
$matches = null;
297297
$sInput = $iMaxLength !== null ? $this->peek($iMaxLength) : $this->inputLeft();
298-
if (\preg_match($mExpression, $sInput, $aMatches, PREG_OFFSET_CAPTURE) === 1) {
299-
return $this->consume($aMatches[0][0]);
298+
if (\preg_match($mExpression, $sInput, $matches, PREG_OFFSET_CAPTURE) === 1) {
299+
return $this->consume($matches[0][0]);
300300
}
301301
throw new UnexpectedTokenException($mExpression, $this->peek(5), 'expression', $this->lineNumber);
302302
}

0 commit comments

Comments
 (0)