Repository navigation
Expand file tree
/
Copy pathrector.php
More file actions
40 lines (38 loc) · 1.53 KB
/
Copy pathrector.php
File metadata and controls
40 lines (38 loc) · 1.53 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
<?php
use Rector\CodeQuality\Rector\BooleanOr\RepeatedOrEqualToInArrayRector;
use Rector\CodeQuality\Rector\FunctionLike\SimplifyUselessVariableRector;
use Rector\CodingStyle\Rector\Catch_\CatchExceptionNameMatchingTypeRector;
use Rector\CodingStyle\Rector\ClassLike\NewlineBetweenClassLikeStmtsRector;
use Rector\CodingStyle\Rector\ClassMethod\NewlineBeforeNewAssignSetRector;
use Rector\CodingStyle\Rector\String_\SimplifyQuoteEscapeRector;
use Rector\Config\RectorConfig;
use Rector\DeadCode\Rector\Assign\RemoveUnusedVariableAssignRector;
use Rector\EarlyReturn\Rector\If_\RemoveAlwaysElseRector;
use Rector\Set\ValueObject\SetList;
use Rector\TypeDeclaration\Rector\StmtsAwareInterface\SafeDeclareStrictTypesRector;
return RectorConfig::configure()
->withPaths([
__DIR__ . '/src',
])
->withPhpSets()
->withComposerBased(phpunit: true)
->withSets([
SetList::CODE_QUALITY,
SetList::CODING_STYLE,
SetList::DEAD_CODE,
SetList::PRIVATIZATION,
SetList::TYPE_DECLARATION,
])
->withSkip([
SimplifyUselessVariableRector::class,
RemoveUnusedVariableAssignRector::class,
SafeDeclareStrictTypesRector::class,
RepeatedOrEqualToInArrayRector::class,
CatchExceptionNameMatchingTypeRector::class,
SimplifyQuoteEscapeRector::class,
RemoveAlwaysElseRector::class,
NewlineBetweenClassLikeStmtsRector::class,
NewlineBeforeNewAssignSetRector::class,
__DIR__ . '/src/Model/*',
__DIR__ . '/src/Table/Generated/*',
]);