I'm using Ubuntu 14.04 and I'd like to check compatibility of our code as we upgrade to PHP-5.4 e.g. deprecated functions and other things that will break scripts.
I installed codesniffer
like so
sudo pear install PHP_CodeSniffer
I'm trying to install the standard I found here to
/usr/share/pear/PHP/CodeSniffer/Standards/PHPCompatibility
but, phpcs
doesn't seem to find it.
Has anyone else gotten this to work?
Best Answer
At my local machine it's installed here:
(Get it from here. )
After that I can call it with: