Pattern: Malformed switch
declaration
Issue: -
Enforces switch
statement formatting.
By default, this rule ensures that the keywords are indented 4 spaces from the switch
keyword and that the terminating statement is indented 4 spaces from the case
or default
keyword, but you can change the size of the indent by setting the indent
property.
<rule ref="Squiz.ControlStructures.SwitchDeclaration">
<properties>
<property name="indent" value="2" />
</properties>
</rule>