From: Joshua Spence Date: Mon, 8 Dec 2014 12:46:55 +0000 (+1100) Subject: Minor linter fixes X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=565a96e0ee546e5ed794d0b493d3993c3f0af778;p=arcanist.git 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 --- diff --git a/src/unit/engine/PhpunitTestEngine.php b/src/unit/engine/PhpunitTestEngine.php index 558616ac..82438631 100644 --- a/src/unit/engine/PhpunitTestEngine.php +++ b/src/unit/engine/PhpunitTestEngine.php @@ -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); } } diff --git a/src/unit/engine/PytestTestEngine.php b/src/unit/engine/PytestTestEngine.php index 8d3891b9..11315e3f 100644 --- a/src/unit/engine/PytestTestEngine.php +++ b/src/unit/engine/PytestTestEngine.php @@ -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'; } diff --git a/src/workflow/ArcanistBackoutWorkflow.php b/src/workflow/ArcanistBackoutWorkflow.php index 7d37853a..7131d777 100644 --- a/src/workflow/ArcanistBackoutWorkflow.php +++ b/src/workflow/ArcanistBackoutWorkflow.php @@ -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!'); }