saufen/rector.php
2025-05-31 21:53:52 +02:00

24 lines
501 B
PHP

<?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
return RectorConfig::configure()
->withPaths([
__DIR__ . '/public',
__DIR__ . '/src',
__DIR__ . '/config',
__DIR__ . '/tests',
__DIR__ . '/bin',
])
->withRootFiles()
->withImportNames(removeUnusedImports: true)
->withPhpSets()
->withPreparedSets(
codeQuality: true,
typeDeclarations: true,
earlyReturn: true,
strictBooleans: true,
)
;