PHP Класс SmileElasticsuite_Sniffs_Commenting_FunctionCommentSniff, elasticsuite

Автор: Aurelien FOUCRET ([email protected])
Наследование: extends PEAR_Sniffs_Commenting_FunctionCommentSniff
Показать файл Открыть проект

Открытые методы

Метод Описание
process ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr ) : void Processes this test, when one of its tokens is encountered.

Защищенные методы

Метод Описание
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.

Описание методов

isInheritDoc() защищенный Метод

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.
Результат boolean True if the comment is an inheritdoc

isMatchingReturn() защищенный Метод

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
Результат boolean True if the return does not return anything

process() публичный Метод

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.
Результат void

processParams() защищенный Метод

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.
Результат void

processReturn() защищенный Метод

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.
Результат void