Method | Description | |
---|---|---|
__construct ( ) | ||
create ( ) : |
Create instance. | |
getFixers ( ) : PhpCsFixer\Fixer\FixerInterface[] | Get fixers. | |
hasRule ( string $name ) : boolean | Check if fixer exists. | |
registerBuiltInFixers ( ) | Register all built in fixers. | |
registerCustomFixers ( array $fixers ) | Register fixers. | |
registerFixer ( PhpCsFixer\Fixer\FixerInterface $fixer, boolean $isCustom ) | Register fixer. | |
setWhitespacesConfig ( phpcsfixer\WhitespacesFixerConfig $config ) | ||
useRuleSet ( phpcsfixer\RuleSetInterface $ruleSet ) | Apply RuleSet on fixers to filter out all unwanted fixers. |
Method | Description | |
---|---|---|
generateConflictMessage ( array $fixerConflicts ) : string | ||
getFixersConflicts ( PhpCsFixer\Fixer\FixerInterface $fixer ) : string[] | null | ||
sortFixers ( ) | Sort fixers by their priorities. |
public static create ( ) : |
||
return |
public getFixers ( ) : PhpCsFixer\Fixer\FixerInterface[] | ||
return | PhpCsFixer\Fixer\FixerInterface[] |
public registerBuiltInFixers ( ) |
public registerCustomFixers ( array $fixers ) | ||
$fixers | array |
public registerFixer ( PhpCsFixer\Fixer\FixerInterface $fixer, boolean $isCustom ) | ||
$fixer | PhpCsFixer\Fixer\FixerInterface | |
$isCustom | boolean |
public setWhitespacesConfig ( phpcsfixer\WhitespacesFixerConfig $config ) | ||
$config | phpcsfixer\WhitespacesFixerConfig |
public useRuleSet ( phpcsfixer\RuleSetInterface $ruleSet ) | ||
$ruleSet | phpcsfixer\RuleSetInterface |