Skip to content

Commit

Permalink
Contribution Guidelines and PHPCS Composer Removal
Browse files Browse the repository at this point in the history
- Made changes to contribution guidelines to include instructions on how
  to use PHPCS.
- Removed PHPCS as a Composer development requirement.
  • Loading branch information
Dustin Wheeler committed Jan 12, 2014
1 parent 3ad2b9b commit 09e5a78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Expand Up @@ -4,12 +4,12 @@

We use the [PSR2](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md) standard.

[PHP CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) is included as a Composer development requirement in order to help developers achieve PSR-2 compliance in any contributed code.
[PHP CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) can be used to help developers achieve PSR-2 compliance in any contributed code.

### Running PHP CodeSniffer

- Install PHP CodeSniffer by running composer with development requirements (`composer install --dev`).
- Execute `vendor/bin/phpcs --standard=psr2 src/Petrinet/*` from the project root directory
- Install [PHP CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer#installation).
- Execute `phpcs --standard=psr2 src/Petrinet/*` from the project root directory.

## Unit tests

Expand Down
3 changes: 1 addition & 2 deletions composer.json
Expand Up @@ -17,8 +17,7 @@
"symfony/event-dispatcher": "~2.0"
},
"require-dev": {
"satooshi/php-coveralls": "dev-master",
"squizlabs/php_codesniffer": "1.*"
"satooshi/php-coveralls": "dev-master"
},
"autoload": {
"psr-0": {
Expand Down

0 comments on commit 09e5a78

Please sign in to comment.