Code Validation
From GLMWiki
Code Documentation
Please install and use PEAR's PHP_CodeSniffer to assist you with your coding standards validation.
PHP_CodeSniffer is a PHP5 script that tokenises and "sniffs" PHP and JavaScript code to detect violations of a defined coding standard. 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.
Configuration Standards for PHP_CodeSniffers
- Set tab width to 4 spaces
phpcs --config-set tab_width 4