]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Minor linter fixes
authorJoshua Spence <josh@joshuaspence.com>
Mon, 8 Dec 2014 12:46:55 +0000 (23:46 +1100)
committerJoshua Spence <josh@joshuaspence.com>
Mon, 8 Dec 2014 12:48:55 +0000 (23:48 +1100)
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
src/unit/engine/PytestTestEngine.php
src/workflow/ArcanistBackoutWorkflow.php

index 558616aca94bcc2c8be63f606027560f746837f1..82438631dbe9cd59898969e7f1f03889007c3b26 100644 (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);
       }
     }
index 8d3891b9f254d57290fb7702221449844ca3c498..11315e3f952cc85683fd51da461b25ba62c9aef2 100644 (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';
         }
 
index 7d37853a5743deb9754d7bcc28fb48be0943c19b..7131d7773287315e6c10c5f310584eeaa4330151 100644 (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!');
     }