Skip to content

Commit

Permalink
apply rector rule on all files
Browse files Browse the repository at this point in the history
  • Loading branch information
JoMessina committed Jan 17, 2024
1 parent 0788bc0 commit a92594b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 17 deletions.
14 changes: 1 addition & 13 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,5 @@
SymfonyLevelSetList::UP_TO_SYMFONY_60,
]);

$rectorConfig->skip([StringClassNameToClassConstantRector::class => [
__DIR__ . '/src/Plugin/Filtering/Builder/Drop.php',
__DIR__ . '/src/Plugin/Filtering/Builder/Reject.php',
__DIR__ . '/src/Plugin/SFTP/Builder/Extractor.php',
__DIR__ . '/src/Plugin/SFTP/Builder/Loader.php',
__DIR__ . '/src/Plugin/Batching/Builder/Fork.php',
__DIR__ . '/src/Plugin/Batching/Builder/Merge.php',
__DIR__ . '/src/Feature/Rejection/Builder/RabbitMQBuilder.php',
__DIR__ . '/src/Feature/Rejection/Builder/Rejection.php',
__DIR__ . '/src/Pipeline/Extractor.php',
__DIR__ . '/src/Pipeline/Loader.php',
__DIR__ . '/src/Pipeline/Transformer.php',
]]);
$rectorConfig->skip([StringClassNameToClassConstantRector::class]);
};
3 changes: 2 additions & 1 deletion src/Pipeline/Extractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ public function __construct(
private ?string $plugin,
private ?string $key,
private ExpressionLanguage $interpreter = new Satellite\ExpressionLanguage()
) {}
) {
}

public function __invoke(array $config, Pipeline $pipeline, StepRepositoryInterface $repository): void
{
Expand Down
3 changes: 2 additions & 1 deletion src/Pipeline/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ public function __construct(
private ?string $plugin,
private ?string $key,
private ExpressionLanguage $interpreter = new Satellite\ExpressionLanguage()
) {}
) {
}

public function __invoke(array $config, Pipeline $pipeline, StepRepositoryInterface $repository): void
{
Expand Down
3 changes: 2 additions & 1 deletion src/Pipeline/Transformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ public function __construct(
private ?string $plugin,
private ?string $key,
private ExpressionLanguage $interpreter = new Satellite\ExpressionLanguage()
) {}
) {
}

public function __invoke(array $config, Pipeline $pipeline, StepRepositoryInterface $repository): void
{
Expand Down
2 changes: 1 addition & 1 deletion src/Plugin/Batching/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function __construct(private Fork|Merge $builder)
{
}

public function addFiles(Packaging\FileInterface|Packaging\DirectoryInterface ...$files): self
public function addFiles(Packaging\DirectoryInterface|Packaging\FileInterface ...$files): self
{
return $this;
}
Expand Down

0 comments on commit a92594b

Please sign in to comment.