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
PHPHttpCompatibilityinto thePHP/CodeSniffer/Standardsdirectory. - Use the coding standard with
phpcs --standard=PHPHttpCompatibility