PHP 클래스 PhpCsFixer\Fixer\ControlStructure\NoUselessElseFixer

저자: SpacePossum
상속: extends PhpCsFixer\AbstractFixer
파일 보기 프로젝트 열기: friendsofphp/php-cs-fixer

공개 메소드들

메소드 설명
fix ( SplFileInfo $file, Tokens $tokens )
getDefinition ( )
getPriority ( )
isCandidate ( Tokens $tokens )

비공개 메소드들

메소드 설명
clearElse ( Tokens $tokens, integer $index )
fixElse ( Tokens $tokens, integer $index )
fixEmptyElse ( Tokens $tokens, integer $index ) Remove tokens part of an else statement if not empty (i.e. no meaningful tokens inside).
getPreviousBlock ( Tokens $tokens, integer $index ) : int[] Return the first and last token index of the previous block.
isInConditional ( Tokens $tokens, integer $index, integer $lowerLimitIndex ) : boolean

메소드 상세

fix() 공개 메소드

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

getDefinition() 공개 메소드

public getDefinition ( )

getPriority() 공개 메소드

public getPriority ( )

isCandidate() 공개 메소드

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