Skip to content

Commit

Permalink
Check for syntax errors using PHP-CS-Fixer (area17#517)
Browse files Browse the repository at this point in the history
Co-authored-by: Quentin Renard <[email protected]>
  • Loading branch information
antonioribeiro and ifox authored Feb 9, 2020
1 parent 5af1093 commit 3a3605b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ public/
tests/coverage
tests/storage
.phpunit.result.cache
.php_cs.cache
5 changes: 5 additions & 0 deletions .php_cs.travis
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

return PhpCsFixer\Config::create()->setRules([
'@PSR1' => true,
]);
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ php:
- 7.1
- 7.2
- 7.3
- 7.4snapshot
- 7.4
- nightly

#### PHP 7.4 && PHP 8
Expand All @@ -30,6 +30,7 @@ before_script:
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-dist

script:
- vendor/bin/php-cs-fixer --dry-run --config=./.php_cs.travis fix src/ tests/ || travis_terminate 1;
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover

after_script:
Expand Down

0 comments on commit 3a3605b

Please sign in to comment.