Skip to content

Commit

Permalink
[1.x] Enable Parallel Execution (#272)
Browse files Browse the repository at this point in the history
* Run in parallel

* Bump dependencies
  • Loading branch information
Jubeki committed May 16, 2024
1 parent 8674245 commit ae7de76
Show file tree
Hide file tree
Showing 3 changed files with 738 additions and 82 deletions.
2 changes: 2 additions & 0 deletions app/Factories/ConfigurationFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use App\Repositories\ConfigurationJsonRepository;
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
use PhpCsFixer\Runner\Parallel\ParallelConfigFactory;

class ConfigurationFactory
{
Expand Down Expand Up @@ -42,6 +43,7 @@ class ConfigurationFactory
public static function preset($rules)
{
return (new Config())
->setParallelConfig(ParallelConfigFactory::detect())
->setFinder(self::finder())
->setRules(array_merge($rules, resolve(ConfigurationJsonRepository::class)->rules()))
->setRiskyAllowed(true)
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
"ext-xml": "*"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.54.0",
"illuminate/view": "^10.48.8",
"larastan/larastan": "^2.9.5",
"laravel-zero/framework": "^10.3.0",
"mockery/mockery": "^1.6.11",
"friendsofphp/php-cs-fixer": "^3.57.1",
"illuminate/view": "^10.48.10",
"larastan/larastan": "^2.9.6",
"laravel-zero/framework": "^10.4.0",
"mockery/mockery": "^1.6.12",
"nunomaduro/termwind": "^1.15.1",
"pestphp/pest": "^2.34.7"
},
Expand Down
Loading

0 comments on commit ae7de76

Please sign in to comment.