Skip to content

Commit 371f41a

Browse files
committed
add hooks
1 parent 4f643af commit 371f41a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,10 @@
1414
"minimum-stability": "stable",
1515
"require": {
1616
"devchainsrl/phpcs-phpcbf-git-pre-commit": "dev-master"
17+
},
18+
"scripts": {
19+
"install-hooks": ["sh ./vendor/devchainsrl/phpcs-phpcbf-git-pre-commit/src/setup.sh"],
20+
"post-install-cmd": ["@install-hooks"],
21+
"post-update-cmd": ["@install-hooks"]
1722
}
1823
}

0 commit comments

Comments
 (0)