PHP CodeSniffer
PHP CodeSniffer supports the report format checkstyle
which is supported by Code Review Assistant out of the box.
Example for Bamboo:
#!/bin/bash
php phpcs.phar --basepath=${bamboo.build.working.directory} \
--report=checkstyle \
--report-file=phpcodesniffer.xml .
cat phpcodesniffer.xml || echo "No PHP CodeSniffer report generated"
![](../__attachments/3375595521/image-20221216-154732.png?inst-v=3eda12ed-4896-4d17-987f-63c1d75539b1)