PHP Class PhpCsFixer\Fixer\Comment\NoEmptyCommentFixer

Author: SpacePossum
Inheritance: extends PhpCsFixer\AbstractFixer
显示文件 Open project: friendsofphp/php-cs-fixer

Public Methods

Method Description
fix ( SplFileInfo $file, Tokens $tokens )
getPriority ( )
isCandidate ( Tokens $tokens )

Protected Methods

Method Description
getDescription ( )

Private Methods

Method Description
getCommentBlock ( Tokens $tokens, integer $index ) : array Return the start index, end index and a flag stating if the comment block is empty.
getCommentType ( string $content ) : integer
getLineBreakCount ( Tokens $tokens, integer $whiteStart, integer $whiteEnd ) : integer
isEmptyComment ( string $content ) : boolean

Method Details

fix() public method

public fix ( SplFileInfo $file, Tokens $tokens )
$file SplFileInfo
$tokens PhpCsFixer\Tokenizer\Tokens

getDescription() protected method

protected getDescription ( )

getPriority() public method

public getPriority ( )

isCandidate() public method

public isCandidate ( Tokens $tokens )
$tokens PhpCsFixer\Tokenizer\Tokens