public function configure(array $configuration = null)
{
if (null === $configuration) {
$this->configuration = self::$defaultConfiguration;
return;
}
$this->configuration = array();
foreach ($configuration as $method) {
if (!array_key_exists($method, $this->fixMap)) {
throw new InvalidFixerConfigurationException($this->getName(), sprintf('Unknown configuration method "%s".', $method));
}
$this->configuration[] = $method;
}
}