Skip to content

Files

Latest commit

 

History

History
23 lines (15 loc) · 682 Bytes

PEAR.ControlStructures.MultiLineCondition.md

File metadata and controls

23 lines (15 loc) · 682 Bytes

Pattern: Malformed multi-line if condition

Issue: -

Description

Ensure multi-line if conditions are defined correctly.

Configuration

By default, this rule ensures that each line of the condition is indented 4 spaces, but you can change the size of the indent by setting the indent property.

<rule ref="PEAR.ControlStructures.MultiLineCondition">
    <properties>
        <property name="indent" value="2" />
    </properties>
</rule>

Further Reading