We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7eeddb commit f0d8c95Copy full SHA for f0d8c95
src/stubs/git-pre-commit
@@ -1,3 +1,7 @@
1
#!/bin/sh
2
3
-git diff --diff-filter=d --name-only HEAD | grep ".php$" | xargs ./vendor/bin/phpcs --standard=phpcs.xml
+files=$(git diff --diff-filter=d --name-only HEAD | grep ".php$")
4
+
5
+if [ -n "$files" ] ; then
6
+ ./vendor/bin/phpcs --standard=phpcs.xml $files
7
+fi
0 commit comments