-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrector.php
More file actions
50 lines (47 loc) · 1.28 KB
/
rector.php
File metadata and controls
50 lines (47 loc) · 1.28 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
declare(strict_types=1);
use Rector\CodeQuality\Rector\If_\ShortenElseIfRector;
use Rector\CodingStyle\Rector\FuncCall\CountArrayToEmptyArrayComparisonRector;
use Rector\CodingStyle\Rector\Stmt\NewlineAfterStatementRector;
use Rector\Config\RectorConfig;
use Rector\Strict\Rector\Ternary\DisallowedShortTernaryRuleFixerRector;
return RectorConfig::configure()
->withPreparedSets(
deadCode: true,
codeQuality: true,
codingStyle: true,
typeDeclarations: true,
privatization: true,
instanceOf: true,
earlyReturn: true,
strictBooleans: true,
)
->withAttributesSets(
symfony: true,
doctrine: true,
mongoDb: true,
gedmo: true,
phpunit: true,
fosRest: true,
jms: true,
sensiolabs: true,
)
->withPhpSets()
->withPaths([
__DIR__ . '/src',
])
->withComposerBased(
twig: true,
doctrine: true,
phpunit: true,
symfony: true,
netteUtils: true,
laravel: true
)
->withRootFiles()
->withSkip([
CountArrayToEmptyArrayComparisonRector::class,
ShortenElseIfRector::class,
NewlineAfterStatementRector::class,
DisallowedShortTernaryRuleFixerRector::class,
]);