PHP code sniffer
phpcs tokenises PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.
It is an essential development tool that ensures your code remains clean and consistent. It can also help prevent some common semantic errors made by developers.
# pear install PHP_CodeSniffer
downloading PHP_CodeSniffer-1.5.5.tgz …
Starting to download PHP_CodeSniffer-1.5.5.tgz (412,025 bytes)
………….done: 412,025 bytes
install ok: channel://pear.php.net/PHP_CodeSniffer-1.5.5
which phpcs
/usr/bin/phpcs</code>
From http://phpqatools.org/
…
tags: & category: -