Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save allysonsilva/412fb2b2cc4ca6afd4bcf6bb7f0f0bcf to your computer and use it in GitHub Desktop.

Select an option

Save allysonsilva/412fb2b2cc4ca6afd4bcf6bb7f0f0bcf to your computer and use it in GitHub Desktop.

Revisions

  1. Allyson Silva created this gist May 2, 2018.
    5 changes: 5 additions & 0 deletions Laravel-PHP-Static-Analysis-Tool.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    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/