-
-
Notifications
You must be signed in to change notification settings - Fork 230
/
rector.php
28 lines (24 loc) · 871 Bytes
/
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
<?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\PHPUnit\Set\PHPUnitSetList;
use Rector\Set\ValueObject\SetList;
use RectorLaravel\Set\LaravelLevelSetList;
return static function (RectorConfig $config): void {
$config->parallel();
$config->paths([
__DIR__ . '/src',
__DIR__ . '/tests',
]);
// Define what rule sets will be applied
$config->import(PHPUnitSetList::ANNOTATIONS_TO_ATTRIBUTES);
$config->import(LaravelLevelSetList::UP_TO_LARAVEL_110);
$config->import(PHPUnitSetList::PHPUNIT_100);
$config->import(SetList::STRICT_BOOLEANS);
$config->import(SetList::PRIVATIZATION);
$config->import(SetList::EARLY_RETURN);
$config->import(SetList::INSTANCEOF);
$config->import(SetList::CODE_QUALITY);
$config->import(SetList::DEAD_CODE);
$config->import(SetList::PHP_82);
};