Files
ops-Gazelle/bin/phpcbf
2023-09-19 13:15:43 +02:00

17 lines
369 B
Bash
Executable File

#!/usr/bin/env bash
# This is a wrapper script around calling vendor/bin/phpcbf as it returns a exit 1
# if it fixes anything, which does not mesh well with CI pipelines.
# See https://github.com/squizlabs/PHP_CodeSniffer/issues/1818#issuecomment-354420927
root=$( dirname $0 )/..
$root/vendor/bin/phpcbf $@
exit=$?
if [[ $exit == 1 ]]; then
exit=0
fi
exit $exit