Skip to content

Files

Latest commit

 

History

History
28 lines (19 loc) · 725 Bytes

PEAR.WhiteSpace.ScopeIndent.md

File metadata and controls

28 lines (19 loc) · 725 Bytes

Pattern: Malformed indentation

Issue: -

Description

Checks that control structures are structured and indented correctly.

Configuration

<!-- Tabs should represent 4 spaces. -->
<arg name="tab-width" value="4"/>


<rule ref="PEAR.WhiteSpace.ScopeIndent">
    <properties>
        <property name="exact" value="true" />
        <property name="tabIndent" value="true" />
        <property name="ignoreIndentationTokens" type="array"
            value="T_COMMENT,T_DOC_COMMENT_OPEN_TAG"/>
    </properties>
</rule>

Further Reading