PhpCsFixer\ConfigInterface::getRules PHP Method

getRules() public method

Keys of array are names of fixers/sets, values are true/false.
public getRules ( ) : array
return array
    public function getRules();

Usage Example

Beispiel #1
0
 /**
  * @param ConfigInterface $config
  * @param bool            $isDryRun
  *
  * @return CacheManagerInterface
  */
 private function createCacheManager(ConfigInterface $config, $isDryRun)
 {
     if ($config->usingCache() && (ToolInfo::isInstalledAsPhar() || ToolInfo::isInstalledByComposer())) {
         return new FileCacheManager(new FileHandler($config->getCacheFile()), new Signature(PHP_VERSION, ToolInfo::getVersion(), $config->usingLinter(), $config->getRules()), $isDryRun);
     }
     return new NullCacheManager();
 }
All Usage Examples Of PhpCsFixer\ConfigInterface::getRules