D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
PHP-Antimalware-Scanner
/
bin
/
Filename :
pre-commit
back
Copy
#!/usr/bin/env bash # Variables # shellcheck disable=SC2164 CURRENT_DIRECTORY="$(cd "$(dirname "$0")"; pwd -P)" PROJECT_DIRECTORY="$(dirname "${CURRENT_DIRECTORY}")" # shellcheck disable=SC2164 cd "${PROJECT_DIRECTORY}"; # Check PHP Lint sh "$CURRENT_DIRECTORY/lint" [ $? -eq 0 ] || exit 1 # Run php-cs-fixer php "$CURRENT_DIRECTORY/composer" fix-cs