-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrector.php
More file actions
34 lines (30 loc) · 1.15 KB
/
Copy pathrector.php
File metadata and controls
34 lines (30 loc) · 1.15 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
<?php
use Rector\CodeQuality\Rector\Empty_\SimplifyEmptyCheckOnEmptyArrayRector;
use Rector\CodeQuality\Rector\If_\SimplifyIfReturnBoolRector;
use Rector\CodingStyle\Rector\Catch_\CatchExceptionNameMatchingTypeRector;
use Rector\CodingStyle\Rector\Use_\SeparateMultiUseImportsRector;
use Rector\Config\RectorConfig;
use Rector\PHPUnit\CodeQuality\Rector\StmtsAwareInterface\DeclareStrictTypesTestsRector;
use Rector\TypeDeclaration\Rector\StmtsAwareInterface\SafeDeclareStrictTypesRector;
return RectorConfig::configure()
->withPaths([
__DIR__ . '/src',
__DIR__ . '/tests',
])
->withPhpSets()
->withPreparedSets(
codeQuality: true, codingStyle: true, deadCode: true,
phpunitCodeQuality: true,
)
->withImportNames()
->withSkip([
// Code quality set
SafeDeclareStrictTypesRector::class,
SimplifyEmptyCheckOnEmptyArrayRector::class,
SimplifyIfReturnBoolRector::class,
// Coding style set
CatchExceptionNameMatchingTypeRector::class,
SeparateMultiUseImportsRector::class,
// PHPUnit code quality set
DeclareStrictTypesTestsRector::class,
]);