Skip to content

Commit 155d7a9

Browse files
committed
fix scrutinizer
1 parent b6f96b8 commit 155d7a9

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

.travis.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ matrix:
2222
dist: trusty
2323
- php: 5.5
2424
dist: trusty
25-
- php: 7.0
26-
env: COVERAGE=1
2725
- php: nightly
2826
env: DEPENDENCIES="--ignore-platform-reqs"
2927
exclude:
@@ -47,8 +45,6 @@ before_install:
4745
- sudo apt-get install -y graphviz
4846

4947
before_script:
50-
## Deactivate xdebug if we don't do code coverage
51-
- if [ -z "$COVERAGE" ]; then phpenv config-rm xdebug.ini || echo "xdebug not available" ; fi
5248
## Composer
5349
- composer self-update
5450
## Composer in PHP versions 5.x requires 3 GB memory
@@ -60,17 +56,17 @@ before_script:
6056

6157
script:
6258
## PHP_CodeSniffer
63-
- if [ -z "$COVERAGE" ]; then ./vendor/bin/phpcs src/ tests/ --standard=PSR2 -n ; fi
59+
- ./vendor/bin/phpcs src/ tests/ --standard=PSR2 -n
6460
## PHP Copy/Paste Detector
6561
# - ./vendor/bin/phpcpd src/
6662
## PHP Mess Detector
67-
- if [ -z "$COVERAGE" ]; then ./vendor/bin/phpmd src/,tests/ text ./phpmd.xml.dist ; fi
63+
- ./vendor/bin/phpmd src/,tests/ text ./phpmd.xml.dist
6864
## PHPUnit
69-
- ./vendor/bin/phpunit -c ./ $(if [ -n "$COVERAGE" ]; then echo --coverage-text --coverage-html ./build/coverage; else echo --no-coverage; fi)
65+
- phpunit -c ./ --coverage-text --coverage-html ./build/coverage
7066
## PHPLOC
71-
- if [ -z "$COVERAGE" ]; then ./vendor/bin/phploc src/ ; fi
67+
- ./vendor/bin/phploc src/
7268
## PHPDocumentor
73-
#- if [ -z "$COVERAGE" ]; then ./vendor/bin/phpdoc -q -d ./src -t ./build/docs --template="responsive-twig" ; fi
69+
#- ./vendor/bin/phpdoc -q -d ./src -t ./build/docs --template="responsive-twig"
7470

7571
after_script:
7672
## PHPDocumentor

tests/Common/Tests/XMLWriterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function testWriteAttributeShouldWriteFloatValueLocaleIndependent()
6464
$xmlWriter->endElement();
6565

6666
setlocale(LC_NUMERIC, 'de_DE.UTF-8', 'de');
67-
67+
6868
$this->assertSame('<element name="1.2"/>' . chr(10), $xmlWriter->getData());
6969
}
7070
}

0 commit comments

Comments
 (0)