Class: Generic_Sniffs_CodeAnalysis_UselessOverridingMethodSniff
Source Location: /PHP_CodeSniffer-1.3.0/CodeSniffer/Standards/Generic/Sniffs/CodeAnalysis/UselessOverridingMethodSniff.php
Detects unnecessary overriden methods that simply call their parent.
Author(s):
Version:
Copyright:
- 2007-2008 Manuel Pichler. All rights reserved.
Inherited Variables
Inherited Methods
Class Details
[line 40]
Detects unnecessary overriden methods that simply call their parent.
This rule is based on the PMD rule catalog. The Useless Overriding Method sniff detects the use of methods that only call their parent classes's method with the same name and arguments. These methods are not required.
class FooBar {
public function __construct($a, $b) {
parent::__construct($a, $b);
}
}
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]
array(integer) register(
)
Registers the tokens that this sniff wants to listen for.
Documentation generated on 2019年3月11日 15:43:18 -0400 by
phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.