Skip to content

Instantly share code, notes, and snippets.

@1000k
Last active August 29, 2015 14:19
Show Gist options
  • Save 1000k/ff8f13dd4aa7b840cecc to your computer and use it in GitHub Desktop.
Save 1000k/ff8f13dd4aa7b840cecc to your computer and use it in GitHub Desktop.
Install PHP_CodeSniffer rule for CakePHP 2.x
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