]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Minor reordering of functions
authorJoshua Spence <josh@joshuaspence.com>
Mon, 22 Sep 2014 08:42:41 +0000 (18:42 +1000)
committerJoshua Spence <josh@joshuaspence.com>
Mon, 22 Sep 2014 08:42:41 +0000 (18:42 +1000)
Summary: This seems somewhat neater to me, YMMV.

Test Plan: N/A

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

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

src/lint/linter/ArcanistMergeConflictLinter.php

index 2affdf88f7cf3f52cb5d0276bc47aef441cd0919..804af19f343e44d7516a67fc1df431808a791344 100644 (file)
@@ -25,6 +25,12 @@ final class ArcanistMergeConflictLinter extends ArcanistLinter {
     return 'merge-conflict';
   }
 
+  public function getLintNameMap() {
+    return array(
+      self::LINT_MERGECONFLICT => pht('Unresolved merge conflict'),
+    );
+  }
+
   public function lintPath($path) {
     $lines = phutil_split_lines($this->getData($path), false);
 
@@ -41,10 +47,4 @@ final class ArcanistMergeConflictLinter extends ArcanistLinter {
     }
   }
 
-  public function getLintNameMap() {
-    return array(
-      self::LINT_MERGECONFLICT => pht('Unresolved merge conflict'),
-    );
-  }
-
 }