public function __construct(Fixer $fixer = null, ConfigInterface $config = null, ConfigFactory $configFactory = null)
 {
     parent::__construct($fixer, $config);
     if ($configFactory === null) {
         $configFactory = new ConfigFactory();
     }
     $this->configFactory = $configFactory;
 }
Beispiel #2
0
 /**
  * @param Fixer|null $fixer
  * @param ConfigInterface|null $config
  */
 public function __construct(Fixer $fixer = null, ConfigInterface $config = null)
 {
     parent::__construct($fixer, $config ?: new StyleConfig());
     $this->setName('style:fix');
     $this->setDescription('Fixes a directory or a file.');
 }
Beispiel #3
0
 /**
  * @param Fixer $fixer
  */
 public function __construct(Fixer $fixer = null)
 {
     $finder = DefaultFinder::create();
     $finder->append($this->commitedFiles());
     parent::__construct($fixer, Config::create()->finder($finder));
 }