Skip to content

Commit 6932ca1

Browse files
committed
Sync tool config
1 parent 4e0f9c4 commit 6932ca1

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

.php-cs-fixer.dist.php

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

3+
use PhpCsFixer\Runner\Parallel\ParallelConfigFactory;
4+
35
$header = <<<EOF
46
(c) Christian Gripp <mail@core23.de>
57
@@ -11,7 +13,8 @@
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,
@@ -41,12 +44,10 @@
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;

phpstan.neon.dist

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@ includes:
44
parameters:
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+

0 commit comments

Comments
 (0)