Thanks for sharing the image. Due to the lack of documentation here are some usage examples for getting up and running fast:
docker run -it --rm -v "$PWD":/data/www alairock/docker-php-codesniffer your/src/dir
Run phpcbf is a bit more tricky. cbf tries to autofix the files using
patch which does not seem to be installed in this image (bug?). To run cbf, you first have to install
docker run -it --rm --entrypoint="bash" --v "$PWD":/data/www \ alairock/docker-php-codesniffer -c "apt-get install patch && phpcbf your/src/dir"