]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Various linter fixes
authorJoshua Spence <josh@joshuaspence.com>
Tue, 25 Feb 2014 15:53:06 +0000 (07:53 -0800)
committerepriestley <git@epriestley.com>
Tue, 25 Feb 2014 15:53:07 +0000 (07:53 -0800)
Summary:
Fixed various linter issues that were identified by running `arc lint --everything`.

- Removed trailing whitespace.
- Added newline at EOF.
- Added whitespace after `if` statement

Test Plan: N/A

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley

CC: aurelijus, Korvin, epriestley, aran
Differential Revision: https://secure.phabricator.com/D8337

resources/test/diverse_symbols.php.example
src/lint/linter/ArcanistScriptAndRegexLinter.php
src/unit/engine/PhpunitTestEngine.php

index 1049c180ae979c6f36e3fe0f1a38398595e0003f..e9a4df07911745c0544d05c0014b9ca49b3a114e 100644 (file)
@@ -53,4 +53,4 @@ exit($x);
 include($x);
 include_once($x);
 require($x);
-require_once($x);
\ No newline at end of file
+require_once($x);
index 8657ae200eb25677fcea2b7f7d86699feb6c104a..978b32f202456c2f3832b87966ea821d8cd305e3 100644 (file)
@@ -278,7 +278,7 @@ final class ArcanistScriptAndRegexLinter extends ArcanistLinter {
   public function getLinterConfigurationName() {
     return 'script-and-regex';
   }
-  
+
 /* -(  Parsing Output  )----------------------------------------------------- */
 
 
index 95ea8adcbdd0e738f0f3f0b562eefb909e2efb1e..19fa87e232e72437efc0bba8c22c08544f897441 100644 (file)
@@ -58,7 +58,7 @@ final class PhpunitTestEngine extends ArcanistBaseUnitTestEngine {
     $futures = array();
     $tmpfiles = array();
     foreach ($this->affectedTests as $class_path => $test_path) {
-      if(!Filesystem::pathExists($test_path)) {
+      if (!Filesystem::pathExists($test_path)) {
         continue;
       }
       $json_tmp = new TempFile();