PHP Class SmileElasticsuite_Sniffs_Commenting_FunctionCommentSniff, elasticsuite

Author: Aurelien FOUCRET ([email protected])
Inheritance: extends PEAR_Sniffs_Commenting_FunctionCommentSniff
Afficher le fichier Open project: smile-sa/elasticsuite

Méthodes publiques

Méthode Description
process ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr ) : void Processes this test, when one of its tokens is encountered.

Méthodes protégées

Méthode Description
isInheritDoc ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr ) : boolean Is the comment an inheritdoc?
isMatchingReturn ( array $tokens, integer $returnPos ) : boolean Is the return statement matching?
processParams ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr, integer $commentStart ) : void Process the function parameter comments.
processReturn ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr, integer $commentStart ) : void Process the return comment of this function comment.

Method Details

isInheritDoc() protected méthode

Is the comment an inheritdoc?
protected isInheritDoc ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr ) : boolean
$phpcsFile PHP_CodeSniffer_File The file being scanned.
$stackPtr integer The position of the current token in the stack passed in $tokens.
Résultat boolean True if the comment is an inheritdoc

isMatchingReturn() protected méthode

Is the return statement matching?
protected isMatchingReturn ( array $tokens, integer $returnPos ) : boolean
$tokens array Array of tokens
$returnPos integer Stack position of the T_RETURN token to process
Résultat boolean True if the return does not return anything

process() public méthode

Processes this test, when one of its tokens is encountered.
public process ( 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.
Résultat void

processParams() protected méthode

Process the function parameter comments.
protected processParams ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr, integer $commentStart ) : void
$phpcsFile PHP_CodeSniffer_File The file being scanned.
$stackPtr integer The position of the current token in the stack passed in $tokens.
$commentStart integer The position in the stack where the comment started.
Résultat void

processReturn() protected méthode

Process the return comment of this function comment.
protected processReturn ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr, integer $commentStart ) : void
$phpcsFile PHP_CodeSniffer_File The file being scanned.
$stackPtr integer The position of the current token in the stack passed in $tokens.
$commentStart integer The position in the stack where the comment started.
Résultat void