Skip to content

Files

Latest commit

 

History

History
23 lines (15 loc) · 730 Bytes

Squiz.Functions.FunctionDeclaration.md

File metadata and controls

23 lines (15 loc) · 730 Bytes

Pattern: Malformed function declaration

Issue: -

Description

Checks that function declarations match a specific pattern of whitespace and bracket placement.

Configuration

By default, comments placed within the function declaration will generate an error, but the rule can be told to ignore comments by setting the ignoreComments property to true.

<rule ref="Squiz.Functions.FunctionDeclaration">
    <properties>
        <property name="ignoreComments" value="false" />
    </properties>
</rule>

Further Reading