Skip to content

Commit

Permalink
Merge pull request #294 from ergebnis/feature/synchronize
Browse files Browse the repository at this point in the history
Enhancement: Synchronize with ergebnis/php-cs-fixer-config-template
  • Loading branch information
ergebnis-bot authored Dec 11, 2020
2 parents 3bd6934 + 4741819 commit 48659c1
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions test/Unit/RuleSet/AbstractRuleSetTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ final public function testRuleSetDoesNotConfigureRuleSets(): void
));
}

final public function testRuleSetDoesDoNotConfigureRulesThatAreNotBuiltIn(): void
final public function testRuleSetDoesNotConfigureRulesThatAreNotBuiltIn(): void
{
$namesOfRulesThatAreConfiguredAndNotBuiltIn = \array_diff(
self::namesOfRulesThatAreConfigured(),
Expand All @@ -80,7 +80,7 @@ final public function testRuleSetDoesDoNotConfigureRulesThatAreNotBuiltIn(): voi
final public function testRuleSetDoesNotConfigureRulesThatAreDeprecated(): void
{
$namesOfRulesThatAreConfiguredAndDeprecated = \array_intersect(
self::namesOfRulesThatAreDeprecated(),
self::namesOfRulesThatAreBuiltInAndDeprecated(),
self::namesOfRulesThatAreConfigured()
);

Expand All @@ -94,7 +94,7 @@ final public function testRuleSetDoesNotConfigureRulesThatAreDeprecated(): void
final public function testRuleSetConfiguresAllRulesThatAreNotDeprecated(): void
{
$namesOfRulesThatAreNotDeprecatedAndNotConfigured = \array_diff(
self::namesOfRulesThatAreNotDeprecated(),
self::namesOfRulesThatAreBuiltInAndNotDeprecated(),
self::namesOfRulesThatAreConfigured()
);

Expand Down Expand Up @@ -279,12 +279,12 @@ private static function namesOfRulesThatAreConfigured(): array

$ruleSet = new RuleSet\RuleSet($rules);

/** @var array<string, Fixer\FixerInterface> $fixersThatAreConfigured */
$fixersThatAreConfigured = $ruleSet->getRules();
/** @var array<string, bool> $rulesThatAreConfigured */
$rulesThatAreConfigured = $ruleSet->getRules();

\ksort($fixersThatAreConfigured);
\ksort($rulesThatAreConfigured);

return \array_keys($fixersThatAreConfigured);
return \array_keys($rulesThatAreConfigured);
}

/**
Expand All @@ -298,7 +298,7 @@ private static function namesOfRulesThatAreBuiltIn(): array
/**
* @return array<int, string>
*/
private static function namesOfRulesThatAreDeprecated(): array
private static function namesOfRulesThatAreBuiltInAndDeprecated(): array
{
return \array_keys(\array_filter(self::fixersThatAreBuiltIn(), static function (Fixer\FixerInterface $fixer): bool {
return $fixer instanceof Fixer\DeprecatedFixerInterface;
Expand All @@ -308,7 +308,7 @@ private static function namesOfRulesThatAreDeprecated(): array
/**
* @return array<int, string>
*/
private static function namesOfRulesThatAreNotDeprecated(): array
private static function namesOfRulesThatAreBuiltInAndNotDeprecated(): array
{
return \array_keys(\array_filter(self::fixersThatAreBuiltIn(), static function (Fixer\FixerInterface $fixer): bool {
return !$fixer instanceof Fixer\DeprecatedFixerInterface;
Expand Down

0 comments on commit 48659c1

Please sign in to comment.