Source Location: /PHP_CodeSniffer-2.8.0/CodeSniffer/Standards/Squiz/Sniffs/Commenting/FunctionCommentSniff.php
checkSpacingAfterParamName [line 590]
void checkSpacingAfterParamName(
PHP_CodeSniffer_File
$phpcsFile, array
$param, int
$maxVar, [int
$spacing = 1])
Check the spacing after the name of a parameter.
Parameters:
array
$param
—
The parameter to be checked.
int
$maxVar
—
The maxlength of the longest parameter name.
int
$spacing
—
The number of spaces to add after the type.
checkSpacingAfterParamType [line 536]
void checkSpacingAfterParamType(
PHP_CodeSniffer_File
$phpcsFile, array
$param, int
$maxType, [int
$spacing = 1])
Check the spacing after the type of a parameter.
Parameters:
array
$param
—
The parameter to be checked.
int
$maxType
—
The maxlength of the longest parameter type.
int
$spacing
—
The number of spaces to add after the type.
processParams [line 248]
Process the function parameter comments.
Overrides
PEAR_Sniffs_Commenting_FunctionCommentSniff::processParams() (Process the function parameter comments.)
Parameters:
int
$stackPtr
—
The position of the current token in the stack passed in $tokens.
int
$commentStart
—
The position in the stack where the comment started.
processReturn [line 53]
Process the return comment of this function comment.
Overrides
PEAR_Sniffs_Commenting_FunctionCommentSniff::processReturn() (Process the return comment of this function comment.)
Parameters:
int
$stackPtr
—
The position of the current token in the stack passed in $tokens.
int
$commentStart
—
The position in the stack where the comment started.
processThrows [line 179]
Process any throw tags that this function comment has.
Overrides
PEAR_Sniffs_Commenting_FunctionCommentSniff::processThrows() (Process any throw tags that this function comment has.)
Parameters:
int
$stackPtr
—
The position of the current token in the stack passed in $tokens.
int
$commentStart
—
The position in the stack where the comment started.