File tree Expand file tree Collapse file tree 2 files changed +12
-7
lines changed
Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 11<?php
22
3+ use PhpCsFixer \Runner \Parallel \ParallelConfigFactory ;
4+
35$ header = <<<EOF
46(c) Christian Gripp <mail@core23.de>
57
1113 ->in ([ __DIR__ .'/src ' , __DIR__ .'/tests ' ])
1214;
1315
14- $ config = (new PhpCsFixer \Config ())
16+ return (new PhpCsFixer \Config ())
17+ ->setParallelConfig (ParallelConfigFactory::detect ())
1518 ->setRiskyAllowed (true )
1619 ->setRules ([
1720 '@Symfony ' => true ,
4144 ],
4245 'static_lambda ' => true ,
4346 'global_namespace_import ' => [
44- 'import_classes ' => true ,
45- 'import_constants ' => false ,
46- 'import_functions ' => false ,
47+ 'import_classes ' => true ,
48+ 'import_constants ' => false ,
49+ 'import_functions ' => false ,
4750 ],
4851 ])
49- ->setFinder ($ finder )
50- ;
52+ ->setFinder ($ finder );
5153
52- return $ config ;
Original file line number Diff line number Diff line change @@ -4,9 +4,13 @@ includes:
44parameters:
55 level: 8
66
7+ parallel:
8+ maximumNumberOfProcesses: 4
9+
710 paths:
811 - src
912 - tests
1013
1114 bootstrapFiles:
1215 - vendor-bin/tools/vendor/autoload.php
16+
You can’t perform that action at this time.
0 commit comments