]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Various linter fixes
authorJoshua Spence <josh@joshuaspence.com>
Tue, 11 Aug 2015 12:35:40 +0000 (22:35 +1000)
committerJoshua Spence <josh@joshuaspence.com>
Tue, 11 Aug 2015 12:35:40 +0000 (22:35 +1000)
Summary: Self explanatory.

Test Plan: `arc lint`

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: Korvin

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

src/lint/linter/__tests__/ArcanistLinterTestCase.php
src/parser/ArcanistBundle.php
src/repository/api/ArcanistMercurialAPI.php

index c023efd11e0f0d777d6329b6507a9a61867a4755..d4007d2e0a17c05be074f09bc7444c01a6c7e9da 100644 (file)
@@ -65,7 +65,7 @@ abstract class ArcanistLinterTestCase extends PhutilTestCase {
           '~~~~~~~~~~'));
     }
 
-    list ($data, $expect, $xform, $config) = array_merge(
+    list($data, $expect, $xform, $config) = array_merge(
       $contents,
       array(null, null));
 
index a4d855816d97641095fd72b063c1b29aa286b202..8586e281249cc372821309d63f4484fdc9c48b6a 100644 (file)
@@ -819,16 +819,91 @@ final class ArcanistBundle extends Phobject {
     // additional casting.)
 
     static $map = array(
-      '0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
-      'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J',
-      'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T',
-      'U', 'V', 'W', 'X', 'Y', 'Z',
-      'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j',
-      'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't',
-      'u', 'v', 'w', 'x', 'y', 'z',
-      '!', '#', '$', '%', '&', '(', ')', '*', '+', '-',
-      ';', '<', '=', '>', '?', '@', '^', '_', '`', '{',
-      '|', '}', '~',
+      '0',
+      '1',
+      '2',
+      '3',
+      '4',
+      '5',
+      '6',
+      '7',
+      '8',
+      '9',
+      'A',
+      'B',
+      'C',
+      'D',
+      'E',
+      'F',
+      'G',
+      'H',
+      'I',
+      'J',
+      'K',
+      'L',
+      'M',
+      'N',
+      'O',
+      'P',
+      'Q',
+      'R',
+      'S',
+      'T',
+      'U',
+      'V',
+      'W',
+      'X',
+      'Y',
+      'Z',
+      'a',
+      'b',
+      'c',
+      'd',
+      'e',
+      'f',
+      'g',
+      'h',
+      'i',
+      'j',
+      'k',
+      'l',
+      'm',
+      'n',
+      'o',
+      'p',
+      'q',
+      'r',
+      's',
+      't',
+      'u',
+      'v',
+      'w',
+      'x',
+      'y',
+      'z',
+      '!',
+      '#',
+      '$',
+      '%',
+      '&',
+      '(',
+      ')',
+      '*',
+      '+',
+      '-',
+      ';',
+      '<',
+      '=',
+      '>',
+      '?',
+      '@',
+      '^',
+      '_',
+      '`',
+      '{',
+      '|',
+      '}',
+      '~',
     );
 
     $buf = '';
index 4abcea04ddff28dacc9badf5b01df660335f3ab1..33105c202c50cb0a60f8ce4f2bbd5bd1bd15b8e4 100644 (file)
@@ -250,7 +250,7 @@ final class ArcanistMercurialAPI extends ArcanistRepositoryAPI {
         list($node, $rev, $full_author, $date, $branch, $tag,
           $parents, $desc) = explode("\1", $log, 9);
 
-        list ($author, $author_email) = $this->parseFullAuthor($full_author);
+        list($author, $author_email) = $this->parseFullAuthor($full_author);
 
         // NOTE: If a commit has only one parent, {parents} returns empty.
         // If it has two parents, {parents} returns revs and short hashes, not
@@ -535,7 +535,7 @@ final class ArcanistMercurialAPI extends ArcanistRepositoryAPI {
 
   public function supportsRebase() {
     if ($this->supportsRebase === null) {
-      list ($err) = $this->execManualLocal('help rebase');
+      list($err) = $this->execManualLocal('help rebase');
       $this->supportsRebase = $err === 0;
     }
 
@@ -544,7 +544,7 @@ final class ArcanistMercurialAPI extends ArcanistRepositoryAPI {
 
   public function supportsPhases() {
     if ($this->supportsPhases === null) {
-      list ($err) = $this->execManualLocal('help phase');
+      list($err) = $this->execManualLocal('help phase');
       $this->supportsPhases = $err === 0;
     }