ConfigInterface interface
PhpCsFixer\ConfigInterface
Defined in D:/WEBISTERS/projects/app/vendor/friendsofphp/php-cs-fixer/src/ConfigInterface.php
Constants #
Methods #
- getCacheFile()
- Returns the path to the cache file.
- getCustomFixers()
- Returns the custom fixers to use.
- getFinder()
- Returns files to scan.
- getFormat()
- -
- getHideProgress()
- Returns true if progress should be hidden.
- getIndent()
- -
- getLineEnding()
- -
- getName()
- Returns the name of the configuration.
- getPhpExecutable()
- Get configured PHP executable, if any.
- getRiskyAllowed()
- Check if it is allowed to run risky fixers.
- getRules()
- Get rules.
- getUsingCache()
- Returns true if caching should be enabled.
- registerCustomFixers()
- Adds a suite of custom fixers.
- setCacheFile()
- Sets the path to the cache file.
- setFinder()
- -
- setFormat()
- -
- setHideProgress()
- -
- setIndent()
- -
- setLineEnding()
- -
- setPhpExecutable()
- Set PHP executable.
- setRiskyAllowed()
- Set if it is allowed to run risky fixers.
- setRules()
- Set rules.
- setUsingCache()
- -
getCacheFile()
Returns the path to the cache file.
getCustomFixers()
Returns the custom fixers to use.
getFinder()
Returns files to scan.
getFormat()
getHideProgress()
Returns true if progress should be hidden.
getIndent()
getLineEnding()
getName()
Returns the name of the configuration.
The name must be all lowercase and without any spaces.
getPhpExecutable()
Get configured PHP executable, if any.
getRiskyAllowed()
Check if it is allowed to run risky fixers.
getRules()
Get rules.
Keys of array are names of fixers/sets, values are true/false.
getUsingCache()
Returns true if caching should be enabled.
registerCustomFixers()
Adds a suite of custom fixers.
Name of custom fixer should follow `VendorName/rule_name` convention.
- iterable $fixers
setCacheFile()
Sets the path to the cache file.
- string $cacheFile
setFinder()
- iterable $finder
setFormat()
- string $format
setHideProgress()
- bool $hideProgress
setIndent()
- string $indent
setLineEnding()
- string $lineEnding
setPhpExecutable()
Set PHP executable.
- ?string $phpExecutable
setRiskyAllowed()
Set if it is allowed to run risky fixers.
- bool $isRiskyAllowed
setRules()
Set rules.
Keys of array are names of fixers or sets.
Value for set must be bool (turn it on or off).
Value for fixer may be bool (turn it on or off) or array of configuration
(turn it on and contains configuration for FixerInterface::configure method).
- array $rules
setUsingCache()
- bool $usingCache