PHP Class PhpCsFixer\Fixer\ControlStructure\NoUnneededControlParenthesesFixer

Author: Sullivan Senechal ([email protected])
Author: Dariusz Rumiński ([email protected])
Author: Gregor Harlan ([email protected])
Inheritance: extends PhpCsFixer\AbstractFixer, implements PhpCsFixer\Fixer\ConfigurableFixerInterface
显示文件 Open project: friendsofphp/php-cs-fixer

Public Methods

Method Description
__construct ( ) Dynamic yield option set on constructor.
configure ( array $controlStatements = null )
fix ( SplFileInfo $file, Tokens $tokens )
getPriority ( ) Should be run before no_trailing_whitespace.
isCandidate ( Tokens $tokens )

Protected Methods

Method Description
getDescription ( )

Method Details

__construct() public method

Dynamic yield option set on constructor.
public __construct ( )

configure() public method

public configure ( array $controlStatements = null )
$controlStatements array

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