Skip to content

Commit 2f000fa

Browse files
committed
Run php-cs-fixer in multiple threads.
1 parent db51ca2 commit 2f000fa

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.php-cs-fixer.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
<?php
22

3-
$finder = PhpCsFixer\Finder::create()
3+
use PhpCsFixer\Finder as PhpCsFixerFinder;
4+
use PhpCsFixer\Config as PhpCsFixerConfig;
5+
use PhpCsFixer\Runner\Parallel\ParallelConfigFactory;
6+
7+
$finder = PhpCsFixerFinder::create()
48
->in(__DIR__)
59
->exclude('vendor')
610
->exclude('vendor-bin')
711
;
812

9-
$config = new PhpCsFixer\Config();
13+
$config = new PhpCsFixerConfig();
1014
return $config
15+
->setParallelConfig(ParallelConfigFactory::detect())
1116
->setRules([
1217
'@PER-CS' => true,
1318
'binary_operator_spaces' => ['default' => 'at_least_single_space', 'operators' => ['=>' => 'align']],

0 commit comments

Comments
 (0)