Passed
Branch master (a3c0d0)
by Cody
02:54
created
include/autoload.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -5,8 +5,9 @@  discard block
 block discarded – undo
5 5
 		$namespace = '';
6 6
 		$class_name = $class;
7 7
 
8
-		if (strpos($class, '\\') !== FALSE)
9
-			list ($namespace, $class_name) = explode('\\', $class, 2);
8
+		if (strpos($class, '\\') !== FALSE) {
9
+					list ($namespace, $class_name) = explode('\\', $class, 2);
10
+		}
10 11
 
11 12
 		$root_dir = dirname(__DIR__); // we're in tt-rss/include
12 13
 
@@ -20,7 +21,8 @@  discard block
 block discarded – undo
20 21
 			$class_file = "$root_dir/classes/" . str_replace("_", "/", strtolower($class)) . ".php";
21 22
 		}
22 23
 
23
-		if (file_exists($class_file))
24
-			include $class_file;
24
+		if (file_exists($class_file)) {
25
+					include $class_file;
26
+		}
25 27
 
26 28
 	});
Please login to merge, or discard this patch.
plugins/auth_internal/init.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -99,8 +99,9 @@
 block discarded – undo
99 99
 		if ($service && get_schema_version() > 138) {
100 100
 			$user_id = $this->check_app_password($login, $password, $service);
101 101
 
102
-			if ($user_id)
103
-				return $user_id;
102
+			if ($user_id) {
103
+							return $user_id;
104
+			}
104 105
 		}
105 106
 
106 107
 		if (get_schema_version() > 87) {
Please login to merge, or discard this patch.
plugins/no_iframes/init.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,8 +23,9 @@
 block discarded – undo
23 23
 		$entries = $xpath->query('//iframe');
24 24
 
25 25
 		foreach ($entries as $entry) {
26
-			if (!iframe_whitelisted($entry))
27
-				$entry->parentNode->removeChild($entry);
26
+			if (!iframe_whitelisted($entry)) {
27
+							$entry->parentNode->removeChild($entry);
28
+			}
28 29
 		}
29 30
 
30 31
 		return array($doc, $allowed_elements, $disallowed_attributes);
Please login to merge, or discard this patch.
plugins/af_comics/filters/af_comics_whomp.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,8 +14,9 @@
 block discarded – undo
14 14
 
15 15
 			global $fetch_last_error_content;
16 16
 
17
-			if (!$res && $fetch_last_error_content)
18
-				$res = $fetch_last_error_content;
17
+			if (!$res && $fetch_last_error_content) {
18
+							$res = $fetch_last_error_content;
19
+			}
19 20
 
20 21
 			$doc = new DOMDocument();
21 22
 
Please login to merge, or discard this patch.
plugins/af_comics/filters/af_comics_darklegacy.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,8 +15,9 @@
 block discarded – undo
15 15
 
16 16
 				global $fetch_last_error_content;
17 17
 
18
-				if (!$res && $fetch_last_error_content)
19
-					$res = $fetch_last_error_content;
18
+				if (!$res && $fetch_last_error_content) {
19
+									$res = $fetch_last_error_content;
20
+				}
20 21
 
21 22
 				$doc = new DOMDocument();
22 23
 
Please login to merge, or discard this patch.
plugins/af_comics/filters/af_comics_pa.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,8 +46,9 @@
 block discarded – undo
46 46
 
47 47
 					$avatar = $xpath->query('(//div[@class="avatar"]//img)')->item(0);
48 48
 
49
-					if ($basenode)
50
-						$basenode->insertBefore($avatar, $basenode->firstChild);
49
+					if ($basenode) {
50
+											$basenode->insertBefore($avatar, $basenode->firstChild);
51
+					}
51 52
 
52 53
 					$uninteresting = $xpath->query('(//div[@class="avatar"])');
53 54
 					foreach ($uninteresting as $i) {
Please login to merge, or discard this patch.
plugins/af_comics/filters/af_comics_cad.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,8 +17,9 @@
 block discarded – undo
17 17
 					false, false, 0,
18 18
 					"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0");
19 19
 
20
-				if (!$res && $fetch_last_error_content)
21
-					$res = $fetch_last_error_content;
20
+				if (!$res && $fetch_last_error_content) {
21
+									$res = $fetch_last_error_content;
22
+				}
22 23
 
23 24
 				if (@$doc->loadHTML($res)) {
24 25
 					$xpath = new DOMXPath($doc);
Please login to merge, or discard this patch.
plugins/cache_starred_images/init.php 1 patch
Braces   +15 added lines, -10 removed lines patch added patch discarded remove patch
@@ -17,11 +17,13 @@  discard block
 block discarded – undo
17 17
 		$this->host = $host;
18 18
 		$this->cache = new DiskCache("starred-images");
19 19
 
20
-		if ($this->cache->makeDir())
21
-			chmod($this->cache->getDir(), 0777);
20
+		if ($this->cache->makeDir()) {
21
+					chmod($this->cache->getDir(), 0777);
22
+		}
22 23
 
23
-		if (!$this->cache->exists(".no-auto-expiry"))
24
-			$this->cache->touch(".no-auto-expiry");
24
+		if (!$this->cache->exists(".no-auto-expiry")) {
25
+					$this->cache->touch(".no-auto-expiry");
26
+		}
25 27
 
26 28
 		if ($this->cache->isWritable()) {
27 29
 			$host->add_hook($host::HOOK_HOUSE_KEEPING, $this);
@@ -141,8 +143,10 @@  discard block
 block discarded – undo
141 143
 
142 144
 			$data = fetch_file_contents(["url" => $url, "max_size" => MAX_CACHE_FILE_SIZE]);
143 145
 
144
-			if ($data)
145
-				return $this->cache->put($local_filename, $data);;
146
+			if ($data) {
147
+							return $this->cache->put($local_filename, $data);
148
+			}
149
+			;
146 150
 
147 151
 		} else {
148 152
 			//Debug::log("cache_images: local file exists for $url", Debug::$LOG_VERBOSE);
@@ -167,10 +171,11 @@  discard block
 block discarded – undo
167 171
 
168 172
 		Debug::log("status: $status_filename", Debug::$LOG_VERBOSE);
169 173
 
170
-        if ($this->cache->exists($status_filename))
171
-            $status = json_decode($this->cache->get($status_filename), true);
172
-        else
173
-            $status = [];
174
+        if ($this->cache->exists($status_filename)) {
175
+                    $status = json_decode($this->cache->get($status_filename), true);
176
+        } else {
177
+                    $status = [];
178
+        }
174 179
 
175 180
         $status["attempt"] += 1;
176 181
 
Please login to merge, or discard this patch.
plugins/mailto/init.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,8 +53,9 @@
 block discarded – undo
53 53
 
54 54
 		while ($line = $sth->fetch()) {
55 55
 
56
-			if (!$subject)
57
-				$subject = __("[Forwarded]") . " " . htmlspecialchars($line["title"]);
56
+			if (!$subject) {
57
+							$subject = __("[Forwarded]") . " " . htmlspecialchars($line["title"]);
58
+			}
58 59
 
59 60
 			$tpl->setVariable('ARTICLE_TITLE', strip_tags($line["title"]));
60 61
 			$tpl->setVariable('ARTICLE_URL', strip_tags($line["link"]));
Please login to merge, or discard this patch.