HumHub Documentation (unofficial)

AnonClassDeclarationSniff extends ClassDeclarationSniff
in package

Table of Contents

Properties

$indent  : int
The number of spaces code should be indented.
$functionCallSniff  : FunctionCallArgumentSpacingSniff
The Generic FunctionCallArgumentSpacing sniff.
$multiLineSniff  : MultiLineFunctionDeclarationSniff
The PSR2 MultiLineFunctionDeclarations sniff.

Methods

process()  : void
Processes this test, when one of its tokens is encountered.
processClose()  : void
Processes the closing section of a class declaration.
processMultiLineArgumentList()  : void
Processes this test, when one of its tokens is encountered.
processOpen()  : void
Processes the opening section of a class declaration.
processSingleLineArgumentList()  : void
Processes this test, when one of its tokens is encountered.
register()  : array<string|int, int|string>
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 passed in $tokens.

processClose()

Processes the closing section of a class declaration.

public processClose(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.

processMultiLineArgumentList()

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

public processMultiLineArgumentList(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.

processOpen()

Processes the opening section of a class declaration.

public processOpen(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.

processSingleLineArgumentList()

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

public processSingleLineArgumentList(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.

register()

Returns an array of tokens this test wants to listen for.

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

        
On this page

Search results