Sign inSign up

hypnoglow/phpcs

By hypnoglow

•Updated over 9 years ago

Lightweight PHP Code Sniffer image.

Image
1

978

hypnoglow/phpcs repository overview

⁠phpcs

Lightweight PHP Code Sniffer image.

⁠Usage

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/

Tag summary

Content type

Image

Digest

Size

27 MB

Last updated

over 9 years ago

docker pull hypnoglow/phpcs