PHP Class PhpCsFixer\Console\ConfigurationResolver

Author: Fabien Potencier ([email protected])
Author: Katsuhiro Ogawa ([email protected])
Author: Dariusz Rumiński ([email protected])
Afficher le fichier Open project: friendsofphp/php-cs-fixer Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( PhpCsFixer\ConfigInterface $config, array $options, string $cwd ) ConfigurationResolver constructor.
getCacheFile ( ) : string | null
getCacheManager ( ) : PhpCsFixer\Cache\CacheManagerInterface
getConfig ( ) : PhpCsFixer\ConfigInterface Returns config instance.
getConfigFile ( ) : null | string Returns config file path.
getDiffer ( ) : PhpCsFixer\Differ\DifferInterface
getFinder ( )
getFixers ( ) : PhpCsFixer\Fixer\FixerInterface[] Returns fixers.
getLinter ( ) : PhpCsFixer\Linter\LinterInterface
getPath ( ) : string[] Returns path.
getProgress ( ) : boolean Returns progress flag.
getReporter ( ) : PhpCsFixer\Report\ReporterInterface
getRiskyAllowed ( ) : boolean
getRules ( ) : array Returns rules.
getUsingCache ( ) : boolean
isDryRun ( ) : boolean Returns dry-run flag.

Private Methods

Méthode Description
computeConfigFiles ( ) : string[] Compute file candidates for config file.
getFormat ( ) : string
getRuleSet ( )
isStdIn ( ) : boolean
iterableToTraversable ( iterable $iterable ) : Traversable
parseRules ( ) : array Compute rules.
resolveFinder ( ) Apply path on config instance.
setOption ( string $name, mixed $value ) Set option that will be resolved.

Method Details

__construct() public méthode

ConfigurationResolver constructor.
public __construct ( PhpCsFixer\ConfigInterface $config, array $options, string $cwd )
$config PhpCsFixer\ConfigInterface
$options array
$cwd string

getCacheFile() public méthode

public getCacheFile ( ) : string | null
Résultat string | null

getCacheManager() public méthode

public getCacheManager ( ) : PhpCsFixer\Cache\CacheManagerInterface
Résultat PhpCsFixer\Cache\CacheManagerInterface

getConfig() public méthode

Returns config instance.
public getConfig ( ) : PhpCsFixer\ConfigInterface
Résultat PhpCsFixer\ConfigInterface

getConfigFile() public méthode

Returns config file path.
public getConfigFile ( ) : null | string
Résultat null | string

getDiffer() public méthode

public getDiffer ( ) : PhpCsFixer\Differ\DifferInterface
Résultat PhpCsFixer\Differ\DifferInterface

getFinder() public méthode

public getFinder ( )

getFixers() public méthode

Returns fixers.
public getFixers ( ) : PhpCsFixer\Fixer\FixerInterface[]
Résultat PhpCsFixer\Fixer\FixerInterface[] An array of FixerInterface

getLinter() public méthode

public getLinter ( ) : PhpCsFixer\Linter\LinterInterface
Résultat PhpCsFixer\Linter\LinterInterface

getPath() public méthode

Returns path.
public getPath ( ) : string[]
Résultat string[]

getProgress() public méthode

Returns progress flag.
public getProgress ( ) : boolean
Résultat boolean

getReporter() public méthode

public getReporter ( ) : PhpCsFixer\Report\ReporterInterface
Résultat PhpCsFixer\Report\ReporterInterface

getRiskyAllowed() public méthode

public getRiskyAllowed ( ) : boolean
Résultat boolean

getRules() public méthode

Returns rules.
public getRules ( ) : array
Résultat array

getUsingCache() public méthode

public getUsingCache ( ) : boolean
Résultat boolean

isDryRun() public méthode

Returns dry-run flag.
public isDryRun ( ) : boolean
Résultat boolean