Source Location: /PHP_CodeSniffer-1.0.0RC1/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php
$commentParser = null
[line 54]
The header comment parser for the current file.
Type:
PHP_CodeSniffer_Comment_Parser_ClassCommentParser
$currentFile = null
[line 61]
The current PHP_CodeSniffer_File object we are processing.
getIndentation [line 415]
Get the indentation information of each tag.
Parameters:
string
$tagName
—
The name of the doc comment element.
process [line 85]
Processes this test, when one of its tokens is encountered.
Overridden in child classes as:
- PEAR_Sniffs_Commenting_ClassCommentSniff::process()
- 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.
processAuthors [line 512]
void processAuthors(
int
$commentStart)
Process the author tag(s) that this header comment has.
This function is different from other _process functions as $authors is an array of SingleElements, so we work out the errorPos for each element separately
Parameters:
int
$commentStart
—
The position in the stack where the comment started.
processCategory [line 439]
void processCategory(
int
$errorPos)
Process the category tag.
Parameters:
int
$errorPos
—
The line number where the error occurs.
processCopyrights [line 547]
void processCopyrights(
int
$commentStart)
Process the copyright tags.
Parameters:
int
$commentStart
—
The position in the stack where the comment started.
processLicense [line 588]
void processLicense(
int
$errorPos)
Process the license tag.
Parameters:
int
$errorPos
—
The line number where the error occurs.
processPackage [line 473]
void processPackage(
int
$errorPos)
Process the package tag.
Parameters:
int
$errorPos
—
The line number where the error occurs.
processTags [line 223]
void processTags(
int
$commentStart, int
$commentEnd)
Processes each required or optional tag.
Parameters:
int
$commentStart
—
The position in the stack where the comment started.
int
$commentEnd
—
The position in the stack where the comment ended.
processVersion [line 610]
register [line 69]