16c67e1574d1036f4e0a3942e70048f848b0ca13
Hanno Böck add script to check codings...

Hanno Böck authored 3 years ago

1) #!/bin/bash
2) set -euo pipefail
3) 
4) surl=$(curl -s https://api.github.com/repos/fabpot/local-php-security-checker/releases/latest | grep https://.*linux_amd64 -o)
5) 
6) [ -e local-php-security-checker ] || curl -L $surl >local-php-security-checker
7) [ -e php-cs-fixer ] || curl -L https://cs.symfony.com/download/php-cs-fixer-v3.phar >php-cs-fixer
8) chmod +x local-php-security-checker php-cs-fixer
9) 
Hanno Böck enable php84 migration rule...

Hanno Böck authored 2 months ago

10) ./php-cs-fixer fix --rules @PER,@PHP84Migration --dry-run --diff .