1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-25 08:12:40 +01:00

Minor linter fixes

Summary: Self explanatory/

Test Plan: `arc lint`

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: aurelijus, Korvin, epriestley

Differential Revision: https://secure.phabricator.com/D10943
This commit is contained in:
Joshua Spence 2014-12-08 23:46:55 +11:00
parent 4ca3463df6
commit 565a96e0ee
3 changed files with 3 additions and 6 deletions

View file

@ -267,8 +267,7 @@ final class PhpunitTestEngine extends ArcanistUnitTestEngine {
if ($bin) {
if (Filesystem::binaryExists($bin)) {
$this->phpunitBinary = $bin;
}
else {
} else {
$this->phpunitBinary = Filesystem::resolvePath($bin, $project_root);
}
}

View file

@ -121,8 +121,7 @@ final class PytestTestEngine extends ArcanistUnitTestEngine {
if (intval($line->getAttribute('hits')) == 0) {
$coverage .= 'U';
}
else if (intval($line->getAttribute('hits')) > 0) {
} else if (intval($line->getAttribute('hits')) > 0) {
$coverage .= 'C';
}

View file

@ -68,8 +68,7 @@ EOTEXT
if (!$commits) {
throw new ArcanistUsageException(
'This revision has not been committed yet!');
}
else if (count($commits) > 1) {
} else if (count($commits) > 1) {
throw new ArcanistUsageException(
'The revision you provided has multiple commits!');
}