diff --git a/rector.php b/rector.php new file mode 100644 index 00000000..3069da26 --- /dev/null +++ b/rector.php @@ -0,0 +1,31 @@ +parameters(); + + $parameters->set(Option::AUTO_IMPORT_NAMES, true); + + $parameters->set(Option::SETS, [ + SetList::ACTION_INJECTION_TO_CONSTRUCTOR_INJECTION, + SetList::ARRAY_STR_FUNCTIONS_TO_STATIC_CALL, + SetList::CODE_QUALITY, + SetList::PHP_53, + SetList::PHP_54, + SetList::PHP_56, + SetList::PHP_70, + SetList::PHP_71, + SetList::PHP_72, + SetList::PHP_73, + SetList::PHPSTAN, + SetList::PHPUNIT_CODE_QUALITY, + SetList::SOLID, + ]); + + $parameters->set(Option::PATHS, [__DIR__.'/src', __DIR__.'/tests']); +}; diff --git a/rector.yaml b/rector.yaml deleted file mode 100644 index bf3cd023..00000000 --- a/rector.yaml +++ /dev/null @@ -1,18 +0,0 @@ -# rector.yaml -parameters: - sets: - - 'action-injection-to-constructor-injection' - - 'array-str-functions-to-static-call' - - 'phpstan' - - 'phpunit-code-quality' - - 'solid' - - 'doctrine-code-quality' - - 'code-quality' - - 'php53' - - 'php54' - - 'php55' - - 'php56' - - 'php70' - - 'php71' - - 'php72' - - 'php73'