diff --git a/.gitignore b/.gitignore index 9607eec49..685a80d41 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ public/ tests/coverage tests/storage .phpunit.result.cache +.php_cs.cache diff --git a/.php_cs.travis b/.php_cs.travis new file mode 100644 index 000000000..76077adc7 --- /dev/null +++ b/.php_cs.travis @@ -0,0 +1,5 @@ +setRules([ + '@PSR1' => true, +]); diff --git a/.travis.yml b/.travis.yml index 95067fbf9..bc2202e7f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,7 +5,7 @@ php: - 7.1 - 7.2 - 7.3 - - 7.4snapshot + - 7.4 - nightly #### PHP 7.4 && PHP 8 @@ -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: