Skip to content

Commit

Permalink
Require php-cs-fixer as dev dependency (#111)
Browse files Browse the repository at this point in the history
* require friendsofphp/php-cs-fixer as dev dependency

* update contributing with php-cs-fixer example
  • Loading branch information
alucic authored and akondas committed Jul 28, 2017
1 parent 47cdff0 commit ed5fc89
Show file tree
Hide file tree
Showing 4 changed files with 955 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ humbuglog.*
/bin/phpunit
.coverage
.php_cs.cache
/bin/php-cs-fixer
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Please allow me time to review your pull requests. I will give my best to review

## Coding Standards

When contributing code to PHP-ML, you must follow its coding standards. It's as easy as executing `php-cs-fixer` (v2) in root directory.
When contributing code to PHP-ML, you must follow its coding standards. It's as easy as executing `./bin/php-cs-fixer fix` in root directory.

More about PHP-CS-Fixer: [http://cs.sensiolabs.org/](http://cs.sensiolabs.org/)

Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"php": ">=7.0.0"
},
"require-dev": {
"phpunit/phpunit": "^6.0"
"phpunit/phpunit": "^6.0",
"friendsofphp/php-cs-fixer": "^2.4"
},
"config": {
"bin-dir": "bin"
Expand Down
Loading

0 comments on commit ed5fc89

Please sign in to comment.