php-cs fix

This commit is contained in:
troosan 2017-09-25 21:30:59 +02:00
parent 0be9ae3353
commit 3f3f398524

View File

@ -22,7 +22,7 @@ cache:
directories: directories:
- vendor - vendor
- $HOME/.composer/cache - $HOME/.composer/cache
- $HOME/.php-cs-fixer - .php-cs.cache
env: env:
global: global:
@ -47,7 +47,7 @@ script:
## PHP_CodeSniffer ## PHP_CodeSniffer
- if [ -z "$COVERAGE" ]; then ./vendor/bin/phpcs src/ tests/ --standard=PSR2 -n --ignore=src/PhpWord/Shared/PCLZip ; fi - if [ -z "$COVERAGE" ]; then ./vendor/bin/phpcs src/ tests/ --standard=PSR2 -n --ignore=src/PhpWord/Shared/PCLZip ; fi
## PHP-CS-Fixer ## PHP-CS-Fixer
- if [ -z "$COVERAGE" ]; then ./vendor/bin/php-cs-fixer fix --diff --verbose --dry-run --cache-file=$HOME/.php-cs-fixer ; fi - if [ -n "$COVERAGE" ]; then ./vendor/bin/php-cs-fixer fix --diff --verbose --dry-run --cache-file=.php-cs.cache ; fi
## PHP Mess Detector ## PHP Mess Detector
- if [ -z "$COVERAGE" ]; then ./vendor/bin/phpmd src/,tests/ text ./phpmd.xml.dist --exclude pclzip.lib.php ; fi - if [ -z "$COVERAGE" ]; then ./vendor/bin/phpmd src/,tests/ text ./phpmd.xml.dist --exclude pclzip.lib.php ; fi
## PHPUnit ## PHPUnit