From 4ae035357a44896053e17eadff63e38f68380b3f Mon Sep 17 00:00:00 2001 From: Dariusz Ruminski Date: Sun, 22 Oct 2023 23:03:30 +0200 Subject: [PATCH] cleanup wip --- src/Fixer/Whitespace/StatementIndentationFixer.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Fixer/Whitespace/StatementIndentationFixer.php b/src/Fixer/Whitespace/StatementIndentationFixer.php index 72421dc0679..74cf8502e21 100644 --- a/src/Fixer/Whitespace/StatementIndentationFixer.php +++ b/src/Fixer/Whitespace/StatementIndentationFixer.php @@ -378,12 +378,9 @@ protected function applyFix(\SplFileInfo $file, Tokens $tokens): void $indent = true; } else { // or it was dedicated comment for next control loop - // ^^ we need to check if there is a control group afterwards, in that case - // FRS TODO - + // ^^ we need to check if there is a control group afterwards, and in that case don't make extra indent level $nextIndex = $tokens->getNextNonWhitespace($firstNonWhitespaceTokenIndex); $nextNextIndex = $tokens->getNextNonWhitespace($nextIndex); - // if ($FRS) var_dump(["sss" => $tokens[$nextNextIndex]->toJson()]); if (null !== $nextNextIndex && $tokens[$nextNextIndex]->isGivenKind([T_ELSE, T_ELSEIF])) { $indent = false;