Skip to content

Commit 21d73c6

Browse files
committed
Fix code style
1 parent 67939df commit 21d73c6

File tree

202 files changed

+3144
-1599
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

202 files changed

+3144
-1599
lines changed

.github/workflows/check.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: Run test suite
3535
run: composer phpstan
3636

37-
phpcs:
37+
code-style:
3838
runs-on: ubuntu-latest
3939
steps:
4040
- uses: actions/checkout@v4
@@ -63,5 +63,5 @@ jobs:
6363
if: steps.composer-cache.outputs.cache-hit != 'true'
6464
run: composer install --prefer-dist --no-progress
6565

66-
- name: Run PHP_CodeSniffer
67-
run: composer phpcs
66+
- name: Run php-cs-fixer
67+
run: composer check

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
*.phar
33
.phpunit.result.cache
44
docker-compose.override.yml
5+
.php-cs-fixer.cache

.php-cs-fixer.dist.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
$finder = (new PhpCsFixer\Finder())
4+
->in(__DIR__ . '/src')
5+
->in(__DIR__ . '/recipe')
6+
->in(__DIR__ . '/contrib')
7+
->in(__DIR__ . '/tests');
8+
9+
return (new PhpCsFixer\Config())
10+
->setRules([
11+
'@PER-CS' => true,
12+
])
13+
->setFinder($finder);

composer.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
"scripts": {
3434
"test": "pest",
3535
"test:e2e": "pest --config tests/e2e/phpunit-e2e.xml",
36-
"phpcs": "phpcs",
37-
"fix": "phpcbf",
36+
"check": "php-cs-fixer check",
37+
"fix": "php-cs-fixer fix",
3838
"phpstan": "phpstan analyse -c phpstan.neon",
3939
"phpstan:baseline": "@phpstan --generate-baseline tests/phpstan-baseline.neon"
4040
},
@@ -46,12 +46,11 @@
4646
"ext-json": "*"
4747
},
4848
"require-dev": {
49+
"friendsofphp/php-cs-fixer": "^3.64",
4950
"pestphp/pest": "^3.3",
5051
"phpstan/phpstan": "^1.4",
5152
"phpunit/php-code-coverage": "^11.0",
52-
"phpunit/phpunit": "^11.4",
53-
"slevomat/coding-standard": "^8.0",
54-
"squizlabs/php_codesniffer": "^3.5"
53+
"phpunit/phpunit": "^11.4"
5554
},
5655
"config": {
5756
"sort-packages": true,

0 commit comments

Comments
 (0)