I have fixed this issue as per the below link.
Alternative way to install PHP_CodeSniffer is to clone repository from GitHub:
git clone git://github.com/squizlabs/PHP_CodeSniffer.git
cd PHP_CodeSniffer
php scripts/phpcs -h
http://blog.a2design.biz/blog/2012/08/19/automation-of-php-coding-style-check-using-git-hooks/