-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrector.php
40 lines (37 loc) · 1.23 KB
/
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
35
36
37
38
39
40
<?php
declare(strict_types=1);
use Rector\CodeQuality\Rector\Foreach_\SimplifyForeachToCoalescingRector;
use Rector\CodeQuality\Rector\FuncCall\SingleInArrayToCompareRector;
use Rector\CodingStyle\Rector\FuncCall\CountArrayToEmptyArrayComparisonRector;
use Rector\Config\RectorConfig;
use Rector\Php55\Rector\String_\StringClassNameToClassConstantRector;
use Rector\Php80\Rector\FunctionLike\MixedTypeRector;
return RectorConfig::configure()
->withPhpSets()
->withPreparedSets(
codeQuality: true,
)
->withAttributesSets(
symfony: true,
doctrine: true,
)
->withPaths([
__DIR__ . '/src',
])
->withSkip([
CountArrayToEmptyArrayComparisonRector::class,
StringClassNameToClassConstantRector::class => [
'src/Elastica/Client/ElasticsearchClientFactory.php',
],
MixedTypeRector::class => [
'src/Document/DataObjectNormalizerTrait.php',
'src/Index/IndexInterface.php',
],
SingleInArrayToCompareRector::class => [
'src/Command/NonBundleIndexTrait.php',
],
SimplifyForeachToCoalescingRector::class => [
'src/Repository/IndexRepository.php',
],
])
->withRootFiles();