Skip to content

Commit

Permalink
run deadcode set
Browse files Browse the repository at this point in the history
  • Loading branch information
Nielsvanpach committed Jun 12, 2024
1 parent 6a357b0 commit c9fffe4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 18 deletions.
16 changes: 1 addition & 15 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
return RectorConfig::configure()
->withPaths(['config', 'resources', 'src'])
->withPhpSets(php82: true)
->withPreparedSets(codeQuality: true, typeDeclarations: true)
->withPreparedSets(deadCode: true, codeQuality: true, typeDeclarations: true)
->withSkip([
ReadOnlyPropertyRector::class,
ClosureToArrowFunctionRector::class,
Expand All @@ -31,18 +31,4 @@
CombineIfRector::class,
FlipTypeControlToUseExclusiveTypeRector::class,
ExplicitBoolCompareRector::class,

/**ReturnNeverTypeRector::class,
OptionalParametersAfterRequiredRector::class,
ClosureToArrowFunctionRector::class,
FlipTypeControlToUseExclusiveTypeRector::class,
ExplicitBoolCompareRector::class,
EncapsedStringsToSprintfRector::class,
StaticClosureRector::class,
StaticArrowFunctionRector::class,
UseIncrementAssignRector::class,
PostIncDecToPreIncDecRector::class,
NullableCompareToNullRector::class,
AddArrowFunctionReturnTypeRector::class,
AddClosureVoidReturnTypeWhereNoReturnRector::class,*/
]);
2 changes: 0 additions & 2 deletions src/Commands/FindFilesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,5 @@ protected function handleFoundFile(Collection $fileSearchResults)

$this->comment($fileSearchResult->getAbsolutePath());
});

$this->output;
}
}
2 changes: 1 addition & 1 deletion src/Tasks/Backup/Actions/CreateBackupAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class CreateBackupAction
protected $dispatchOnQueue = true;

/** @var callable|null */
protected $afterBackupModelCreated = null;
protected $afterBackupModelCreated;

public function afterBackupModelCreated(callable $afterBackupModelCreated): self
{
Expand Down

0 comments on commit c9fffe4

Please sign in to comment.