mirror of
https://github.com/OPSnet/Gazelle.git
synced 2026-01-16 18:04:34 -05:00
17 lines
369 B
Bash
Executable File
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
|