-
-
Notifications
You must be signed in to change notification settings - Fork 440
Expand file tree
/
Copy pathrector.php
More file actions
23 lines (18 loc) · 713 Bytes
/
rector.php
File metadata and controls
23 lines (18 loc) · 713 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
declare(strict_types=1);
use Rector\Caching\ValueObject\Storage\FileCacheStorage;
use Rector\Config\RectorConfig;
use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPrivateMethodRector;
use Rector\DeadCode\Rector\Property\RemoveUnusedPrivatePropertyRector;
return static function (RectorConfig $rectorConfig): void {
$rectorConfig->parallel(maxNumberOfProcess: 2, jobSize: 1);
$rectorConfig->cacheClass(FileCacheStorage::class);
$rectorConfig->cacheDirectory(sys_get_temp_dir() . '/rector');
$rectorConfig->paths([
__DIR__ . '/src/',
]);
$rectorConfig->rules([
RemoveUnusedPrivatePropertyRector::class,
RemoveUnusedPrivateMethodRector::class,
]);
};