-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathrector.php
More file actions
43 lines (37 loc) · 771 Bytes
/
rector.php
File metadata and controls
43 lines (37 loc) · 771 Bytes
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
41
42
43
<?php
/**
* Rector configuration
*
* @package Parsely
*/
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\Php54\Rector\Array_\LongArrayToShortArrayRector;
use Rector\Set\ValueObject\LevelSetList;
return static function ( RectorConfig $rector_config ): void {
$rector_config->bootstrapFiles(
array(
__DIR__ . '/vendor/php-stubs/wordpress-stubs/wordpress-stubs.php',
)
);
$rector_config->paths(
array(
__DIR__ . '/src',
__DIR__ . '/tests',
__DIR__ . '/uninstall.php',
__DIR__ . '/wp-parsely.php',
)
);
// Define sets of rules.
$rector_config->sets(
array(
LevelSetList::UP_TO_PHP_72,
)
);
$rector_config->skip(
array(
LongArrayToShortArrayRector::class,
)
);
$rector_config->indent( "\t", 1 );
};