Created
May 2, 2018 18:42
-
-
Save allysonsilva/412fb2b2cc4ca6afd4bcf6bb7f0f0bcf to your computer and use it in GitHub Desktop.
⚡️🧠 PHP Static Analysis Tool to Laravel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
phpcs --standard=PSR2 --colors --error-severity=1 --ignore='*blade.php*,*twig.php*' --tab-width=4 --encoding=utf-8 --extensions=php -d memory_limit=32M -n -s --report=full --report-width=auto app/ | |
phpcbf --standard=PSR2 --colors --error-severity=1 --ignore='*blade.php*,*twig.php*' --tab-width=4 --encoding=utf-8 --extensions=php -d memory_limit=32M -n app/ | |
php-cs-fixer --diff -v --using-cache=no --rules=@PSR2,@Symfony fix app/ | |
phpmd app/ html cleancode,codesize,controversial,design,naming,unusedcode --suffixes php > phpmd.html | |
phpcpd --no-interaction --progress --min-lines=4 --min-tokens=40 app/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment