Passed
Push — master ( 0b9e3e...5a5c41 )
by Cody
04:44
created
plugins/search_sphinx/init.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 			user_error("Your PHP has a separate systemwide Sphinx client installed which conflicts with the client library used by tt-rss. Either remove the system library or disable Sphinx support.");
18 18
 		}
19 19
 
20
-		require_once __DIR__ . "/sphinxapi.php";
20
+		require_once __DIR__."/sphinxapi.php";
21 21
 	}
22 22
 
23 23
 	function hook_search($search) {
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 
29 29
 		$sphinxpair = explode(":", SPHINX_SERVER, 2);
30 30
 
31
-		$sphinxClient->SetServer($sphinxpair[0], (int)$sphinxpair[1]);
31
+		$sphinxClient->SetServer($sphinxpair[0], (int) $sphinxpair[1]);
32 32
 		$sphinxClient->SetConnectTimeout(1);
33 33
 
34 34
 		$sphinxClient->SetFieldWeights(array('title' => 70, 'content' => 30,
Please login to merge, or discard this patch.
plugins/af_zz_vidmute/init.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 	}
14 14
 
15 15
 	function get_js() {
16
-		return file_get_contents(__DIR__ . "/init.js");
16
+		return file_get_contents(__DIR__."/init.js");
17 17
 	}
18 18
 
19 19
 	function api_version() {
Please login to merge, or discard this patch.
plugins/auth_remote/init.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 	}
14 14
 
15 15
 	/* @var PluginHost $host */
16
-	function init($host ) {
16
+	function init($host) {
17 17
 		$this->host = $host;
18 18
 		$this->base = new Auth_Base();
19 19
 
@@ -59,16 +59,16 @@  discard block
 block discarded – undo
59 59
 				$_SESSION["hide_logout"] = true;
60 60
 
61 61
 				// LemonLDAP can send user informations via HTTP HEADER
62
-				if (defined('AUTH_AUTO_CREATE') && AUTH_AUTO_CREATE){
62
+				if (defined('AUTH_AUTO_CREATE') && AUTH_AUTO_CREATE) {
63 63
 					// update user name
64 64
 					$fullname = $_SERVER['HTTP_USER_NAME'] ? $_SERVER['HTTP_USER_NAME'] : $_SERVER['AUTHENTICATE_CN'];
65
-					if ($fullname){
65
+					if ($fullname) {
66 66
 						$sth = $this->pdo->prepare("UPDATE ttrss_users SET full_name = ? WHERE id = ?");
67 67
 						$sth->execute([$fullname, $user_id]);
68 68
 					}
69 69
 					// update user mail
70 70
 					$email = $_SERVER['HTTP_USER_MAIL'] ? $_SERVER['HTTP_USER_MAIL'] : $_SERVER['AUTHENTICATE_MAIL'];
71
-					if ($email){
71
+					if ($email) {
72 72
 						$sth = $this->pdo->prepare("UPDATE ttrss_users SET email = ? WHERE id = ?");
73 73
 						$sth->execute([$email, $user_id]);
74 74
 					}
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/mail/init.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 	}
19 19
 
20 20
 	function get_js() {
21
-		return file_get_contents(dirname(__FILE__) . "/mail.js");
21
+		return file_get_contents(dirname(__FILE__)."/mail.js");
22 22
 	}
23 23
 
24 24
 	function save() {
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 		print "<div dojoType=\"dijit.layout.AccordionPane\" 
36 36
 			title=\"<i class='material-icons'>mail</i> ".__('Mail plugin')."\">";
37 37
 
38
-		print "<p>" . __("You can set predefined email addressed here (comma-separated list):") . "</p>";
38
+		print "<p>".__("You can set predefined email addressed here (comma-separated list):")."</p>";
39 39
 
40 40
 		print "<form dojoType=\"dijit.form.Form\">";
41 41
 
@@ -115,17 +115,17 @@  discard block
 block discarded – undo
115 115
 		$sth->execute(array_merge($ids, [$_SESSION['uid']]));
116 116
 
117 117
 		if (count($ids) > 1) {
118
-			$subject = __("[Forwarded]") . " " . __("Multiple articles");
118
+			$subject = __("[Forwarded]")." ".__("Multiple articles");
119 119
 		}
120 120
 
121 121
 		while ($line = $sth->fetch()) {
122 122
 
123 123
 			if (!$subject)
124
-				$subject = __("[Forwarded]") . " " . htmlspecialchars($line["title"]);
124
+				$subject = __("[Forwarded]")." ".htmlspecialchars($line["title"]);
125 125
 
126 126
 			$tpl->setVariable('ARTICLE_TITLE', strip_tags($line["title"]));
127 127
 			$tnote = strip_tags($line["note"]);
128
-			if( $tnote != ''){
128
+			if ($tnote != '') {
129 129
 				$tpl->setVariable('ARTICLE_NOTE', $tnote, true);
130 130
 				$tpl->addBlock('note');
131 131
 			}
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
 			"message" => $message]);
211 211
 
212 212
 		if (!$rc) {
213
-			$reply['error'] =  $mailer->error();
213
+			$reply['error'] = $mailer->error();
214 214
 		} else {
215 215
 			//save_email_address($destination);
216 216
 			$reply['message'] = "UPDATE_COUNTERS";
Please login to merge, or discard this patch.