]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Fix whitespace around else
authorvrana <jakubv@fb.com>
Wed, 16 Jan 2013 20:15:46 +0000 (12:15 -0800)
committervrana <jakubv@fb.com>
Wed, 16 Jan 2013 20:15:46 +0000 (12:15 -0800)
src/lint/linter/ArcanistPEP8Linter.php
src/unit/engine/NoseTestEngine.php
src/unit/engine/PhpunitTestEngine.php
src/workflow/ArcanistLandWorkflow.php

index 80d7ac95969810b55127ee78b800747610239de3..c12b50f2586391bb4c42cba8a51a7d7c54ddf95b 100644 (file)
@@ -47,8 +47,7 @@ final class ArcanistPEP8Linter extends ArcanistLinter {
       $bin = csprintf('/usr/bin/env python2.6 %s',
                phutil_get_library_root('arcanist').
                '/../externals/pep8/pep8.py');
-    }
-    else {
+    } else {
       if ($bin === null) {
         $bin = 'pep8';
       }
index fd508e102e122479fde7247cea3a975f404dfc7e..352cd346337f6f64daf86988043d50d2a91d986c 100644 (file)
@@ -218,8 +218,7 @@ final class NoseTestEngine extends ArcanistBaseUnitTestEngine {
 
         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 7dd5b936724081f4847998ad73c87e8072a82a01..d2f02a8b90c97155bb866ff4612c101987561788 100644 (file)
@@ -233,8 +233,7 @@ final class PhpunitTestEngine extends ArcanistBaseUnitTestEngine {
         } else {
           if ((int) $line->getAttribute('count') == 0) {
             $coverage .= 'U';
-          }
-          else if ((int) $line->getAttribute('count') > 0) {
+          } else if ((int) $line->getAttribute('count') > 0) {
             $coverage .= 'C';
           }
         }
index 9525079a42a12b7f936c5b3e59bf3ab6ba800882..b9903c8a42e3477afc54b299b38e4f6fa2aafdec 100644 (file)
@@ -399,8 +399,7 @@ EOTEXT
       // $err === 0 means something is outgoing
       if ($err === 0) {
         $local_ahead_of_remote = true;
-      }
-      else {
+      } else {
         try {
           $repository_api->execxLocal('pull -u');
         } catch (CommandException $ex) {
@@ -496,8 +495,7 @@ EOTEXT
       $repository_api->execxLocal(
         'merge --squash --ff-only %s',
         $this->branch);
-    }
-    else if ($this->isHg) {
+    } else if ($this->isHg) {
       // The hg code is a little more complex than git's because we
       // need to handle the case where the landing branch has child branches:
       // -a--------b  master
@@ -678,8 +676,7 @@ EOTEXT
           "merged state. You can: abort with 'git merge --abort'; or follow ".
           "the instructions to complete the merge.");
       }
-    }
-    else if ($this->isHg) {
+    } else if ($this->isHg) {
       // HG arc land currently doesn't support --merge.
       // When merging a bookmark branch to a master branch that
       // hasn't changed since the fork, mercurial fails to merge.