Method | Description | |
---|---|---|
getCacheFile ( ) : string | null | Returns the path to the cache file. | |
getCustomFixers ( ) : PhpCsFixer\Fixer\FixerInterface[] | Returns the custom fixers to use. | |
getFinder ( ) : iterable | Traversable | string[] | Returns files to scan. | |
getFormat ( ) : string | ||
getHideProgress ( ) : boolean | Returns true if progress should be hidden. | |
getIndent ( ) : string | ||
getLineEnding ( ) : string | ||
getName ( ) : string | Returns the name of the configuration. | |
getPhpExecutable ( ) : string | null | Get configured PHP executable, if any. | |
getRiskyAllowed ( ) : boolean | Check if it is allowed to run risky fixers. | |
getRules ( ) : array | Get rules. | |
getUsingCache ( ) : boolean | Returns true if caching should be enabled. | |
registerCustomFixers ( iterable | Traversable | PhpCsFixer\Fixer\FixerInterface[] $fixers ) | Adds a suite of custom fixers. | |
setCacheFile ( string $cacheFile ) : self | Sets the path to the cache file. | |
setFinder ( iterable | Traversable | string[] $finder ) : self | ||
setFormat ( string $format ) : self | ||
setHideProgress ( boolean $hideProgress ) : self | ||
setIndent ( string $indent ) : self | ||
setLineEnding ( string $lineEnding ) : self | ||
setPhpExecutable ( string | null $phpExecutable ) : self | Set PHP executable. | |
setRiskyAllowed ( boolean $isRiskyAllowed ) : self | Set if it is allowed to run risky fixers. | |
setRules ( array $rules ) : self | Set rules. | |
setUsingCache ( boolean $usingCache ) : self |
public getCacheFile ( ) : string | null | ||
return | string | null | Returns null if not using cache |
public getCustomFixers ( ) : PhpCsFixer\Fixer\FixerInterface[] | ||
return | PhpCsFixer\Fixer\FixerInterface[] |
public getFinder ( ) : iterable | Traversable | string[] | ||
return | iterable | Traversable | string[] |
public getHideProgress ( ) : boolean | ||
return | boolean |
public getPhpExecutable ( ) : string | null | ||
return | string | null |
public getRiskyAllowed ( ) : boolean | ||
return | boolean |
public getUsingCache ( ) : boolean | ||
return | boolean |
public registerCustomFixers ( iterable | Traversable | PhpCsFixer\Fixer\FixerInterface[] $fixers ) | ||
$fixers | iterable | Traversable | PhpCsFixer\Fixer\FixerInterface[] |
public setCacheFile ( string $cacheFile ) : self | ||
$cacheFile | string | |
return | self |
public setFinder ( iterable | Traversable | string[] $finder ) : self | ||
$finder | iterable | Traversable | string[] | |
return | self |
public setHideProgress ( boolean $hideProgress ) : self | ||
$hideProgress | boolean | |
return | self |
public setLineEnding ( string $lineEnding ) : self | ||
$lineEnding | string | |
return | self |
public setPhpExecutable ( string | null $phpExecutable ) : self | ||
$phpExecutable | string | null | |
return | self |
public setRiskyAllowed ( boolean $isRiskyAllowed ) : self | ||
$isRiskyAllowed | boolean | |
return | self |
public setUsingCache ( boolean $usingCache ) : self | ||
$usingCache | boolean | |
return | self |