Skip to content

Commit 62dd954

Browse files
committed
Merge branch 'feature/3362-generic-scopeindent-debug' of https://github.com/jrfnl/PHP_CodeSniffer
2 parents cd5acaa + 783d946 commit 62dd954

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Standards/Generic/Sniffs/WhiteSpace/ScopeIndentSniff.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -618,11 +618,11 @@ public function process(File $phpcsFile, $stackPtr)
618618

619619
// Scope closers reset the required indent to the same level as the opening condition.
620620
if (($checkToken !== null
621-
&& isset($openScopes[$checkToken]) === true
621+
&& (isset($openScopes[$checkToken]) === true
622622
|| (isset($tokens[$checkToken]['scope_condition']) === true
623623
&& isset($tokens[$checkToken]['scope_closer']) === true
624624
&& $tokens[$checkToken]['scope_closer'] === $checkToken
625-
&& $tokens[$checkToken]['line'] !== $tokens[$tokens[$checkToken]['scope_opener']]['line']))
625+
&& $tokens[$checkToken]['line'] !== $tokens[$tokens[$checkToken]['scope_opener']]['line'])))
626626
|| ($checkToken === null
627627
&& isset($openScopes[$i]) === true)
628628
) {

0 commit comments

Comments
 (0)