Documentation

DuplicateClassNameSniff
in package
implements Sniff

Interfaces, Classes and Traits

Sniff

Table of Contents

$foundClasses  : array<string|int, mixed>
List of classes that have been found during checking.
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

$foundClasses

List of classes that have been found during checking.

protected array<string|int, mixed> $foundClasses = []

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