Class: PEAR_Sniffs_Commenting_FunctionCommentSniff
Source Location: /PHP_CodeSniffer-2.0.0RC1/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FunctionCommentSniff.php
Parses and verifies the doc comments for functions.
Author(s):
Version:
Copyright:
- 2006-2014 Squiz Pty Ltd (ABN 77 084 670 600)
Inherited Variables
Inherited Methods
Class Details
[line 43]
Parses and verifies the doc comments for functions.
Verifies that :
- A comment exists
- There is a blank newline after the short description.
- There is a blank newline between the long and short description.
- There is a blank newline between the long description and tags.
- Parameter names represent those in the method.
- Parameter comments are in the correct order
- Parameter comments are complete
- A space is present before the first and after the last parameter
- A return type exists
- There must be one blank line between body and headline comments.
- Any throw tag must have an exception class.
Method Detail
process [line 68]
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.
processParams [line 226]
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 124]
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 186]
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.
register [line 52]
Returns an array of tokens this test wants to listen for.
Documentation generated on 2019年3月11日 15:58:15 -0400 by
phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.