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 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;