Pattern: Malformed switch
declaration
Issue: -
Ensures all switch
statements are defined correctly.
By default, this rule ensures that the 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="PSR2.ControlStructures.SwitchDeclaration">
<properties>
<property name="indent" value="2" />
</properties>
</rule>