PHPCS PHP Code Sniffer

PHP_CodeSniffer for PSR 12 full usage
composer global require "squizlabs/php_codesniffer=*"

phpcs /path/to/code/myfile.php
"./vendor/bin/phpcs" classWorkFlow.php --report=summary --report-summary=phpcs.txt
"./vendor/bin/phpcs" classWorkFlow.php --report=full --report-full=phpcsPSR12.txt --standard=PSR12

"./vendor/bin/phpcbf" classWorkFlow.php --report=diff -vv --standard=PSR12

"./vendor/bin/phpcs" classWorkFlow.php --report=full --report-full=phpcs.txt
if installation is global
phpcs classWorkFlow.php --report=full --report-full=phpcs.txt  --standard=PSR12
### To fix automatically use 'phpcbf'
phpcbf classWorkFlow.php --report=diff -vv --standard=PSR12
$ phpcs /path/to/code-directory
$ phpcs --standard=PSR12 /path/to/code-directory