Skip to content

Latest commit

 

History

History
56 lines (36 loc) · 1.1 KB

at-function-parentheses-space-before.md

File metadata and controls

56 lines (36 loc) · 1.1 KB

Pattern: Malformed space before @function parentheses

Issue: -

Description

Require or disallow a space before @function parentheses.

@function foo ($arg) { }
/**           ↑
 * The space before this parenthesis */

Examples

string: "always"|"never"

"always"

There must always be exactly one space between the function name and the opening parenthesis.

The following patterns are considered warnings:

@function foo($arg) { }
@function foo  ($arg) { }

The following patterns are not considered warnings:

@function foo ($arg) { }

"never"

There must never be any whitespace between the function name and the opening parenthesis.

The following patterns are considered warnings:

@function foo ($arg) { }

The following patterns are not considered warnings:

@function foo($arg) { }

Further Reading