From 9fbf316d385b155a6a9dcedd8d6dd739ee34b15f Mon Sep 17 00:00:00 2001 From: Joshua Spence Date: Tue, 25 Feb 2014 07:53:06 -0800 Subject: [PATCH] Various linter fixes 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 | 2 +- src/lint/linter/ArcanistScriptAndRegexLinter.php | 2 +- src/unit/engine/PhpunitTestEngine.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/test/diverse_symbols.php.example b/resources/test/diverse_symbols.php.example index 1049c180..e9a4df07 100644 --- a/resources/test/diverse_symbols.php.example +++ b/resources/test/diverse_symbols.php.example @@ -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); diff --git a/src/lint/linter/ArcanistScriptAndRegexLinter.php b/src/lint/linter/ArcanistScriptAndRegexLinter.php index 8657ae20..978b32f2 100644 --- a/src/lint/linter/ArcanistScriptAndRegexLinter.php +++ b/src/lint/linter/ArcanistScriptAndRegexLinter.php @@ -278,7 +278,7 @@ final class ArcanistScriptAndRegexLinter extends ArcanistLinter { public function getLinterConfigurationName() { return 'script-and-regex'; } - + /* -( Parsing Output )----------------------------------------------------- */ diff --git a/src/unit/engine/PhpunitTestEngine.php b/src/unit/engine/PhpunitTestEngine.php index 95ea8adc..19fa87e2 100644 --- a/src/unit/engine/PhpunitTestEngine.php +++ b/src/unit/engine/PhpunitTestEngine.php @@ -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();