HumHub Documentation (unofficial)

UselessOverridingMethodSniff
in package
implements Sniff

Table of Contents

Interfaces

Sniff

Properties

$validOOScopes  : array<int|string, bool>
Object-Oriented scopes in which a call to parent::method() can exist.

Methods

process()  : void
Processes this test, when one of its tokens is encountered.
register()  : array<string|int, int|string>
Registers the tokens that this sniff wants to listen for.

Properties

$validOOScopes

Object-Oriented scopes in which a call to parent::method() can exist.

private array<int|string, bool> $validOOScopes = [T_CLASS => true, T_ANON_CLASS => true, T_TRAIT => true]

Keys are the token constants, value is irrelevant.

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.

register()

Registers the tokens that this sniff wants to listen for.

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

        
On this page

Search results