PHP_CodeSniffer - checking PHP 5.3 compatibility

Written by Peter Davies on .

Install Code Sniffer

pear install PHP_CodeSniffer

Install GIT:

apt-get install git-core

Change to working Code Sniffer folder:

cd /usr/share/php/PHP/CodeSniffer/Standards/

Run GIT to get file:

git clone git:// PHP53Compat

Change to folder

cd PHP53Compat

Change to working source code folder:

cd /home/client/public_html

Run the script, setting current path

phpcs --standard=PHP53Compat ./