Passed
Push — master ( 5a5c41...fade3b )
by Cody
04:50 queued 10s
created
prefs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 		header("Location: install/");
4 4
 	}
5 5
 
6
-	set_include_path(dirname(__FILE__) ."/include" . PATH_SEPARATOR .
6
+	set_include_path(dirname(__FILE__)."/include".PATH_SEPARATOR.
7 7
 		get_include_path());
8 8
 
9 9
 	if (!file_exists("config.php")) {
Please login to merge, or discard this patch.
plugins/af_unburn/init.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
 
70 70
 					$real_url = preg_replace("/\?$/", "", $real_url);
71 71
 
72
-					$article["plugin_data"] = "unburn,$owner_uid:" . $article["plugin_data"];
72
+					$article["plugin_data"] = "unburn,$owner_uid:".$article["plugin_data"];
73 73
 					$article["link"] = $real_url;
74 74
 				}
75 75
 		}
Please login to merge, or discard this patch.
plugins/auth_internal/init.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -271,7 +271,7 @@
 block discarded – undo
271 271
 			list ($algo, $hash, $salt) = explode(":", $row["pwd_hash"]);
272 272
 
273 273
 			if ($algo == "SSHA-512") {
274
-				$test_hash = hash('sha512', $salt . $password);
274
+				$test_hash = hash('sha512', $salt.$password);
275 275
 
276 276
 				if ($test_hash == $hash) {
277 277
 					$usth = $this->pdo->prepare("UPDATE ttrss_app_passwords SET last_used = NOW() WHERE id = ?");
Please login to merge, or discard this patch.
plugins/googlereaderkeys/init.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,11 +24,11 @@
 block discarded – undo
24 24
 		$hotkeys["r"]		= "feed_refresh";
25 25
 		$hotkeys["m"]		= "toggle_unread";
26 26
 		$hotkeys["o"]		= "toggle_expand";
27
-		$hotkeys["\r|Enter"]	= "toggle_expand";
27
+		$hotkeys["\r|Enter"] = "toggle_expand";
28 28
 		$hotkeys["?"]		= "help_dialog";
29 29
 		$hotkeys[" |Space"]	= "next_article";
30 30
 		$hotkeys["(38)|Up"]	= "article_scroll_up";
31
-		$hotkeys["(40)|Down"]	= "article_scroll_down";
31
+		$hotkeys["(40)|Down"] = "article_scroll_down";
32 32
 
33 33
 		return $hotkeys;
34 34
 	}
Please login to merge, or discard this patch.
plugins/af_tumblr_1280/init.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
 			return $article;
27 27
 
28 28
 		$doc = new DOMDocument();
29
-		$doc->loadHTML('<?xml encoding="UTF-8">' . $article["content"]);
29
+		$doc->loadHTML('<?xml encoding="UTF-8">'.$article["content"]);
30 30
 
31 31
 		$found = false;
32 32
 
Please login to merge, or discard this patch.
plugins/af_proxy_http/init.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 		$local_filename = sha1($url);
58 58
 
59 59
 		if ($this->cache->exists($local_filename)) {
60
-			header("Location: " . $this->cache->getUrl($local_filename));
60
+			header("Location: ".$this->cache->getUrl($local_filename));
61 61
 			return;
62 62
 			//$this->cache->send($local_filename);
63 63
 		} else {
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 
70 70
 				if (!$disable_cache) {
71 71
 					if ($this->cache->put($local_filename, $data)) {
72
-						header("Location: " . $this->cache->getUrl($local_filename));
72
+						header("Location: ".$this->cache->getUrl($local_filename));
73 73
 						return;
74 74
 					}
75 75
 				}
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 					/*$bg =*/ imagecolorallocate($img, 255, 255, 255);
87 87
 					$textcolor = imagecolorallocate($img, 255, 0, 0);
88 88
 
89
-					imagerectangle($img, 0, 0, 450-1, 75-1, $textcolor);
89
+					imagerectangle($img, 0, 0, 450 - 1, 75 - 1, $textcolor);
90 90
 
91 91
 					imagestring($img, 5, 5, 5, "Proxy request failed", $textcolor);
92 92
 					imagestring($img, 5, 5, 30, truncate_middle($url, 46, "..."), $textcolor);
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 					print "<h1>Proxy request failed.</h1>";
105 105
 					print "<p>Fetch error $fetch_last_error ($fetch_last_error_code)</p>";
106 106
 					print "<p>URL: $url</p>";
107
-					print "<textarea cols='80' rows='25'>" . htmlspecialchars($fetch_last_error_content) . "</textarea>";
107
+					print "<textarea cols='80' rows='25'>".htmlspecialchars($fetch_last_error_content)."</textarea>";
108 108
 				}
109 109
 			}
110 110
 		}
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
 				if (strpos($url, "data:") !== 0) {
130 130
 					$parts = parse_url($url);
131 131
 
132
-					foreach (explode(" " , $this->ssl_known_whitelist) as $host) {
132
+					foreach (explode(" ", $this->ssl_known_whitelist) as $host) {
133 133
 						if (substr(strtolower($parts['host']), -strlen($host)) === strtolower($host)) {
134 134
 							$parts['scheme'] = 'https';
135 135
 							$url = build_url($parts);
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
 		$proxy_all = $this->host->get($this, "proxy_all");
159 159
 
160 160
 		$doc = new DOMDocument();
161
-		if (@$doc->loadHTML('<?xml encoding="UTF-8">' . $article["content"])) {
161
+		if (@$doc->loadHTML('<?xml encoding="UTF-8">'.$article["content"])) {
162 162
 			$xpath = new DOMXPath($doc);
163 163
 			$imgs = $xpath->query("//img[@src]");
164 164
 
@@ -233,11 +233,11 @@  discard block
 block discarded – undo
233 233
 
234 234
 		$proxy_all = $this->host->get($this, "proxy_all");
235 235
 		print_checkbox("proxy_all", $proxy_all);
236
-		print "&nbsp;<label for=\"proxy_all\">" . __("Enable proxy for all remote images.") . "</label><br/>";
236
+		print "&nbsp;<label for=\"proxy_all\">".__("Enable proxy for all remote images.")."</label><br/>";
237 237
 
238 238
 		$disable_cache = $this->host->get($this, "disable_cache");
239 239
 		print_checkbox("disable_cache", $disable_cache);
240
-		print "&nbsp;<label for=\"disable_cache\">" . __("Don't cache files locally.") . "</label>";
240
+		print "&nbsp;<label for=\"disable_cache\">".__("Don't cache files locally.")."</label>";
241 241
 
242 242
 		print "<p>"; print_button("submit", __("Save"));
243 243
 
Please login to merge, or discard this patch.
plugins/auto_assign_labels/init.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
 		foreach ($labels as $label) {
41 41
 			$caption = preg_quote($label[1], "/");
42 42
 
43
-			if ($caption && preg_match("/\b$caption\b/i", "$tags_str " . strip_tags($article["content"]) . " " . $article["title"])) {
43
+			if ($caption && preg_match("/\b$caption\b/i", "$tags_str ".strip_tags($article["content"])." ".$article["title"])) {
44 44
 
45 45
 				if (!RSSUtils::labels_contains_caption($article["labels"], $caption)) {
46 46
 					array_push($article["labels"], $label);
Please login to merge, or discard this patch.
plugins/af_readability/init.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 			print_error("This plugin requires PHP 7.0.");
57 57
 		} else {
58 58
 
59
-			print "<h2>" . __("Global settings") . "</h2>";
59
+			print "<h2>".__("Global settings")."</h2>";
60 60
 
61 61
 			print_notice("Enable for specific feeds in the feed editor.");
62 62
 
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 			print "<fieldset>";
86 86
 			print "<label class='checkbox'> ";
87 87
 			print_checkbox("enable_share_anything", $enable_share_anything);
88
-			print " " . __("Provide full-text services to core code (bookmarklets) and other plugins");
88
+			print " ".__("Provide full-text services to core code (bookmarklets) and other plugins");
89 89
 			print "</label>";
90 90
 			print "</fieldset>";
91 91
 
@@ -99,13 +99,13 @@  discard block
 block discarded – undo
99 99
 			$this->host->set($this, "enabled_feeds", $enabled_feeds);
100 100
 
101 101
 			if (count($enabled_feeds) > 0) {
102
-				print "<h3>" . __("Currently enabled for (click to edit):") . "</h3>";
102
+				print "<h3>".__("Currently enabled for (click to edit):")."</h3>";
103 103
 
104 104
 				print "<ul class='panel panel-scrollable list list-unstyled'>";
105 105
 				foreach ($enabled_feeds as $f) {
106 106
 					print "<li><i class='material-icons'>rss_feed</i> <a href='#'
107 107
 						onclick='CommonDialogs.editFeed($f)'>".
108
-						Feeds::getFeedTitle($f) . "</a></li>";
108
+						Feeds::getFeedTitle($f)."</a></li>";
109 109
 				}
110 110
 				print "</ul>";
111 111
 			}
Please login to merge, or discard this patch.
plugins/af_readability/vendor/andreskrey/Readability/Nodes/NodeTrait.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -328,7 +328,7 @@  discard block
 block discarded – undo
328 328
         $ret = iterator_to_array($this->childNodes);
329 329
         if ($filterEmptyDOMText) {
330 330
             // Array values is used to discard the key order. Needs to be 0 to whatever without skipping any number
331
-            $ret = array_values(array_filter($ret, function ($node) {
331
+            $ret = array_values(array_filter($ret, function($node) {
332 332
                 return $node->nodeName !== '#text' || mb_strlen(trim($node->nodeValue));
333 333
             }));
334 334
         }
@@ -427,7 +427,7 @@  discard block
 block discarded – undo
427 427
         }
428 428
 
429 429
         // And there should be no text nodes with real content
430
-        return array_reduce(iterator_to_array($children), function ($carry, $child) {
430
+        return array_reduce(iterator_to_array($children), function($carry, $child) {
431 431
             if (!$carry === false) {
432 432
                 return false;
433 433
             }
@@ -480,7 +480,7 @@  discard block
 block discarded – undo
480 480
                  * are dealing with (And at this point we know they are empty or are just whitespace, because of the
481 481
                  * mb_strlen in this chain of checks).
482 482
                  */
483
-                + count(array_filter(iterator_to_array($this->childNodes), function ($child) {
483
+                + count(array_filter(iterator_to_array($this->childNodes), function($child) {
484 484
                     return $child instanceof DOMText;
485 485
                 }))
486 486
 
@@ -498,7 +498,7 @@  discard block
 block discarded – undo
498 498
         return $this->nodeType === XML_TEXT_NODE || in_array($this->nodeName, $this->phrasing_elems) !== false ||
499 499
             (!is_null($this->childNodes) &&
500 500
                 ($this->nodeName === 'a' || $this->nodeName === 'del' || $this->nodeName === 'ins') &&
501
-                array_reduce(iterator_to_array($this->childNodes), function ($carry, $node) {
501
+                array_reduce(iterator_to_array($this->childNodes), function($carry, $node) {
502 502
                     return $node->isPhrasingContent() && $carry;
503 503
                 }, true)
504 504
             );
Please login to merge, or discard this patch.