This is the set of sniffs is used with PHP_CodeSniffer. It requires at least version 1.3.0 of PHP_CodeSniffer.
- Install PHP_CodeSniffer with
pear install PHP_CodeSniffer
. - Checkout this repository as
Elgg
into thePHP/CodeSniffer/Standards
directory. - Use the coding standard with
phpcs --standard=Elgg
. - Get a summary report on the engine with
phpcs --standard=Elgg -l --report=summary <Elgg engine lib directory>