Since version 1.6.1.0 of PrestaShop, we are using the PSR-2 Coding Style Guide as our coding standards. Learn more about this here.
-
Install phpcs: pear install PHP_CodeSniffer
-
Find your PEAR directory: pear config-show | grep php_dir
-
You can run PHP CodeSniffer against an entire directory: phpcs --standard=PSR2 PrestaShop/classes/