Class: Generic_Sniffs_CodeAnalysis_UnnecessaryFinalModifierSniff
Source Location: /PHP_CodeSniffer-2.3.0/CodeSniffer/Standards/Generic/Sniffs/CodeAnalysis/UnnecessaryFinalModifierSniff.php
Detects unnecessary final modifiers inside of final classes.
Author(s):
Version:
Copyright:
- 2007-2014 Manuel Pichler. All rights reserved.
Inherited Variables
Inherited Methods
Class Details
[line 40]
Detects unnecessary final modifiers inside of final classes.
This rule is based on the PMD rule catalog. The Unnecessary Final Modifier sniff detects the use of the final modifier inside of a final class which is unnecessary.
final class Foo
{
public final function bar()
{
}
}
Method Detail
process [line 65]
Processes this test, when one of its tokens is encountered.
Parameters:
int
$stackPtr
—
The position of the current token in the stack passed in $tokens.
register [line 49]
Registers the tokens that this sniff wants to listen for.
Documentation generated on 2019年3月11日 16:01:40 -0400 by
phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.