Class: Generic_Sniffs_CodeAnalysis_UnusedFunctionParameterSniff
Source Location: /PHP_CodeSniffer-2.0.0a2/CodeSniffer/Standards/Generic/Sniffs/CodeAnalysis/UnusedFunctionParameterSniff.php
Checks the for unused function parameters.
Author(s):
Version:
Copyright:
- 2007-2014 Manuel Pichler. All rights reserved.
Inherited Variables
Inherited Methods
Class Details
[line 34]
Checks the for unused function parameters.
This sniff checks that all function parameters are used in the function body. One exception is made for empty function bodies or function bodies that only contain comments. This could be useful for the classes that implement an interface that defines multiple methods but the implementation only needs some of them.
Method Detail
process [line 59]
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 43]
Returns an array of tokens this test wants to listen for.
Documentation generated on 2019年3月11日 15:57:12 -0400 by
phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.