Skip to content

Commit

Permalink
cleanup wip
Browse files Browse the repository at this point in the history
  • Loading branch information
keradus committed Oct 22, 2023
1 parent d0e3835 commit 4ae0353
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Fixer/Whitespace/StatementIndentationFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4ae0353

Please sign in to comment.