Skip to content

Commit 97a35e9

Browse files
authored
Add PHP_CodeSniffer in Travis CI build (#17)
1 parent 9a05b57 commit 97a35e9

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ sudo: false
1010
before_script:
1111
- travis_retry composer self-update
1212
- travis_retry composer install --no-interaction --prefer-dist
13+
- ./vendor/bin/phpcs -n --standard=PSR2 src/ tests/

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"ext-mbstring": "*"
2626
},
2727
"require-dev": {
28-
"phpunit/phpunit": "^5.7 || ^6.5"
28+
"phpunit/phpunit": "^5.7 || ^6.5",
29+
"squizlabs/php_codesniffer": "^3"
2930
},
3031
"autoload": {
3132
"psr-4": {

0 commit comments

Comments
 (0)