...
You can download the PrestaShop code standard using SVNGit:http https://svngithub.prestashop.com/branchesPrestaShop/PrestaShop-norm/-validator (you must perform this step before going any further with this tutorial).
...
- Install PEAR: http://pear.php.net/
$> apt-get install php-pear
- Install PHP CodeSniffer in PEAR: http://pear.php.net/package/PHP_CodeSniffer
$> pear install PHP_CodeSniffer
- Add the PrestaShop standard that you downloaded from SVN earlier, and place it in PHP CodeSniffer's "Standards" folder.
$> svn co httpgit clone https://svngithub.prestashop.com/branchesPrestaShop/PrestaShop-norm-validator / /usr/share/php/PHP/CodeSniffer/Standards/Prestashop
- Launch PHP CodeSniffer
$> phpcs --config-set default_standard Prestashop
...