Documentation

FunctionDeclarationArgumentSpacingSniff
in package
implements Sniff

Interfaces, Classes and Traits

Sniff

Table of Contents

$equalsSpacing  : int
How many spaces should surround the equals signs.
$requiredSpacesAfterOpen  : int
How many spaces should follow the opening bracket.
$requiredSpacesBeforeClose  : int
How many spaces should precede the closing bracket.
process()  : void
Processes this test, when one of its tokens is encountered.
processBracket()  : void
Processes the contents of a single set of brackets.
register()  : array<string|int, mixed>
Returns an array of tokens this test wants to listen for.

Properties

Methods

process()

Processes this test, when one of its tokens is encountered.

public process(File $phpcsFile, int $stackPtr) : void
Parameters
$phpcsFile : File

The file being scanned.

$stackPtr : int

The position of the current token in the stack.

Return values
void

processBracket()

Processes the contents of a single set of brackets.

public processBracket(File $phpcsFile, int $openBracket) : void
Parameters
$phpcsFile : File

The file being scanned.

$openBracket : int

The position of the open bracket in the stack.

Return values
void

Search results