Skip to content

Commit 71dbb2a

Browse files
committed
Using sabre/cs
1 parent 8bcaddf commit 71dbb2a

File tree

5 files changed

+11
-4
lines changed

5 files changed

+11
-4
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,8 @@ vendor
22
composer.lock
33
tests/cov
44
.*.swp
5+
6+
# Composer binaries
7+
bin/phpunit
8+
bin/php-cs-fixer
9+
bin/sabre-cs-fixer

.travis.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@ sudo: false
1515

1616
cache: vendor
1717

18-
1918
script:
20-
- phpunit --configuration tests/phpunit.xml
21-
- ./vendor/bin/phpcs -p --standard=tests/phpcs/ruleset.xml lib/
19+
- ./bin/phpunit --configuration tests/phpunit.xml.dist
20+
- ./bin/sabre-cs-fixer fix lib/ --dry-run --diff
2221

2322
before_script: composer install

bin/.empty

Whitespace-only changes.

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@
3232
"bin" : [
3333
],
3434
"require-dev": {
35-
"squizlabs/php_codesniffer": "*",
35+
"sabre/cs": "~0.0.2",
3636
"phpunit/phpunit" : "*"
37+
},
38+
"config" : {
39+
"bin-dir" : "bin/"
3740
}
3841
}

0 commit comments

Comments
 (0)