Documentation

OpeningFunctionBraceBsdAllmanSniff
in package
implements Sniff

Interfaces, Classes and Traits

Sniff

Table of Contents

$checkClosures  : bool
Should this sniff check closure braces?
$checkFunctions  : bool
Should this sniff check function braces?
process()  : void
Processes this test, when one of its tokens is encountered.
register()  : array<string|int, int>
Registers the tokens that this sniff 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 passed in $tokens.

Return values
void

register()

Registers the tokens that this sniff wants to listen for.

public register() : array<string|int, int>
Return values
array<string|int, int>

Search results