forked from Torann/laravel-geoip
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrector.php
29 lines (25 loc) · 1.06 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
<?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
return RectorConfig::configure()
->withPaths([
__DIR__ . '/src',
__DIR__ . '/tests',
])
->withSets([
\Rector\Set\ValueObject\LevelSetList::UP_TO_PHP_81,
\Rector\Set\ValueObject\SetList::CODE_QUALITY,
\Rector\Set\ValueObject\SetList::CODING_STYLE,
\Rector\Set\ValueObject\SetList::TYPE_DECLARATION,
\Rector\Set\ValueObject\SetList::PRIVATIZATION,
\Rector\PHPUnit\Set\PHPUnitSetList::PHPUNIT_CODE_QUALITY,
\Rector\PHPUnit\Set\PHPUnitSetList::PHPUNIT_100,
])
->withRules([
\Rector\Php55\Rector\String_\StringClassNameToClassConstantRector::class,
\Rector\CodingStyle\Rector\ArrowFunction\StaticArrowFunctionRector::class,
\Rector\CodingStyle\Rector\Catch_\CatchExceptionNameMatchingTypeRector::class,
\Rector\CodingStyle\Rector\ClassMethod\MakeInheritedMethodVisibilitySameAsParentRector::class,
\Rector\CodingStyle\Rector\Closure\StaticClosureRector::class,
])
->withParallel();