Install PHP_CodeSniffer

Run the below given command

sudo pear install PHP_CodeSniffer-1.3.4

Makes sure that the the server has got php pear installed in it

If php pear is not installed run the below given command

sudo apt-get install php-pear