Skip to content

Instantly share code, notes, and snippets.

@krolow
Created December 10, 2012 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save krolow/4250688 to your computer and use it in GitHub Desktop.
Save krolow/4250688 to your computer and use it in GitHub Desktop.
Quality Assurance PHP
#!/bin/bash
echo "======================================================================================="
echo "Fixing code standard"
echo "======================================================================================="
php-cs-fixer fix $PWD/src/
echo "Ok done ;)"
echo ""
echo "======================================================================================="
echo "Lets see the mess in our code"
echo "======================================================================================="
phpmd $PWD/src/ text codesize,unusedcode,naming,design,controversial
echo ""
echo "======================================================================================="
echo "Lets see if you like ctrl + c and ctrl + v"
echo "======================================================================================="
phpcpd $PWD/src/
echo ""
echo "======================================================================================="
echo "What about your code? code says about everything let's see..."
echo "======================================================================================="
phploc $PWD/src/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment