A code standard to check against the Symfony 1 coding standards. Initially copied from phpcs-symfony.
-
Install phpcs:
pear install PHP_CodeSniffer
-
Find your PEAR directory:
pear config-show | grep php_dir
-
Copy, symlink or check out this repo to a folder called Symfony inside the phpcs
Standards
directory:cd /path/to/pear/PHP/CodeSniffer/Standards git clone git://github.com/devpro/Symfony1-coding-standard.git Symfony
-
Use Symfony as coding standard:
phpcs --standard=Symfony <files>