Skip to content

Commit

Permalink
Fix up loop
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Aug 4, 2022
1 parent 2172db9 commit d5d8956
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ protected function getClass(File $file): string {
protected function indentation(File $file, int $endIndex): string {
$tokens = $file->getTokens();
$indentationElements = [];
for ($i = $endIndex - 1; $i > 0; $i++) {
for ($i = $endIndex - 1; $i > 0; $i--) {
if ($tokens[$i]['line'] !== $tokens[$endIndex]['line']) {
break;
}
Expand Down

0 comments on commit d5d8956

Please sign in to comment.