From b0da15629031d6c469f2ea3e0396f304b6a1648a Mon Sep 17 00:00:00 2001 From: alistair3149 Date: Mon, 30 Dec 2019 19:04:02 -0500 Subject: [PATCH] Force phpcbf to exit with 0 --- bin/phpcbf.sh | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/bin/phpcbf.sh b/bin/phpcbf.sh index a10affd4..7226f7ad 100644 --- a/bin/phpcbf.sh +++ b/bin/phpcbf.sh @@ -1,17 +1,8 @@ -#!/bin/bash -# Wrap phpcbf to turn 1 success exit code into 0 code. +# Force phpcbf to exit with zero # See https://github.com/squizlabs/PHP_CodeSniffer/issues/1818#issuecomment-354420927 root=$( dirname $0 )/.. -$root/vendor/bin/phpcbf $@ -exit=$? +$root/vendor/bin/phpcbf -echo $? - -# Exit code 1 is used to indicate that all fixable errors were fixed correctly. -if [[ $exit == 1 ]]; then - exit=0 -fi - -exit $exit +exit 0