21 lines
445 B
PHP
21 lines
445 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Rector\Config\RectorConfig;
|
|
use Rector\Set\ValueObject\SetList;
|
|
|
|
return RectorConfig::configure()
|
|
->withPaths([
|
|
__DIR__ . '/src',
|
|
__DIR__ . '/tests',
|
|
])
|
|
->withPhpSets()
|
|
->withSets([
|
|
SetList::CODE_QUALITY,
|
|
SetList::DEAD_CODE,
|
|
SetList::TYPE_DECLARATION,
|
|
SetList::EARLY_RETURN,
|
|
SetList::PRIVATIZATION,
|
|
SetList::INSTANCEOF,
|
|
]);
|