Source Location: /PHP_CodeSniffer-1.0.0RC3/CodeSniffer/Standards/Squiz/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 372]
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.
Parameters:
int
$stackPtr
—
The position of the current token in the stack passed in $tokens.
processAuthors [line 481]
void processAuthors(
int
$errorPos)
Author tag must be 'Squiz Pty Ltd <mysource4@squiz.net>'.
Parameters:
int
$errorPos
—
The line number where the error occurs.
processCopyrights [line 506]
void processCopyrights(
int
$errorPos)
Copyright tag must be in the form '2006-YYYY Squiz Pty Ltd (ABN 77 084 670 600)'.
Parameters:
int
$errorPos
—
The line number where the error occurs.
processLicense [line 533]
void processLicense(
int
$errorPos)
License tag must be 'http://matrix.squiz.net/licence Squiz.Net Open Source Licence'.
Parameters:
int
$errorPos
—
The line number where the error occurs.
processPackage [line 423]
void processPackage(
int
$errorPos)
The package name must be 'MySource4'.
Parameters:
int
$errorPos
—
The line number where the error occurs.
processSubpackage [line 447]
void processSubpackage(
int
$errorPos)
The subpackage name must be camel-cased.
Parameters:
int
$errorPos
—
The line number where the error occurs.
processTags [line 265]
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 396]
void processVersion(
int
$errorPos)
The version tag must have the exact keyword 'release_version'.
Parameters:
int
$errorPos
—
The line number where the error occurs.
register [line 69]
Returns an array of tokens this test wants to listen for.