Skip to content
This repository has been archived by the owner on Jul 8, 2023. It is now read-only.

Commit

Permalink
Use CS fixer like normal, strict everywhere.
Browse files Browse the repository at this point in the history
  • Loading branch information
ezzatron committed Sep 21, 2017
1 parent c90a15a commit 31e9d54
Show file tree
Hide file tree
Showing 9 changed files with 1,091 additions and 13 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/coverage/
/test/bin/php-cs-fixer
/vendor/
/.php_cs.cache
/README.html
9 changes: 2 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,9 @@ integration: install
test/integration/run

.PHONY: lint
lint: test/bin/php-cs-fixer
test/bin/php-cs-fixer fix --using-cache no
lint: install
vendor/bin/php-cs-fixer fix

.PHONY: install
install:
composer install

test/bin/php-cs-fixer:
mkdir -p test/bin
curl -sSL http://cs.sensiolabs.org/download/php-cs-fixer-v2.phar -o test/bin/php-cs-fixer
chmod +x test/bin/php-cs-fixer
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"kahlan/kahlan": "4.0.x-dev"
},
"require-dev": {
"errors/exceptions": "^0.2"
"errors/exceptions": "^0.2",
"friendsofphp/php-cs-fixer": "^2"
},
"autoload": {
"psr-4": {
Expand Down
Loading

0 comments on commit 31e9d54

Please sign in to comment.