Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 355 Bytes

README.md

File metadata and controls

17 lines (11 loc) · 355 Bytes

PHPCS

This a docker image for PHP_CodeSniffer

Usage

Detect code standard violations

docker run -v /path/to/php/files/:/scripts/ texthtml/phpcs phpcs --standard=PSR2 /scripts/

and fix them

docker run -v /path/to/php/files/:/scripts/ texthtml/phpcs phpcbf --standard=PSR2 /scripts/