-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrector.php
34 lines (31 loc) · 821 Bytes
/
rector.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
use RectorLaravel\Set\LaravelSetList;
return RectorConfig::configure()
->withPaths([
__DIR__.'/app',
__DIR__.'/bootstrap/*.php',
__DIR__.'/config',
__DIR__.'/public',
__DIR__.'/routes',
__DIR__.'/tests',
__DIR__.'/rector.php',
])
->withPhpSets(php83: true)
->withPreparedSets(
deadCode: true,
codeQuality: true,
codingStyle: true,
typeDeclarations: true,
privatization: true,
naming: true,
instanceOf: true,
earlyReturn: true,
strictBooleans: true
)
->withSets([
LaravelSetList::LARAVEL_100,
LaravelSetList::LARAVEL_CODE_QUALITY,
])
->withImportNames(removeUnusedImports: true);