Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save allysonsilva/412fb2b2cc4ca6afd4bcf6bb7f0f0bcf to your computer and use it in GitHub Desktop.
Save allysonsilva/412fb2b2cc4ca6afd4bcf6bb7f0f0bcf to your computer and use it in GitHub Desktop.
⚡️🧠 PHP Static Analysis Tool to Laravel
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