Skip to content

Files

Latest commit

 

History

History
23 lines (15 loc) · 642 Bytes

Squiz.Classes.ClassDeclaration.md

File metadata and controls

23 lines (15 loc) · 642 Bytes

Pattern: Incorrect class declaration

Issue: -

Description

Checks the declaration of the class and its inheritance is correct.

Configuration

By default, this rule ensures that the class names are indented 4 spaces, but you can change the size of the indent by setting the indent property.

<rule ref="Squiz.Classes.ClassDeclaration">
    <properties>
        <property name="indent" value="2" />
    </properties>
</rule>

Further Reading