Skip to content

Commit

Permalink
Enable parallel execution with php-cs-fixer. (vufind-org#3968)
Browse files Browse the repository at this point in the history
  • Loading branch information
EreMaijala authored and LuomaJuha committed Oct 1, 2024
1 parent 2150944 commit 2b676f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tests/vufind.php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,5 @@
return $config->setCacheFile($cacheDir . '/.code.cache')
->setRiskyAllowed(true)
->setRules($rules)
->setFinder($finder);
->setFinder($finder)
->setParallelConfig(\PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect());
3 changes: 2 additions & 1 deletion tests/vufind_templates.php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,5 @@
return $config->setCacheFile($cacheDir . '/.template.cache')
->setRiskyAllowed(true)
->setRules($rules)
->setFinder($finder);
->setFinder($finder)
->setParallelConfig(\PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect());

0 comments on commit 2b676f6

Please sign in to comment.