/** * @param Fixer|null $fixer * @param ConfigInterface|null $config */ public function __construct(Fixer $fixer = null, ConfigInterface $config = null) { $this->eventDispatcher = new EventDispatcher(); $this->stopwatch = new Stopwatch(); $this->fixer = $fixer ?: new Fixer(); $this->fixer->registerBuiltInFixers(); $this->fixer->registerBuiltInConfigs(); $this->fixer->setStopwatch($this->stopwatch); $this->defaultConfig = $config ?: new Config(); parent::__construct(); }