Closed
Description
The "Generic.Whitespace.ScopeIndent" sniff reports a false indention for switch/case statements that contains an if-condition, e.g.:
switch($type)
{
case 'a':
if($operator == '~=') {
$value = true;
break;
}
default:
$value = false;
}
Result for line with default
and below:
8 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 8
9 | ERROR | [x] Line indented incorrectly; expected at least 16 spaces, found 12