We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a78a38 commit 1ef006fCopy full SHA for 1ef006f
tests/script.sh
@@ -77,3 +77,10 @@ if [[ ! -z "${at_author}" ]]; then
77
echo -e "${at_author}" | perl -pe 's/^(.*)$/\@author found in \1/'
78
exit 1
79
fi
80
+
81
+# Prohibit screaming caps notation in php files.
82
+caps=$(find . -type "f" -iname "*.php" ! -path "*/vendor/*" -exec egrep --color=always --line-number -H -e "FALSE[^']" -e "NULL" -e "TRUE" {} \;)
83
+if [[ ! -z "${caps}" ]]; then
84
+ echo -e "${caps}" | perl -pe 's/^(.*)$/All caps found in \1/'
85
+ exit 1
86
+fi
0 commit comments