Skip to content

Commit 4f2b7e1

Browse files
committed
[CLEANUP] Avoid Hungarian notation for character
Part of #756
1 parent 2be1044 commit 4f2b7e1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Parsing/ParserState.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,12 @@ public function parseIdentifier($ignoreCase = true)
131131
if ($result === null) {
132132
throw new UnexpectedTokenException('', $this->peek(5), 'identifier', $this->lineNumber);
133133
}
134-
$sCharacter = null;
135-
while (!$this->isEnd() && ($sCharacter = $this->parseCharacter(true)) !== null) {
136-
if (\preg_match('/[a-zA-Z0-9\\x{00A0}-\\x{FFFF}_-]/Sux', $sCharacter)) {
137-
$result .= $sCharacter;
134+
$character = null;
135+
while (!$this->isEnd() && ($character = $this->parseCharacter(true)) !== null) {
136+
if (\preg_match('/[a-zA-Z0-9\\x{00A0}-\\x{FFFF}_-]/Sux', $character)) {
137+
$result .= $character;
138138
} else {
139-
$result .= '\\' . $sCharacter;
139+
$result .= '\\' . $character;
140140
}
141141
}
142142
if ($ignoreCase) {

0 commit comments

Comments
 (0)