PHP_CodeSniffer
This plugin is a PHP 5 script that tokenizes PHP, JavaScript and CSS files, to detect violations of a defined coding standard, thus helping you to ensure that your code remains clean and consistent. It can also help prevent some common semantic errors made by developers.
How do I install the PHP_CodeSniffer plugin?
How do I work with the PHP_CodeSniffer plugin?
For more details on PHP_CodeSniffer, click here.