From ffa88c23f53434973b3643f65e4224b1eadb44f1 Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Thu, 20 Feb 2025 09:39:18 +0100 Subject: [PATCH] [CLEANUP] Avoid Hungarian notation for `isForIdentifier` Part of #756 --- src/Parsing/ParserState.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Parsing/ParserState.php b/src/Parsing/ParserState.php index 5663e221..6090fd57 100644 --- a/src/Parsing/ParserState.php +++ b/src/Parsing/ParserState.php @@ -146,18 +146,18 @@ public function parseIdentifier($ignoreCase = true) } /** - * @param bool $bIsForIdentifier + * @param bool $isForIdentifier * * @return string|null * * @throws UnexpectedEOFException * @throws UnexpectedTokenException */ - public function parseCharacter($bIsForIdentifier) + public function parseCharacter($isForIdentifier) { if ($this->peek() === '\\') { if ( - $bIsForIdentifier && $this->parserSettings->bLenientParsing + $isForIdentifier && $this->parserSettings->bLenientParsing && ($this->comes('\\0') || $this->comes('\\9')) ) { // Non-strings can contain \0 or \9 which is an IE hack supported in lenient parsing. @@ -189,7 +189,7 @@ public function parseCharacter($bIsForIdentifier) } return \iconv('utf-32le', $this->charset, $sUtf32); } - if ($bIsForIdentifier) { + if ($isForIdentifier) { $peek = \ord($this->peek()); // Ranges: a-z A-Z 0-9 - _ if (