Skip to content

Commit

Permalink
chore: PhpUnitDataProviderNameFixer - follow config creation pattern (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
keradus authored May 3, 2024
1 parent 9136411 commit 0d262a7
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/Fixer/PhpUnit/PhpUnitDataProviderNameFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,17 @@ public function dataProviderUsedAsSecondInTest() {}
);
}

public function getConfigurationDefinition(): FixerConfigurationResolverInterface
public function getPriority(): int
{
return 0;
}

public function isRisky(): bool
{
return true;
}

protected function createConfigurationDefinition(): FixerConfigurationResolverInterface
{
return new FixerConfigurationResolver([
(new FixerOptionBuilder('prefix', 'Prefix that replaces "test".'))
Expand All @@ -115,16 +125,6 @@ public function getConfigurationDefinition(): FixerConfigurationResolverInterfac
]);
}

public function getPriority(): int
{
return 0;
}

public function isRisky(): bool
{
return true;
}

protected function applyPhpUnitClassFix(Tokens $tokens, int $startIndex, int $endIndex): void
{
$dataProviderAnalyzer = new DataProviderAnalyzer();
Expand Down

0 comments on commit 0d262a7

Please sign in to comment.