This is a sniff for PHP_CodeSniffer that checks for PHP PECL HTTP extension compatibility between 1.x and 2.x versions.
- Install PHP_CodeSniffer with
pear install PHP_CodeSniffer
. - Checkout this repository as
PHPHttpCompatibility
into thePHP/CodeSniffer/Standards
directory. - Use the coding standard with
phpcs --standard=PHPHttpCompatibility