One Hat Cyber Team
Your IP :
216.73.216.115
Server IP :
194.44.31.54
Server :
Linux zen.imath.kiev.ua 4.18.0-553.77.1.el8_10.x86_64 #1 SMP Fri Oct 3 14:30:23 UTC 2025 x86_64
Server Software :
Apache/2.4.37 (Rocky Linux) OpenSSL/1.1.1k
PHP Version :
5.6.40
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
ojs-nosc
/
lib
/
pkp
/
tools
/
View File Name :
pre-commit.sh
#!/bin/bash # @file tools/pre-commit.sh # # Copyright (c) 2014-2021 Simon Fraser University # Copyright (c) 2010-2021 John Willinsky # Distributed under the GNU GPL v3. For full terms see the file docs/COPYING. # # A pre-commit hook to run php-cs-fixer on committed changes # # Run php-cs-fixer on all committed changes git diff --name-only --diff-filter=d --cached | xargs ./lib/vendor/bin/php-cs-fixer fix --allow-risky=yes --path-mode=intersection --config=.php-cs-fixer.php -q # Run php-cs-fixer again with --dry-run to throw an error if any files could not be automatically formatted git diff --name-only --diff-filter=d --cached | xargs ./lib/vendor/bin/php-cs-fixer fix --allow-risky=yes --dry-run --path-mode=intersection --config=.php-cs-fixer.php if [ $? -eq 0 ] then echo -e "\n\e[32m✔ Files formatted successfully.\e[0m\n" git diff --name-only --diff-filter=d --cached | xargs git add -u else echo -e "\n\e[31m✘ Commit aborted. Files could not be formatted.\e[0m\n" exit 1 fi