Skip to content

Commit d7769c7

Browse files
authored
cs: Apply PHP-CS-Fixer to the rector.php file (#917)
1 parent 5cac6a7 commit d7769c7

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

.php-cs-fixer.dist.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
'bin/php-scoper',
2929
'.php-cs-fixer.dist.php',
3030
'scoper.inc.php',
31+
'rector.php',
3132
]);
3233

3334
$overriddenRules = [

rector.php

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,29 @@
22

33
declare(strict_types=1);
44

5+
/*
6+
* This file is part of the humbug/php-scoper package.
7+
*
8+
* Copyright (c) 2017 Théo FIDRY <[email protected]>,
9+
* Pádraic Brady <[email protected]>
10+
*
11+
* For the full copyright and license information, please view the LICENSE
12+
* file that was distributed with this source code.
13+
*/
14+
515
use Rector\Config\RectorConfig;
616
use Rector\Set\ValueObject\LevelSetList;
717

818
return static function (RectorConfig $rectorConfig): void {
919
$rectorConfig->paths([
10-
__DIR__ . '/bin/php-scoper',
11-
__DIR__ . '/src',
12-
__DIR__ . '/tests',
20+
__DIR__.'/bin/php-scoper',
21+
__DIR__.'/src',
22+
__DIR__.'/tests',
1323
]);
1424

1525
$rectorConfig->autoloadPaths([
16-
__DIR__ . '/vendor/autoload.php',
17-
__DIR__ . '/vendor-bin/rector/vendor/autoload.php',
26+
__DIR__.'/vendor/autoload.php',
27+
__DIR__.'/vendor-bin/rector/vendor/autoload.php',
1828
]);
1929

2030
$rectorConfig->importNames();

0 commit comments

Comments
 (0)