From 565a96e0ee546e5ed794d0b493d3993c3f0af778 Mon Sep 17 00:00:00 2001 From: Joshua Spence Date: Mon, 8 Dec 2014 23:46:55 +1100 Subject: [PATCH] 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 --- src/unit/engine/PhpunitTestEngine.php | 3 +-- src/unit/engine/PytestTestEngine.php | 3 +-- src/workflow/ArcanistBackoutWorkflow.php | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) 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!'); } -- 2.43.0