Skip to content
On this page

ScopeIndent

Checks that control structures are defined and indented correctly.

Scope

Generic.WhiteSpace.ScopeIndent

Description

Indentation for control structures, classes, and functions should be 4 spaces per level.

Properties

Property NameTypeDefaultAvailable Since
exactboolfalse-
ignoreIndentationTokensarray[]1.4.8
indentint4-
tabIndentboolfalse2.0.0

Usage

xml
<rule ref="Generic.WhiteSpace.ScopeIndent">
    <properties>
        <property name="ignoreIndentationTokens" type="array">
            <element value="T_COMMENT"/>
            <element value="T_DOC_COMMENT_OPEN_TAG"/>
        </property>
    </properties>
</rule>

Examples

No Examples Available

Please edit this page through Github to add examples.

Released under the MIT License.