Skip to content

Commit

Permalink
Merge pull request #1 from Hi-Folks/feature-modernize-codebase
Browse files Browse the repository at this point in the history
Feature modernize codebase
  • Loading branch information
roberto-butti authored Dec 30, 2023
2 parents 4bf45bb + 467e0a9 commit 5d16816
Show file tree
Hide file tree
Showing 35 changed files with 1,149 additions and 869 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,6 @@ legacy/vendor
legacy/vendor/*

testData
testData/*
testData/*

/ExampleBook*.epub
9 changes: 7 additions & 2 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,18 @@
use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector;
use Rector\Config\RectorConfig;
use Rector\Set\ValueObject\LevelSetList;
use Rector\Set\ValueObject\SetList;

return static function (RectorConfig $rectorConfig): void {
$rectorConfig->paths([
__DIR__ . '/src',
]);
$rectorConfig->rule(InlineConstructorDefaultToPropertyRector::class);
$rectorConfig->sets([
LevelSetList::UP_TO_PHP_82
$rectorConfig->sets([SetList::CODE_QUALITY,
SetList::DEAD_CODE,
SetList::EARLY_RETURN,
SetList::TYPE_DECLARATION,
LevelSetList::UP_TO_PHP_81,
SetList::CODING_STYLE
]);
};
Loading

0 comments on commit 5d16816

Please sign in to comment.