Skip to content

Commit 62179e0

Browse files
authored
Run PHP-CS-Fixer in parallel (#9739)
* Run PHP-CS-Fixer in parallel * Use use, just like the rest of the code
1 parent 8386db4 commit 62179e0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.php-cs-fixer.dist.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
use PhpCsFixer\Config;
44
use PhpCsFixer\Finder;
5+
use PhpCsFixer\Runner\Parallel\ParallelConfigFactory;
56

67
$finder = Finder::create()
78
->in([__DIR__])
@@ -14,6 +15,7 @@
1415
->name('*.sh');
1516

1617
return (new Config())
18+
->setParallelConfig(ParallelConfigFactory::detect())
1719
->setRiskyAllowed(true)
1820
->setRules([
1921
'@PhpCsFixer' => true,

0 commit comments

Comments
 (0)