Skip to content

Commit

Permalink
Add php-cs-fixer with @psr2 ruleset and additional rules for better r…
Browse files Browse the repository at this point in the history
…eadability along with automated file header copyright.

Signed-off-by: Ghazi Triki <[email protected]>
  • Loading branch information
GhaziTriki committed Apr 26, 2024
1 parent 741efe9 commit edd50b3
Show file tree
Hide file tree
Showing 9 changed files with 499 additions and 496 deletions.
2 changes: 2 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"ext-json": "*"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^v3.54.0",
"php-parallel-lint/php-parallel-lint": "^1.3.1",
"phpdocumentor/shim": "^3",
"phpunit/phpunit": "^9.5",
Expand All @@ -36,6 +37,7 @@
}
},
"scripts": {
"cs-fix": "PHP_CS_FIXER_IGNORE_ENV=1 ./vendor/bin/php-cs-fixer fix",
"phpdoc": "vendor/bin/phpdoc",
"phpcs": "vendor/bin/phpcs -sp --colors",
"phpcbf": "vendor/bin/phpcbf -sp",
Expand Down
14 changes: 0 additions & 14 deletions scripts/update-copyright.sh

This file was deleted.

Loading

0 comments on commit edd50b3

Please sign in to comment.