PHP 클래스 PhpCsFixer\Fixer\Whitespace\NoExtraConsecutiveBlankLinesFixer

저자: Dariusz Rumiński ([email protected])
저자: SpacePossum
상속: extends PhpCsFixer\AbstractFixer, implements PhpCsFixer\Fixer\ConfigurableFixerInterface, implements PhpCsFixer\Fixer\WhitespacesAwareFixerInterface
파일 보기 프로젝트 열기: friendsofphp/php-cs-fixer

공개 메소드들

메소드 설명
configure ( array $configuration = null ) Set configuration.
fix ( SplFileInfo $file, Tokens $tokens )
getPriority ( )
isCandidate ( Tokens $tokens )

보호된 메소드들

메소드 설명
getDescription ( )

비공개 메소드들

메소드 설명
fixAfterToken ( $index )
fixByToken ( PhpCsFixer\Tokenizer\Token $token, $index )
fixStructureOpenCloseIfMultiLine ( integer $index ) Remove white line(s) after the index of a block type, but only if the block is not on one line.
removeBetweenUse ( $index )
removeEmptyLinesAfterLineWithTokenAt ( $index )
removeMultipleBlankLines ( $index )

메소드 상세

configure() 공개 메소드

Valid configuration options are: - 'break' remove blank lines after a line with a 'break' statement - 'continue' remove blank lines after a line with a 'continue' statement - 'extra' [default] consecutive blank lines are squashed into one - 'return' remove blank lines after a line with a 'return' statement - 'throw' remove blank lines after a line with a 'throw' statement - 'use' remove blank lines between 'use' import statements - 'useTrait' remove blank lines between 'use' trait statements - 'curly_brace_block' remove blank lines after a curly opening block brace ('{') and/or end block brace ('}') - 'parenthesis_brace_block' remove blank lines after a parenthesis opening block brace ('(') and/or end block brace (')') - 'square_brace_block' remove blank lines after a square opening block brace ('[') and/or end block brace (']')
public configure ( array $configuration = null )
$configuration array

fix() 공개 메소드

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

getDescription() 보호된 메소드

protected getDescription ( )

getPriority() 공개 메소드

public getPriority ( )

isCandidate() 공개 메소드

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