Skip to content

Commit

Permalink
Another Travis fix + StyleCI patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Koriit committed May 4, 2018
1 parent 929c3ac commit f2727cc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ before_script:
script:
- if [[ $(phpenv version-name) == '7.2' ]]; then vendor/bin/phpunit --coverage-clover clover.xml ; fi
- if [[ $(phpenv version-name) != '7.2' ]]; then vendor/bin/phpunit ; fi
- ./phpdeps -v
- php phpdeps -v

after_script:
- if [[ $(phpenv version-name) == '7.2' ]]; then php vendor/bin/php-coveralls -v ; fi
2 changes: 1 addition & 1 deletion src/PHPDeps/Graph/DirectedGraph.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ private function sortAndRemoveDuplicateCycles(array $cycles, callable $comparato
}

/**
* Scrolls a cycle so that minimal element(according to comparator) is at the beginning of cycle
* Scrolls a cycle so that minimal element(according to comparator) is at the beginning of cycle.
*
* @param array $array
* @param callable $comparator
Expand Down
2 changes: 0 additions & 2 deletions src/PHPDeps/Tokenizer/DependenciesReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,8 @@ private function readUseStatement(TokensIterator $it)
$token = $it->current();
if ($token == ';' || $it->currentIs(T_AS)) {
return $dependency;

} elseif ($it->currentIsOneOf([T_STRING, T_NS_SEPARATOR])) {
$dependency .= $token[1];

} elseif (!$it->currentIs(T_WHITESPACE)) {
throw new UnexpectedToken($token);
}
Expand Down

0 comments on commit f2727cc

Please sign in to comment.