Lightweight PHP Code Sniffer image.
Considering your .php files are in ./src directory.
To run phpcs:
docker run --rm -v "$PWD":/app hypnoglow/phpcs phpcs \
--standard=PSR2 --colors -p \
--extensions=php --ignore=/vendor \
/app/
To fix possible issues:
docker run --rm -v "$PWD":/app hypnoglow/phpcs phpcbf \
--standard=PSR2 -p \
--extensions=php --ignore=/vendor \
/app/
Content type
Image
Digest
Size
27 MB
Last updated
over 9 years ago
docker pull hypnoglow/phpcs