Skip to content

Commit a5f5da5

Browse files
committed
Add PHP_CodeSniffer
1 parent a976b44 commit a5f5da5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ before_script:
2626
script:
2727
- if [[ $ANALYZE == 'true' ]]; then vendor/bin/phpunit --coverage-clover build/logs/clover.xml ; fi;
2828
- if [[ $ANALYZE != 'true' ]]; then vendor/bin/phpunit ; fi;
29+
- if [[ $ANALYZE == 'true' ]]; then vendor/bin/phpcs ; fi
2930

3031
after_success:
3132
- if [[ $ANALYZE == 'true' ]]; then php vendor/bin/coveralls -v ; fi

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"php": ">=5.5"
1515
},
1616
"require-dev": {
17-
"phpunit/phpunit": "^4.0|^5.0|^6.0"
17+
"phpunit/phpunit": "^4.0|^5.0|^6.0",
18+
"squizlabs/php_codesniffer": "^3.0"
1819
},
1920
"autoload": {
2021
"files": [

0 commit comments

Comments
 (0)