Skip to content

Commit 4a39005

Browse files
committed
The scope indent sniff already reports this error, so it has been removed
1 parent b515d30 commit 4a39005

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

CodeSniffer/Standards/PSR2/Sniffs/ControlStructures/SwitchDeclarationSniff.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,6 @@ public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
9494
$phpcsFile->fixer->replaceToken($nextCase, $expected);
9595
}
9696

97-
if ($tokens[$nextCase]['column'] !== $caseAlignment) {
98-
$error = strtoupper($type).' keyword must be indented '.$this->indent.' spaces from SWITCH keyword';
99-
$phpcsFile->addError($error, $nextCase, $type.'Indent');
100-
}
101-
10297
$prevCode = $phpcsFile->findPrevious(T_WHITESPACE, ($nextCase - 1), $stackPtr, true);
10398
$blankLines = ($tokens[$nextCase]['line'] - $tokens[$prevCode]['line'] - 1);
10499
if ($blankLines !== 0) {

0 commit comments

Comments
 (0)