Skip to content

Commit 0669a8a

Browse files
committed
fix path
1 parent 9c0f108 commit 0669a8a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pre_commit_hooks/php-cbf.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ phpcbf_local_exec="phpcbf.phar"
2424
phpcbf_command="php $phpcbf_local_exec"
2525

2626
# Check vendor/bin/phpcbf
27-
phpcbf_vendor_command="php vendor/bin/phpcbf"
27+
phpcbf_vendor_command="vendor/bin/phpcbf"
2828
phpcbf_global_command="phpcbf"
2929
if [ -f "$phpcbf_vendor_command" ]; then
30-
phpcbf_command=$phpcbf_vendor_command
30+
phpcbf_command="php $phpcbf_vendor_command"
3131
else
3232
if hash phpcbf 2>/dev/null; then
3333
phpcbf_command=$phpcbf_global_command

pre_commit_hooks/php-cs.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ phpcs_local_exec="phpcs.phar"
2424
phpcs_command="php $phpcs_local_exec"
2525

2626
# Check vendor/bin/phpcs
27-
phpcs_vendor_command="php vendor/bin/phpcs"
27+
phpcs_vendor_command="vendor/bin/phpcs"
2828
phpcs_global_command="phpcs"
2929

3030
if [ -f "$phpcs_vendor_command" ]; then
31-
phpcs_command=$phpcs_vendor_command
31+
phpcs_command="php $phpcs_vendor_command"
3232
elif type -P 'phpcs'; then
3333
phpcs_command='phpcs'
3434
elif type -P 'phpcs.phar'; then

0 commit comments

Comments
 (0)