PHP 클래스 SmileElasticsuite_Sniffs_Commenting_FunctionCommentSniff, elasticsuite

저자: Aurelien FOUCRET ([email protected])
상속: extends PEAR_Sniffs_Commenting_FunctionCommentSniff
파일 보기 프로젝트 열기: smile-sa/elasticsuite

공개 메소드들

메소드 설명
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