From 7167056f48ec5b1d3111dc8ca498396c79004d7b Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Thu, 20 Feb 2025 09:34:47 +0100 Subject: [PATCH] [CLEANUP] Avoid Hungarian notation for `character` Part of #756 --- src/Parsing/ParserState.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Parsing/ParserState.php b/src/Parsing/ParserState.php index 5663e221..f0b6ca62 100644 --- a/src/Parsing/ParserState.php +++ b/src/Parsing/ParserState.php @@ -131,12 +131,12 @@ public function parseIdentifier($ignoreCase = true) if ($result === null) { throw new UnexpectedTokenException('', $this->peek(5), 'identifier', $this->lineNumber); } - $sCharacter = null; - while (!$this->isEnd() && ($sCharacter = $this->parseCharacter(true)) !== null) { - if (\preg_match('/[a-zA-Z0-9\\x{00A0}-\\x{FFFF}_-]/Sux', $sCharacter)) { - $result .= $sCharacter; + $character = null; + while (!$this->isEnd() && ($character = $this->parseCharacter(true)) !== null) { + if (\preg_match('/[a-zA-Z0-9\\x{00A0}-\\x{FFFF}_-]/Sux', $character)) { + $result .= $character; } else { - $result .= '\\' . $sCharacter; + $result .= '\\' . $character; } } if ($ignoreCase) {