Skip to content

Commit 10aac1f

Browse files
committed
Last changes
1 parent 3740259 commit 10aac1f

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

pre-commit

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,18 +113,18 @@ done
113113

114114
echo ""
115115
echo " :: PHP CodeSniffer inspection :: "
116-
echo ""
117-
PHPCS_OUTPUT=$($PHPCS_BIN -s $IGNORE_WARNINGS --standard=$PHPCS_CODING_STANDARD $ENCODING $IGNORE $SNIFFS $STAGED_FILES)
116+
PHPCS_OUTPUT=$($PHPCS_BIN -s $IGNORE_WARNINGS --standard=$PHPCS_CODING_STANDARD $ENCODING $IGNORE $STAGED_FILES)
118117
PHPCS_RETVAL=$?
119118

120119
if [ $PHPCS_RETVAL -ne 0 ]; then
121-
echo "$PHPCS_OUTPUT" | less
120+
echo " Issues found: "
121+
echo "$PHPCS_OUTPUT"
122122

123123
rm -rf $TMP_STAGING
124124

125125
exit $PHPCS_RETVAL
126126
else
127-
echo " :: Inspection is OK! :: "
127+
echo " -> Inspection is OK!"
128128
fi
129129

130130
echo ""
@@ -134,13 +134,14 @@ PHPMD_OUTPUT=$($PHPMD_BIN $STAGED_FILES text cleancode,codesize,controversial,de
134134
PHPMD_RETVAL=$?
135135

136136
if [ $PHPMD_RETVAL -ne 0 ]; then
137-
echo "$PHPMD_OUTPUT" | less
137+
echo " Issues found: "
138+
echo "$PHPMD_OUTPUT"
138139

139140
rm -rf $TMP_STAGING
140141

141142
exit $PHPMD_RETVAL
142143
else
143-
echo " :: Inspection is OK! :: "
144+
echo " -> Inspection is OK!"
144145
fi
145146

146147
exit 0;

0 commit comments

Comments
 (0)