Skip to content

Files

Latest commit

 

History

History
23 lines (15 loc) · 808 Bytes

Squiz.WhiteSpace.OperatorSpacing.md

File metadata and controls

23 lines (15 loc) · 808 Bytes

Pattern: Malformed operator spacing

Issue: -

Description

Verifies that operators have valid spacing surrounding them.

Configuration

Sometimes long statements are broken over multiple lines to work within a maximum line length, but this rule will generate an error for these cases by default. Setting the ignoreNewlines property to true will allow newline characters before or after an operator, and any required padding for alignment.

<rule ref="Squiz.WhiteSpace.OperatorSpacing">
    <properties>
        <property name="ignoreNewlines" value="true" />
    </properties>
</rule>

Further Reading