PHP Class Squiz_Sniffs_Commenting_VariableCommentSniff, PHP_CodeSniffer

Author: Greg Sherwood ([email protected])
Author: Marc McIntyre ([email protected])
Inheritance: extends PHP_CodeSniffer_Standards_AbstractVariableSniff
Mostra file Open project: squizlabs/php_codesniffer Class Usage Examples

Public Methods

Method Description
processMemberVar ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr ) : void Called to process class member vars.

Protected Methods

Method Description
processVariable ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr ) : void Called to process a normal variable.
processVariableInString ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr ) : void Called to process variables found in double quoted strings.

Method Details

processMemberVar() public method

Called to process class member vars.
public processMemberVar ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr ) : void
$phpcsFile PHP_CodeSniffer_File The file being scanned.
$stackPtr integer The position of the current token in the stack passed in $tokens.
return void

processVariable() protected method

Not required for this sniff.
protected processVariable ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr ) : void
$phpcsFile PHP_CodeSniffer_File The PHP_CodeSniffer file where this token was found.
$stackPtr integer The position where the double quoted string was found.
return void

processVariableInString() protected method

Not required for this sniff.
protected processVariableInString ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr ) : void
$phpcsFile PHP_CodeSniffer_File The PHP_CodeSniffer file where this token was found.
$stackPtr integer The position where the double quoted string was found.
return void