mirror of https://github.com/rectorphp/rector.git
fix cs
This commit is contained in:
parent
5ec341e68f
commit
a80d125877
|
@ -89,19 +89,6 @@ final class ArgumentReplacerRecipe
|
|||
);
|
||||
}
|
||||
|
||||
private static function ensureHasKey(array $data, string $key): void
|
||||
{
|
||||
if (isset($data[$key])) {
|
||||
return;
|
||||
}
|
||||
|
||||
throw new InvalidRectorConfigurationException(sprintf(
|
||||
'Configuration for "%s" Rector should have "%s" key, but is missing.',
|
||||
ArgumentReplacerRector::class,
|
||||
$key
|
||||
));
|
||||
}
|
||||
|
||||
public function getClass(): string
|
||||
{
|
||||
return $this->class;
|
||||
|
@ -138,6 +125,22 @@ final class ArgumentReplacerRecipe
|
|||
return $this->replaceMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed[] $data
|
||||
*/
|
||||
private static function ensureHasKey(array $data, string $key): void
|
||||
{
|
||||
if (isset($data[$key])) {
|
||||
return;
|
||||
}
|
||||
|
||||
throw new InvalidRectorConfigurationException(sprintf(
|
||||
'Configuration for "%s" Rector should have "%s" key, but is missing.',
|
||||
ArgumentReplacerRector::class,
|
||||
$key
|
||||
));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed[] $data
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue