Skip to content

Commit e610547

Browse files
committed
Colors and icons
1 parent 19d7c4a commit e610547

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

pre-commit

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -198,23 +198,23 @@ done
198198
##########
199199
if [ "$PHPCS_ACTIVE" == "1" ]; then
200200
echo ""
201-
tput setaf 7; echo " :: PHP CodeSniffer inspection :: "
201+
tput setaf 12; echo " :: PHP CodeSniffer inspection :: "
202202
PHPCS_OUTPUT=$($PHPCS_BIN -s $IGNORE_WARNINGS $PHPCS_CODING_STANDARD $ENCODING $IGNORE $STAGED_FILES)
203203
PHPCS_RETVAL=$?
204204

205205
if [ $PHPCS_RETVAL -ne 0 ]; then
206-
tput setaf 1; echo " \u2718 Issues found: "
206+
tput setaf 1; echo " Issues found: "
207207
tput setaf 7; echo "$PHPCS_OUTPUT"
208208

209209
rm -rf $TMP_STAGING
210210

211211
exit $PHPCS_RETVAL
212212
else
213-
tput setaf 2; echo " \u2714 Inspection is OK!"
213+
tput setaf 2; echo " Inspection is OK!"
214214
fi
215215
else
216216
echo ""
217-
tput setaf 8; echo " :-( PHP CodeSniffer inspection is OFF."
217+
tput setaf 8; echo " PHP CodeSniffer inspection is OFF."
218218
fi
219219

220220

@@ -223,26 +223,26 @@ fi
223223
##########
224224
if [ "$PHPMD_ACTIVE" == "1" ]; then
225225
echo ""
226-
tput setaf 7; echo " :: PHP Mess Detector inspection :: "
226+
tput setaf 12; echo " :: PHP Mess Detector inspection :: "
227227
PHPMD_OUTPUT=$($PHPMD_BIN $STAGED_FILES $PHPMD_OUTPUT $PHPMD_PATTERNS_LIST $PHPMD_SUFFIXES_LIST $PHPMD_EXCLUDE_LIST)
228228
PHPMD_RETVAL=$?
229229

230230
if [ $PHPMD_RETVAL -ne 0 ]; then
231-
tput setaf 1; echo " \u2718 Issues found: "
231+
tput setaf 1; echo " Issues found: "
232232
tput setaf 7; echo "$PHPMD_OUTPUT"
233233

234234
rm -rf $TMP_STAGING
235235

236236
exit $PHPMD_RETVAL
237237
else
238-
tput setaf 2; echo " '\u2714' Inspection is OK!"
238+
tput setaf 2; echo " Inspection is OK!"
239239
fi
240240
else
241241
echo ""
242-
tput setaf 8; echo " :-( PHP Mess Detector inspection is OFF."
242+
tput setaf 8; echo " PHP Mess Detector inspection is OFF."
243243
fi
244244

245-
tput setaf 7;
245+
tput setaf 12;
246246

247247

248248

0 commit comments

Comments
 (0)