Skip to content

Commit

Permalink
[pre-commit-psalm] rename env vars to avoid collisions
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrl-f5 committed Mar 8, 2023
1 parent 2341588 commit f1cd257
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/hooks/pre-commit-phpcs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ then
exit 0
fi

if [ "${ENABLE_PHPCS_AUTOFIX:-0}" == 1 ]
if [ "${CF_COMMIT_PHPCS_AUTOFIX_ENABLED:-0}" == 1 ]
then
# Run fixer and add changes to the commit
make -s phpcs-fix files="${files}"
Expand Down
2 changes: 1 addition & 1 deletion templates/hooks/pre-commit-psalm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

if [ "${ENABLE_PSALM:-1}" != 1 ]
if [ "${CF_COMMIT_PSALM_ENABLED:-1}" != 1 ]
then
echo "pre-commit psalm disabled"
exit 0
Expand Down

0 comments on commit f1cd257

Please sign in to comment.