Pattern: Malformed object operator spacing
Issue: -
This rule ensures there are no spaces surrounding an object operator.
Sometimes long object chains 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 object operator, and any required padding for alignment.
<rule ref="Squiz.WhiteSpace.ObjectOperatorSpacing">
<properties>
<property name="ignoreNewlines" value="true" />
</properties>
</rule>