]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Apply some autofix linter rules
authorJoshua Spence <josh@joshuaspence.com>
Tue, 9 Sep 2014 20:33:31 +0000 (06:33 +1000)
committerJoshua Spence <josh@joshuaspence.com>
Tue, 9 Sep 2014 20:50:32 +0000 (06:50 +1000)
Summary: Self-explanatory

Test Plan: Eyeball it.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D10453

src/exception/usage/ArcanistUncommittedChangesException.php
src/lint/ArcanistLintPatcher.php
src/lint/engine/ArcanistLintEngine.php
src/unit/engine/ArcanistUnitTestEngine.php
src/workflow/ArcanistFeatureWorkflow.php

index 488150b05a0009fc20a6981e829dea17a1c41a3f..5baedf522b2dd7f9740f73136750cf2310cb9422 100644 (file)
@@ -1,5 +1,4 @@
 <?php
 
-final class ArcanistUncommittedChangesException extends ArcanistUsageException {
-
-}
+final class ArcanistUncommittedChangesException
+  extends ArcanistUsageException {}
index 7d22b2403cfed5fd660f5b36697cd57b7d19d412..1cea8dc3763ea7473265e1bcc0107f9d6ed9d128 100644 (file)
@@ -58,9 +58,7 @@ final class ArcanistLintPatcher {
     }
   }
 
-  private function __construct() {
-
-  }
+  private function __construct() {}
 
   private function buildModifiedFile() {
     $data = $this->getUnmodifiedFileContent();
index 6ffa4f7ce605734d22914c542ba7bbf14e71c8d7..f32f640a9316042e60be27c55fb955ef68729a0f 100644 (file)
@@ -66,9 +66,7 @@ abstract class ArcanistLintEngine {
 
   private $linterResources = array();
 
-  public function __construct() {
-
-  }
+  public function __construct() {}
 
   final public function setConfigurationManager(
     ArcanistConfigurationManager $configuration_manager) {
index 4153f00c9d5e4ef404878446491c80367ebaa3df..c449ed6f74587f6c8de84661097b78abb74b8047 100644 (file)
@@ -34,9 +34,7 @@ abstract class ArcanistUnitTestEngine {
     return false;
   }
 
-  final public function __construct() {
-
-  }
+  final public function __construct() {}
 
   public function setConfigurationManager(
     ArcanistConfigurationManager $configuration_manager) {
index c361256f074f979bb7095468493d7154c50f7d86..4ffb4662d1825efef554d55820e7e3c7b848b5e9 100644 (file)
@@ -136,8 +136,7 @@ EOTEXT
               $command,
               $name);
           }
-        } catch (ConduitClientException $ex) {
-        }
+        } catch (ConduitClientException $ex) {}
       }
     }