Skip to content

Commit

Permalink
Merge pull request #166 from tighten/drift/support-phpcs-parallel
Browse files Browse the repository at this point in the history
Add support for PHP CS Fixer running in parallel
  • Loading branch information
driftingly authored Nov 22, 2024
2 parents 4fcb425 + 2bbc23e commit 74b38f7
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 38 deletions.
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ To update dependencies to latest:

```bash
# Production
composer require friendsofphp/php-cs-fixer laravel/pint squizlabs/php_codesniffer tightenco/tlint --dev
composer require friendsofphp/php-cs-fixer laravel-zero/framework laravel/pint squizlabs/php_codesniffer tightenco/tlint --dev

# Development
COMPOSER=composer-dev.json composer require friendsofphp/php-cs-fixer laravel/pint squizlabs/php_codesniffer tightenco/tlint --dev
COMPOSER=composer-dev.json composer require friendsofphp/php-cs-fixer laravel-zero/framework laravel/pint squizlabs/php_codesniffer tightenco/tlint --dev
```

## PHPStan
Expand Down
2 changes: 1 addition & 1 deletion composer-dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"rector/rector": "^1.1",
"spatie/invade": "^1.1",
"spatie/laravel-ray": "^1.36",
"squizlabs/php_codesniffer": "^3.10",
"squizlabs/php_codesniffer": "^3.11",
"tightenco/tlint": "^9.3"
},
"autoload": {
Expand Down
34 changes: 17 additions & 17 deletions composer-dev.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "52942af85f10733b6b26de8953d1771e",
"content-hash": "685728a7f7d57e1e2200a00a81b49f0d",
"packages": [],
"packages-dev": [
{
Expand Down Expand Up @@ -3019,16 +3019,16 @@
},
{
"name": "laravel-zero/framework",
"version": "v11.0.1",
"version": "v11.0.2",
"source": {
"type": "git",
"url": "https://github.com/laravel-zero/framework.git",
"reference": "882c3064e3b89483f2e51deadb6cc71df92297cf"
"reference": "f9b77723c5d893c35548cf018ce7a25e75a86c69"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/laravel-zero/framework/zipball/882c3064e3b89483f2e51deadb6cc71df92297cf",
"reference": "882c3064e3b89483f2e51deadb6cc71df92297cf",
"url": "https://api.github.com/repos/laravel-zero/framework/zipball/f9b77723c5d893c35548cf018ce7a25e75a86c69",
"reference": "f9b77723c5d893c35548cf018ce7a25e75a86c69",
"shasum": ""
},
"require": {
Expand All @@ -3047,7 +3047,7 @@
"illuminate/support": "^11.5.0",
"illuminate/testing": "^11.5.0",
"laravel-zero/foundation": "^11.5.0",
"laravel/prompts": "^0.1.20",
"laravel/prompts": "^0.1.20 || ^0.2 || ^0.3",
"league/flysystem": "^3.27.0",
"nunomaduro/collision": "^8.1.1",
"nunomaduro/laravel-console-summary": "^1.12.1",
Expand Down Expand Up @@ -3131,20 +3131,20 @@
"type": "github"
}
],
"time": "2024-04-25T10:17:42+00:00"
"time": "2024-10-08T13:59:03+00:00"
},
{
"name": "laravel/pint",
"version": "v1.18.1",
"version": "v1.18.2",
"source": {
"type": "git",
"url": "https://github.com/laravel/pint.git",
"reference": "35c00c05ec43e6b46d295efc0f4386ceb30d50d9"
"reference": "f55daaf7eb6c2f49ddf6702fb42e3091c64d8a64"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/laravel/pint/zipball/35c00c05ec43e6b46d295efc0f4386ceb30d50d9",
"reference": "35c00c05ec43e6b46d295efc0f4386ceb30d50d9",
"url": "https://api.github.com/repos/laravel/pint/zipball/f55daaf7eb6c2f49ddf6702fb42e3091c64d8a64",
"reference": "f55daaf7eb6c2f49ddf6702fb42e3091c64d8a64",
"shasum": ""
},
"require": {
Expand Down Expand Up @@ -3197,7 +3197,7 @@
"issues": "https://github.com/laravel/pint/issues",
"source": "https://github.com/laravel/pint"
},
"time": "2024-09-24T17:22:50+00:00"
"time": "2024-11-20T09:33:46+00:00"
},
{
"name": "laravel/prompts",
Expand Down Expand Up @@ -7963,16 +7963,16 @@
},
{
"name": "squizlabs/php_codesniffer",
"version": "3.10.3",
"version": "3.11.1",
"source": {
"type": "git",
"url": "https://github.com/PHPCSStandards/PHP_CodeSniffer.git",
"reference": "62d32998e820bddc40f99f8251958aed187a5c9c"
"reference": "19473c30efe4f7b3cd42522d0b2e6e7f243c6f87"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/62d32998e820bddc40f99f8251958aed187a5c9c",
"reference": "62d32998e820bddc40f99f8251958aed187a5c9c",
"url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/19473c30efe4f7b3cd42522d0b2e6e7f243c6f87",
"reference": "19473c30efe4f7b3cd42522d0b2e6e7f243c6f87",
"shasum": ""
},
"require": {
Expand Down Expand Up @@ -8039,7 +8039,7 @@
"type": "open_collective"
}
],
"time": "2024-09-18T10:38:58+00:00"
"time": "2024-11-16T12:02:36+00:00"
},
{
"name": "symfony/clock",
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"laravel/pint": "^1.18",
"nunomaduro/termwind": "^2.0",
"spatie/invade": "^1.1",
"squizlabs/php_codesniffer": "^3.10",
"squizlabs/php_codesniffer": "^3.11",
"tightenco/tlint": "^9.3"
},
"autoload": {
Expand Down
34 changes: 17 additions & 17 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions standards/.php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
use App\Fixer\ClassNotation\CustomPhpUnitOrderFixer;
use App\Support\PhpCsFixer;
use PhpCsFixer\Config;
use PhpCsFixer\Runner\Parallel\ParallelConfigFactory;

return (new Config())
->setParallelConfig(ParallelConfigFactory::detect())
->setFinder(PhpCsFixer::getFinder())
->setUsingCache(false)
->registerCustomFixers([
Expand Down

0 comments on commit 74b38f7

Please sign in to comment.