DEV Community

Discussion on: Can you find the bug in this piece of php code? 🤹

 
arxeiss profile image
Pavel Kutáč

I'm running this in CI/CD. Basically you

  1. Install PHP CodeSniffer github.com/squizlabs/PHP_CodeSniffer with composer require --dev squizlabs/php_codesniffer or composer require --dev arxeiss/coding-standards to install directly my prepared set of rules.
  2. Prepare your own XML config, sample one is in my repo above too
  3. And then just run ./vendor/bin/phpcs --standard=./phpcs.xml
Thread Thread
 
nombrekeff profile image
Keff

Fantastic easy enough, thanks a lot for the info.