From d874174b8e33248391bac79d6e0c011e7e101640 Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Thu, 20 Feb 2025 19:53:37 +0100 Subject: [PATCH] [CLEANUP] Avoid Hungarian notation for `caseInsensitive` Part of #756 --- src/Parsing/ParserState.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Parsing/ParserState.php b/src/Parsing/ParserState.php index f230395a2..5a91d6623 100644 --- a/src/Parsing/ParserState.php +++ b/src/Parsing/ParserState.php @@ -234,14 +234,14 @@ public function consumeWhiteSpace(): array /** * @param string $sString - * @param bool $bCaseInsensitive + * @param bool $caseInsensitive */ - public function comes($sString, $bCaseInsensitive = false): bool + public function comes($sString, $caseInsensitive = false): bool { $sPeek = $this->peek(\strlen($sString)); return ($sPeek == '') ? false - : $this->streql($sPeek, $sString, $bCaseInsensitive); + : $this->streql($sPeek, $sString, $caseInsensitive); } /** @@ -392,11 +392,11 @@ private function inputLeft(): string /** * @param string $sString1 * @param string $sString2 - * @param bool $bCaseInsensitive + * @param bool $caseInsensitive */ - public function streql($sString1, $sString2, $bCaseInsensitive = true): bool + public function streql($sString1, $sString2, $caseInsensitive = true): bool { - if ($bCaseInsensitive) { + if ($caseInsensitive) { return $this->strtolower($sString1) === $this->strtolower($sString2); } else { return $sString1 === $sString2;