Skip to content

Commit

Permalink
CS
Browse files Browse the repository at this point in the history
  • Loading branch information
keradus committed Apr 28, 2021
1 parent 6442cad commit 4d53238
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/RuleSet/RuleSetsTest.php
Expand Up @@ -326,12 +326,12 @@ private static function getFixerByName($name)
$fixers = $factory->getFixers();

if (empty($fixers)) {
throw new \RuntimeException("FixerFactory unexpectedly returned empty array.");
throw new \RuntimeException('FixerFactory unexpectedly returned empty array.');
}

$fixer = current($fixers);

if (!$fixer instanceOf AbstractFixer) {
if (!$fixer instanceof AbstractFixer) {
throw new \RuntimeException(sprintf('Fixer class for "%s" rule does not extend "%s".', $name, AbstractFixer::class));
}

Expand Down

0 comments on commit 4d53238

Please sign in to comment.