Skip to content

Commit cfd04a6

Browse files
authored
Fix HHVM build (#42)
* Fix HHVM build * Applied changes from StyleCI
1 parent c18aa3d commit cfd04a6

File tree

5 files changed

+7
-1
lines changed

5 files changed

+7
-1
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ php:
1414
- 5.6
1515
- 7.0
1616
- 7.1
17-
- hhvm
17+
1818
env:
1919
global:
2020
- TEST_COMMAND="composer test"
@@ -24,6 +24,8 @@ matrix:
2424
include:
2525
- php: 5.5
2626
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" COVERAGE=true TEST_COMMAND="composer test-ci"
27+
- php: hhvm
28+
dist: trusty
2729

2830
install:
2931
- travis_retry composer update --prefer-dist --no-interaction $COMPOSER_FLAGS

src/Visitor/Php/SourceLocationContainerVisitor.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ public function enterNode(Node $node)
6868

6969
if ('Translation\Extractor\TranslationSourceLocationContainer' === $name) {
7070
$isContainer = true;
71+
7172
break;
7273
}
7374
}

src/Visitor/Php/Symfony/FormTypeChoices.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ public function enterNode(Node $node)
6363

6464
if ($item->key->value === 'choices_as_values') {
6565
$useKey = true;
66+
6667
continue;
6768
}
6869

tests/Functional/Visitor/Php/BasePHPVisitorTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ protected function getSourceLocations($visitor, $namespaceForTestFile)
4444
for ($j = $i; $j < count($fileNamespace); ++$j) {
4545
$path .= '/'.$fileNamespace[$j];
4646
}
47+
4748
break;
4849
}
4950
}

tests/Smoke/AllExtractorsTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ private function translationExists(SourceCollection $sc, $translationKey, $messa
6262
foreach ($sc as $source) {
6363
if ($translationKey === $source->getMessage()) {
6464
$found = true;
65+
6566
break;
6667
}
6768
}

0 commit comments

Comments
 (0)