Skip to content
On this page

ObjectOperatorSpacing

Ensure there is no whitespace before/after an object operator.

Scope

Squiz.WhiteSpace.ObjectOperatorSpacing

Description

The object operator (->) should not have any space around it.

Properties

Property NameTypeDefaultAvailable Since
ignoreNewlinesboolfalse2.7.0

Usage

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

Examples

No Examples Available

Please edit this page through Github to add examples.

Released under the MIT License.