Skip to content

Commit

Permalink
Add pre-commit hooks to maintain PSR-2 compliance. (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmizzell authored and dafeder committed Jul 31, 2019
1 parent fb1cbe9 commit 235b063
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,18 @@
"ContractsTest\\": "test/"
}
},
"require-dev": {
"phpunit/phpunit": "^7.5"
"require-dev": {
"phpunit/phpunit": "^7.5",
"bugatino/phpcs-git-pre-commit": "dev-master",
"squizlabs/php_codesniffer": "^3.4"
},
"scripts": {
"post-install-cmd": [
"sh ./vendor/bugatino/phpcs-git-pre-commit/src/setup.sh"
],
"post-update-cmd": [
"sh ./vendor/bugatino/phpcs-git-pre-commit/src/setup.sh"
]
},
"license": "GPL-3.0-only",
"authors": [
Expand Down

0 comments on commit 235b063

Please sign in to comment.