private function getFixerClassName()
{
if (null !== $this->fixerClassName) {
return $this->fixerClassName;
}
try {
$fixers = $this->createFixerFactory()->useRuleSet(new RuleSet(array($this->getFixerName() => true)))->getFixers();
} catch (\UnexpectedValueException $e) {
throw new \UnexpectedValueException('Cannot determine fixer class, perhaps you forget to override `getFixerName` or `createFixerFactory` method?');
}
if (1 !== count($fixers)) {
throw new \UnexpectedValueException(sprintf('Determine fixer class should result in one fixer, got "%d". Perhaps you configured the fixer to "false" ?', count($fixers)));
}
$this->fixerClassName = get_class($fixers[0]);
return $this->fixerClassName;
}