Skip to content

Commit ae7de76

Browse files
authored
[1.x] Enable Parallel Execution (#272)
* Run in parallel * Bump dependencies
1 parent 8674245 commit ae7de76

File tree

3 files changed

+738
-82
lines changed

3 files changed

+738
-82
lines changed

app/Factories/ConfigurationFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use App\Repositories\ConfigurationJsonRepository;
66
use PhpCsFixer\Config;
77
use PhpCsFixer\Finder;
8+
use PhpCsFixer\Runner\Parallel\ParallelConfigFactory;
89

910
class ConfigurationFactory
1011
{
@@ -42,6 +43,7 @@ class ConfigurationFactory
4243
public static function preset($rules)
4344
{
4445
return (new Config())
46+
->setParallelConfig(ParallelConfigFactory::detect())
4547
->setFinder(self::finder())
4648
->setRules(array_merge($rules, resolve(ConfigurationJsonRepository::class)->rules()))
4749
->setRiskyAllowed(true)

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
"ext-xml": "*"
2424
},
2525
"require-dev": {
26-
"friendsofphp/php-cs-fixer": "^3.54.0",
27-
"illuminate/view": "^10.48.8",
28-
"larastan/larastan": "^2.9.5",
29-
"laravel-zero/framework": "^10.3.0",
30-
"mockery/mockery": "^1.6.11",
26+
"friendsofphp/php-cs-fixer": "^3.57.1",
27+
"illuminate/view": "^10.48.10",
28+
"larastan/larastan": "^2.9.6",
29+
"laravel-zero/framework": "^10.4.0",
30+
"mockery/mockery": "^1.6.12",
3131
"nunomaduro/termwind": "^1.15.1",
3232
"pestphp/pest": "^2.34.7"
3333
},

0 commit comments

Comments
 (0)