Phpcs is a ruby wrapper for Php_CodeSniffer.
Add this line to your application's Gemfile:
gem 'phpcs'
And then execute:
$ bundle
Or install it yourself as:
$ gem install phpcs
Take a look to test/phpcs_test.rb
to understand how to use it.
You can choose one of the follwing coding standards: PEAR, PHPCS, PSR1, PSR2 (default), Squiz, Zend
- Fork it ( https://github.com/[my-github-username]/foo/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request