Skip to content
On this page

FunctionSpacing

Checks the separation between functions and methods.

Scope

Squiz.WhiteSpace.FunctionSpacing

Properties

Property NameTypeDefaultAvailable Since
spacingint21.4.5
spacingAfterLastint23.3.0
spacingBeforeFirstint23.3.0

Usage

xml
<!-- Ensure 1 blank line before and after functions in all cases. -->
<rule ref="Squiz.WhiteSpace.FunctionSpacing">
    <properties>
        <property name="spacing" value="1" />
    </properties>
</rule>

Examples

No Examples Available

Please edit this page through Github to add examples.

Released under the MIT License.