Last active
August 29, 2015 14:19
-
-
Save 1000k/ff8f13dd4aa7b840cecc to your computer and use it in GitHub Desktop.
Install PHP_CodeSniffer rule for CakePHP 2.x
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pear channel-update pear.php.net | |
pear clear-cache | |
# PHPCS newest version is 2.x, but CakePHP_CodeSniffer requies version >= 1.4, version <= 1.5 | |
# (you must type `pear uninstall PHP_CodeSniffer` at first if above 2.x is installed) | |
pear install -n PHP_CodeSniffer-1.5.6 | |
pear channel-discover pear.cakephp.org | |
pear install -n cakephp/CakePHP_CodeSniffer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment