Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14399700
D9435.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
9 KB
Referenced Files
None
Subscribers
None
D9435.diff
View Options
diff --git a/src/filesystem/__tests__/FileFinderTestCase.php b/src/filesystem/__tests__/FileFinderTestCase.php
--- a/src/filesystem/__tests__/FileFinderTestCase.php
+++ b/src/filesystem/__tests__/FileFinderTestCase.php
@@ -6,7 +6,7 @@
final class FileFinderTestCase extends PhutilTestCase {
protected function getFinder() {
- $finder = new FileFinder(dirname(__FILE__) . '/data');
+ $finder = new FileFinder(dirname(__FILE__).'/data');
$finder->excludePath('./exclude')
->excludePath('subdir.txt');
return $finder;
diff --git a/src/future/wordpress/PhutilWordPressFuture.php b/src/future/wordpress/PhutilWordPressFuture.php
--- a/src/future/wordpress/PhutilWordPressFuture.php
+++ b/src/future/wordpress/PhutilWordPressFuture.php
@@ -54,7 +54,7 @@
$future->setMethod($this->method);
// NOTE: This is how WordPress.com REST API authenticates
- $future->addHeader('Authorization', 'Bearer ' . $this->accessToken);
+ $future->addHeader('Authorization', 'Bearer '.$this->accessToken);
$this->future = $future;
}
diff --git a/src/grammar/PhutilContextFreeGrammar.php b/src/grammar/PhutilContextFreeGrammar.php
--- a/src/grammar/PhutilContextFreeGrammar.php
+++ b/src/grammar/PhutilContextFreeGrammar.php
@@ -84,7 +84,7 @@
private static function strPadLines($text, $num_spaces = 2) {
$text_lines = phutil_split_lines($text);
foreach ($text_lines as $linenr => $line) {
- $text_lines[$linenr] = str_repeat(' ', $num_spaces) . $line;
+ $text_lines[$linenr] = str_repeat(' ', $num_spaces).$line;
}
return implode('', $text_lines);
diff --git a/src/grammar/code/PhutilCodeSnippetContextFreeGrammar.php b/src/grammar/code/PhutilCodeSnippetContextFreeGrammar.php
--- a/src/grammar/code/PhutilCodeSnippetContextFreeGrammar.php
+++ b/src/grammar/code/PhutilCodeSnippetContextFreeGrammar.php
@@ -12,7 +12,7 @@
public function generate() {
// A trailing newline is favorable for source code
- return trim(parent::generate()) . "\n";
+ return trim(parent::generate())."\n";
}
final protected function getRules() {
diff --git a/src/markup/engine/remarkup/blockrule/PhutilRemarkupEngineRemarkupHeaderBlockRule.php b/src/markup/engine/remarkup/blockrule/PhutilRemarkupEngineRemarkupHeaderBlockRule.php
--- a/src/markup/engine/remarkup/blockrule/PhutilRemarkupEngineRemarkupHeaderBlockRule.php
+++ b/src/markup/engine/remarkup/blockrule/PhutilRemarkupEngineRemarkupHeaderBlockRule.php
@@ -12,7 +12,7 @@
$num_lines = 1;
} else {
if (isset($lines[$cursor + 1])) {
- $line = $lines[$cursor] . $lines[$cursor + 1];
+ $line = $lines[$cursor].$lines[$cursor + 1];
if (preg_match('/^([^\n]+)\n[-=]{2,}\s*$/', $line)) {
$num_lines = 2;
$cursor++;
diff --git a/src/markup/syntax/highlighter/__tests__/phpfragment/abuse.expect b/src/markup/syntax/highlighter/__tests__/phpfragment/abuse.expect
--- a/src/markup/syntax/highlighter/__tests__/phpfragment/abuse.expect
+++ b/src/markup/syntax/highlighter/__tests__/phpfragment/abuse.expect
@@ -13,4 +13,4 @@
data data
<?php
-data
\ No newline at end of file
+data
diff --git a/src/markup/syntax/highlighter/__tests__/phpfragment/abuse.test b/src/markup/syntax/highlighter/__tests__/phpfragment/abuse.test
--- a/src/markup/syntax/highlighter/__tests__/phpfragment/abuse.test
+++ b/src/markup/syntax/highlighter/__tests__/phpfragment/abuse.test
@@ -13,4 +13,4 @@
data data
<?php
-data
\ No newline at end of file
+data
diff --git a/src/parser/__tests__/docblock/embedded-specials.docblock b/src/parser/__tests__/docblock/embedded-specials.docblock
--- a/src/parser/__tests__/docblock/embedded-specials.docblock
+++ b/src/parser/__tests__/docblock/embedded-specials.docblock
@@ -1,4 +1,4 @@
/**
* So long as a @special does not appear at the beginning of a line,
* it is parsed as normal text.
- */
\ No newline at end of file
+ */
diff --git a/src/parser/__tests__/docblock/flag-specials.docblock b/src/parser/__tests__/docblock/flag-specials.docblock
--- a/src/parser/__tests__/docblock/flag-specials.docblock
+++ b/src/parser/__tests__/docblock/flag-specials.docblock
@@ -12,4 +12,4 @@
* @apple
*
* stuff below
- */
\ No newline at end of file
+ */
diff --git a/src/parser/__tests__/docblock/linebreak-breaks-specials.docblock b/src/parser/__tests__/docblock/linebreak-breaks-specials.docblock
--- a/src/parser/__tests__/docblock/linebreak-breaks-specials.docblock
+++ b/src/parser/__tests__/docblock/linebreak-breaks-specials.docblock
@@ -2,4 +2,4 @@
* @title title
*
* This is normal text, not part of the @title.
- */
\ No newline at end of file
+ */
diff --git a/src/parser/__tests__/docblock/multiline-special.docblock b/src/parser/__tests__/docblock/multiline-special.docblock
--- a/src/parser/__tests__/docblock/multiline-special.docblock
+++ b/src/parser/__tests__/docblock/multiline-special.docblock
@@ -2,4 +2,4 @@
* @special x
* y
* z
- */
\ No newline at end of file
+ */
diff --git a/src/parser/__tests__/languageguesser/bash.shebang b/src/parser/__tests__/languageguesser/bash.shebang
--- a/src/parser/__tests__/languageguesser/bash.shebang
+++ b/src/parser/__tests__/languageguesser/bash.shebang
@@ -1,3 +1,3 @@
#!/bin/bash
-exit 1;
\ No newline at end of file
+exit 1;
diff --git a/src/parser/__tests__/languageguesser/console.path b/src/parser/__tests__/languageguesser/console.path
--- a/src/parser/__tests__/languageguesser/console.path
+++ b/src/parser/__tests__/languageguesser/console.path
@@ -5,4 +5,4 @@
chmod echo link pwd sync
cp ed ln rcp tcsh
csh expr ls rm test
-date hostname mkdir rmdir unlink
\ No newline at end of file
+date hostname mkdir rmdir unlink
diff --git a/src/parser/__tests__/languageguesser/console.prompt b/src/parser/__tests__/languageguesser/console.prompt
--- a/src/parser/__tests__/languageguesser/console.prompt
+++ b/src/parser/__tests__/languageguesser/console.prompt
@@ -5,4 +5,4 @@
chmod echo link pwd sync
cp ed ln rcp tcsh
csh expr ls rm test
-date hostname mkdir rmdir unlink
\ No newline at end of file
+date hostname mkdir rmdir unlink
diff --git a/src/parser/__tests__/languageguesser/diff.git b/src/parser/__tests__/languageguesser/diff.git
--- a/src/parser/__tests__/languageguesser/diff.git
+++ b/src/parser/__tests__/languageguesser/diff.git
@@ -4,4 +4,4 @@
+++ b/some_file
@@ -1 +1 @@
-apple
-+banana
\ No newline at end of file
++banana
diff --git a/src/parser/__tests__/languageguesser/diff.udiff b/src/parser/__tests__/languageguesser/diff.udiff
--- a/src/parser/__tests__/languageguesser/diff.udiff
+++ b/src/parser/__tests__/languageguesser/diff.udiff
@@ -2,4 +2,4 @@
+++ other_file 2012-05-20 19:35:23.000000000 -0700
@@ -1 +1 @@
-apple
-+banana
\ No newline at end of file
++banana
diff --git a/src/parser/__tests__/languageguesser/nothing-useful b/src/parser/__tests__/languageguesser/nothing-useful
--- a/src/parser/__tests__/languageguesser/nothing-useful
+++ b/src/parser/__tests__/languageguesser/nothing-useful
@@ -1,2 +1,2 @@
derp derp derp derp derp derp derp derp derp derp derp derp derp derp
-herp derp herp derp herp derp herp derp herp derp herp derp herp derp
\ No newline at end of file
+herp derp herp derp herp derp herp derp herp derp herp derp herp derp
diff --git a/src/parser/__tests__/languageguesser/php.shell b/src/parser/__tests__/languageguesser/php.shell
--- a/src/parser/__tests__/languageguesser/php.shell
+++ b/src/parser/__tests__/languageguesser/php.shell
@@ -1,3 +1,3 @@
#!/usr/bin/php
-exit(1);
\ No newline at end of file
+exit(1);
diff --git a/src/parser/__tests__/languageguesser/php.shell-env b/src/parser/__tests__/languageguesser/php.shell-env
--- a/src/parser/__tests__/languageguesser/php.shell-env
+++ b/src/parser/__tests__/languageguesser/php.shell-env
@@ -1,3 +1,3 @@
#!/usr/bin/env php
-exit(1);
\ No newline at end of file
+exit(1);
diff --git a/src/parser/__tests__/languageguesser/php.test b/src/parser/__tests__/languageguesser/php.test
--- a/src/parser/__tests__/languageguesser/php.test
+++ b/src/parser/__tests__/languageguesser/php.test
@@ -1,3 +1,3 @@
<?php
-exit(1);
\ No newline at end of file
+exit(1);
diff --git a/src/parser/__tests__/languageguesser/py.emacs-mode b/src/parser/__tests__/languageguesser/py.emacs-mode
--- a/src/parser/__tests__/languageguesser/py.emacs-mode
+++ b/src/parser/__tests__/languageguesser/py.emacs-mode
@@ -1,3 +1,3 @@
// -*- mode: py -*-
-from future import braces;
\ No newline at end of file
+from future import braces;
diff --git a/src/parser/__tests__/languageguesser/sh.shebang b/src/parser/__tests__/languageguesser/sh.shebang
--- a/src/parser/__tests__/languageguesser/sh.shebang
+++ b/src/parser/__tests__/languageguesser/sh.shebang
@@ -1,3 +1,3 @@
#!/bin/sh
-exit 1;
\ No newline at end of file
+exit 1;
diff --git a/src/xsprintf/qsprintf.php b/src/xsprintf/qsprintf.php
--- a/src/xsprintf/qsprintf.php
+++ b/src/xsprintf/qsprintf.php
@@ -197,8 +197,8 @@
$value = $escaper->escapeStringForLikeClause($value);
switch ($type) {
case '~': $value = "'%".$value."%'"; break;
- case '>': $value = "'" .$value."%'"; break;
- case '<': $value = "'%".$value. "'"; break;
+ case '>': $value = "'".$value."%'"; break;
+ case '<': $value = "'%".$value."'"; break;
}
$type = 's';
break;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 23, 5:34 PM (12 h, 40 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6921693
Default Alt Text
D9435.diff (9 KB)
Attached To
Mode
D9435: Apply various linter fixes.
Attached
Detach File
Event Timeline
Log In to Comment