HumHub Documentation (unofficial)

ObjectInstantiationSniff
in package
implements Sniff

Table of Contents

Interfaces

Sniff

Methods

process()  : void
Process the tokens that this sniff is listening for.
register()  : array<string|int, int|string>
Registers the token types that this sniff wishes to listen to.

Methods

process()

Process the tokens that this sniff is listening for.

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

The file where the token was found.

$stackPtr : int

The position in the stack where the token was found.

register()

Registers the token types that this sniff wishes to listen to.

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

        
On this page

Search results