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 1
1
<?php
2
2
3
+ use PhpCsFixer \Runner \Parallel \ParallelConfigFactory ;
4
+
3
5
$ header = <<<EOF
4
6
(c) Christian Gripp <mail@core23.de>
5
7
11
13
->in ([ __DIR__ .'/src ' , __DIR__ .'/tests ' ])
12
14
;
13
15
14
- $ config = (new PhpCsFixer \Config ())
16
+ return (new PhpCsFixer \Config ())
17
+ ->setParallelConfig (ParallelConfigFactory::detect ())
15
18
->setRiskyAllowed (true )
16
19
->setRules ([
17
20
'@Symfony ' => true ,
41
44
],
42
45
'static_lambda ' => true ,
43
46
'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 ,
47
50
],
48
51
])
49
- ->setFinder ($ finder )
50
- ;
52
+ ->setFinder ($ finder );
51
53
52
- return $ config ;
Original file line number Diff line number Diff line change @@ -4,9 +4,13 @@ includes:
4
4
parameters:
5
5
level: 8
6
6
7
+ parallel:
8
+ maximumNumberOfProcesses: 4
9
+
7
10
paths:
8
11
- src
9
12
- tests
10
13
11
14
bootstrapFiles:
12
15
- vendor-bin/tools/vendor/autoload.php
16
+
You can’t perform that action at this time.
0 commit comments