Skip to content

Commit ffb8f51

Browse files
committed
Adjust the logic of calculating the expected indentation always to consider the previous chained call
1 parent 8f843c3 commit ffb8f51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Standards/PEAR/Sniffs/WhiteSpace/ObjectOperatorIndentSniff.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,9 @@ public function process(File $phpcsFile, $stackPtr)
156156
$phpcsFile->fixer->replaceToken(($next - 1), $spaces);
157157
}
158158
}
159-
} else {
160-
$previousIndent = $foundIndent;
161159
}
160+
161+
$previousIndent = $expectedIndent;
162162
}//end if
163163

164164
// It cant be the last thing on the line either.

0 commit comments

Comments
 (0)