Skip to content

Commit

Permalink
Fix reference from jshint to phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
westonruter committed Oct 26, 2013
1 parent 9c1e6ea commit 258cdf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pre-commit
Expand Up @@ -58,7 +58,7 @@ if [ ${#staged_php_files[@]} != 0 ]; then

# PHP_CodeSniffer WordPress Coding Standards
echo "## phpcs"
if command -v jshint >/dev/null 2>&1; then
if command -v phpcs >/dev/null 2>&1; then
phpcs_standard=$(if [ -e ruleset.xml ]; then echo ruleset.xml; else echo WordPress; fi)
phpcs -p -s -v --standard=$phpcs_standard "${staged_php_files[@]}"
else
Expand Down

0 comments on commit 258cdf9

Please sign in to comment.