First of all we have to follow three of my previous posts where we installed
CakePHP Sniff and
Eclipse PHP Plugins.
Go to the preferences menu on
Eclipse and navigate to...
PHP -> PHP Executables -> Add...
Once we have PHP configured on our Eclipse we have to setup
PEAR go to...
PHP Tools -> Library -> PEAR -> New...
And select the
php55 was installed using
homebrew, you can run this command to know the path of
brew --prefix php55
Then just add at the end of that command
And the last step is select our just configured
PEAR path a the default library used by our
PHP CodeSniffer, as you can see on the imagen below:
And done! just enjoy a code clean! :)