]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Minor linter fixes
authorJoshua Spence <josh@joshuaspence.com>
Thu, 14 May 2015 21:09:30 +0000 (07:09 +1000)
committerJoshua Spence <josh@joshuaspence.com>
Thu, 14 May 2015 21:09:30 +0000 (07:09 +1000)
Summary: Minor linter fixes.

Test Plan: `arc lint`

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin, epriestley

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

src/workflow/ArcanistBackoutWorkflow.php
src/workflow/ArcanistBookmarkWorkflow.php
src/workflow/ArcanistBranchWorkflow.php
src/workflow/ArcanistLiberateWorkflow.php

index bd554e1871279f31ddfa3e9724b0aa4e1c63a342..cdd261195ea16b03ac5f1c364967475044caeff5 100644 (file)
@@ -183,7 +183,8 @@ EOTEXT
     // Create commit message and execute the commit
     $message = $this->buildCommitMessage($commit_hash);
     $repository_api->doCommit($message);
-    $console->writeOut(pht('Double-check the commit and push when ready.')."\n");
+    $console->writeOut("%s\n",
+      pht('Double-check the commit and push when ready.'));
   }
 
 }
index 131c21b3cb876f99e20b7e690c5f4cb772c9bba2..3fadb3432febc01e341db2845deaeb5de6e4da30 100644 (file)
@@ -29,8 +29,4 @@ EOTEXT
     return array('hg');
   }
 
-  public function run() {
-    return parent::run();
-  }
-
 }
index 7c980ef430b8ca71403a18a6a3c0c9ac1fb56bbb..527ac15de54f6299535f468633c5b8747ef2b70f 100644 (file)
@@ -29,8 +29,4 @@ EOTEXT
     return array('git');
   }
 
-  public function run() {
-    return parent::run();
-  }
-
 }
index c7fe1bd9af6537cd959b89962a1c7043d2dab21b..efca1bf5331cf360109e49553bf0f849152578a7 100644 (file)
@@ -223,8 +223,10 @@ EOTEXT
       if (preg_match('/^[a-z-]+$/', $name)) {
         break;
       } else {
-        echo pht(
-          'Library name should contain only lowercase letters and hyphens.')."\n";
+        echo phutil_console_format(
+          "%s\n",
+          pht(
+          'Library name should contain only lowercase letters and hyphens.'));
       }
     } while (true);