From 4e53f0eda563766c61ff0d34bb586705b2bcb1b4 Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Thu, 27 Feb 2025 13:14:54 +0100 Subject: [PATCH] [CLEANUP] Avoid Hungarian notation for `isFirst` Part of #756 --- src/RuleSet/RuleSet.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/RuleSet/RuleSet.php b/src/RuleSet/RuleSet.php index 991c5043..076ccd49 100644 --- a/src/RuleSet/RuleSet.php +++ b/src/RuleSet/RuleSet.php @@ -269,7 +269,7 @@ public function __toString(): string protected function renderRules(OutputFormat $outputFormat) { $result = ''; - $bIsFirst = true; + $isFirst = true; $oNextLevel = $outputFormat->nextLevel(); foreach ($this->aRules as $aRules) { foreach ($aRules as $rule) { @@ -279,8 +279,8 @@ protected function renderRules(OutputFormat $outputFormat) if ($sRendered === null) { continue; } - if ($bIsFirst) { - $bIsFirst = false; + if ($isFirst) { + $isFirst = false; $result .= $oNextLevel->spaceBeforeRules(); } else { $result .= $oNextLevel->spaceBetweenRules(); @@ -289,7 +289,7 @@ protected function renderRules(OutputFormat $outputFormat) } } - if (!$bIsFirst) { + if (!$isFirst) { // Had some output $result .= $outputFormat->spaceAfterRules(); }