PHP_CodeSniffer is an open source code checker that tokenizes PHP, JavaScript and CSS files to detect violations of a defined coding standard. Visit their website for more detailed information on PHPCS and the ruleset found below.