From bd32330d96b22d1656096d45b568a3495f2043e7 Mon Sep 17 00:00:00 2001 From: yaozm Date: Thu, 6 Jun 2024 16:21:54 +0800 Subject: [PATCH] feat(config): Add parallel config for PHP-CS-Fixer - Added ParallelConfigFactory for parallel execution --- .php-cs-fixer.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php index 7778836..4888944 100644 --- a/.php-cs-fixer.php +++ b/.php-cs-fixer.php @@ -12,6 +12,7 @@ use PhpCsFixer\Config; use PhpCsFixer\Finder; +use PhpCsFixer\Runner\Parallel\ParallelConfigFactory; // oskarstark/php-cs-fixer-ga require_once __DIR__.'/vendor/autoload.php'; @@ -64,6 +65,7 @@ ->setRiskyAllowed(true) ->setUsingCache(false) ->setCacheFile(__DIR__.'/.php-cs-fixer.cache') + ->setParallelConfig(ParallelConfigFactory::detect()) ->registerCustomFixers(new PhpCsFixerCustomFixers\Fixers()) // ->registerCustomFixers(new PedroTroller\CS\Fixer\Fixers()) ->setRules([