Passed
Push — master ( 0b9e3e...5a5c41 )
by Cody
04:44
created
plugins/af_fsckportal/init.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 
20 20
 			$doc = new DOMDocument();
21 21
 
22
-			@$doc->loadHTML('<?xml encoding="UTF-8">' . $article["content"]);
22
+			@$doc->loadHTML('<?xml encoding="UTF-8">'.$article["content"]);
23 23
 
24 24
 			if ($doc) {
25 25
 				$xpath = new DOMXPath($doc);
Please login to merge, or discard this patch.
classes/db.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 
20 20
 	private function legacy_connect() {
21 21
 
22
-		user_error("Legacy connect requested to " . DB_TYPE, E_USER_NOTICE);
22
+		user_error("Legacy connect requested to ".DB_TYPE, E_USER_NOTICE);
23 23
 
24 24
 		$er = error_reporting(E_ALL);
25 25
 
@@ -31,18 +31,18 @@  discard block
 block discarded – undo
31 31
 				$this->adapter = new Db_Pgsql();
32 32
 				break;
33 33
 			default:
34
-				die("Unknown DB_TYPE: " . DB_TYPE);
34
+				die("Unknown DB_TYPE: ".DB_TYPE);
35 35
 		}
36 36
 
37 37
 		if (!$this->adapter) {
38
-			print("Error initializing database adapter for " . DB_TYPE);
38
+			print("Error initializing database adapter for ".DB_TYPE);
39 39
 			exit(100);
40 40
 		}
41 41
 
42 42
 		$this->link = $this->adapter->connect(DB_HOST, DB_USER, DB_PASS, DB_NAME, defined('DB_PORT') ? DB_PORT : "");
43 43
 
44 44
 		if (!$this->link) {
45
-			print("Error connecting through adapter: " . $this->adapter->last_error());
45
+			print("Error connecting through adapter: ".$this->adapter->last_error());
46 46
 			exit(101);
47 47
 		}
48 48
 
@@ -53,15 +53,15 @@  discard block
 block discarded – undo
53 53
 	// normal usage is Db::pdo()->prepare(...) etc
54 54
 	public function pdo_connect() {
55 55
 
56
-		$db_port = defined('DB_PORT') && DB_PORT ? ';port=' . DB_PORT : '';
57
-		$db_host = defined('DB_HOST') && DB_HOST ? ';host=' . DB_HOST : '';
56
+		$db_port = defined('DB_PORT') && DB_PORT ? ';port='.DB_PORT : '';
57
+		$db_host = defined('DB_HOST') && DB_HOST ? ';host='.DB_HOST : '';
58 58
 
59 59
 		try {
60
-			$pdo = new PDO(DB_TYPE . ':dbname=' . DB_NAME . $db_host . $db_port,
60
+			$pdo = new PDO(DB_TYPE.':dbname='.DB_NAME.$db_host.$db_port,
61 61
 				DB_USER,
62 62
 				DB_PASS);
63 63
 		} catch (Exception $e) {
64
-			print "<pre>Exception while creating PDO object:" . $e->getMessage() . "</pre>";
64
+			print "<pre>Exception while creating PDO object:".$e->getMessage()."</pre>";
65 65
 			exit(101);
66 66
 		}
67 67
 
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 			$pdo->query("SET time_zone = '+0:0'");
79 79
 
80 80
 			if (defined('MYSQL_CHARSET') && MYSQL_CHARSET) {
81
-				$pdo->query("SET NAMES " . MYSQL_CHARSET);
81
+				$pdo->query("SET NAMES ".MYSQL_CHARSET);
82 82
 			}
83 83
 		}
84 84
 
Please login to merge, or discard this patch.
classes/diskcache.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
 	private $dir;
4 4
 
5 5
 	public function __construct($dir) {
6
-		$this->dir = CACHE_DIR . "/" . clean_filename($dir);
6
+		$this->dir = CACHE_DIR."/".clean_filename($dir);
7 7
 	}
8 8
 
9 9
 	public function getDir() {
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 	public function getFullPath($filename) {
42 42
 		$filename = clean_filename($filename);
43 43
 
44
-		return $this->dir . "/" . $filename;
44
+		return $this->dir."/".$filename;
45 45
 	}
46 46
 
47 47
 	public function put($filename, $data) {
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 	}
74 74
 
75 75
 	public function getUrl($filename) {
76
-		return get_self_url_prefix() . "/public.php?op=cached_url&file=" . basename($this->dir) . "/" . $filename;
76
+		return get_self_url_prefix()."/public.php?op=cached_url&file=".basename($this->dir)."/".$filename;
77 77
 	}
78 78
 
79 79
 	// check for locally cached (media) URLs and rewrite to local versions
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 		if (!$res) return '';
86 86
 
87 87
 		$doc = new DOMDocument();
88
-		if ($doc->loadHTML('<?xml encoding="UTF-8">' . $res)) {
88
+		if ($doc->loadHTML('<?xml encoding="UTF-8">'.$res)) {
89 89
 			$xpath = new DOMXPath($doc);
90 90
 			$cache = new DiskCache("images");
91 91
 
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
 	}
127 127
 
128 128
 	static function expire() {
129
-		$dirs = array_filter(glob(CACHE_DIR . "/*"), "is_dir");
129
+		$dirs = array_filter(glob(CACHE_DIR."/*"), "is_dir");
130 130
 
131 131
 		foreach ($dirs as $cache_dir) {
132 132
 			$num_deleted = 0;
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
 
137 137
 				if ($files) {
138 138
 					foreach ($files as $file) {
139
-						if (time() - filemtime($file) > 86400*CACHE_MAX_DAYS) {
139
+						if (time() - filemtime($file) > 86400 * CACHE_MAX_DAYS) {
140 140
 							unlink($file);
141 141
 
142 142
 							++$num_deleted;
Please login to merge, or discard this patch.
classes/mailer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
 				return 0;
39 39
 		}
40 40
 
41
-		$headers = [ "From: $from_combined", "Content-Type: text/plain; charset=UTF-8" ];
41
+		$headers = ["From: $from_combined", "Content-Type: text/plain; charset=UTF-8"];
42 42
 
43 43
 		return mail($to_combined, $subject, $message, implode("\r\n", array_merge($headers, $additional_headers)));
44 44
 	}
Please login to merge, or discard this patch.
classes/pluginhost.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -194,12 +194,12 @@  discard block
 block discarded – undo
194 194
 					!is_dir(__DIR__."/../plugins.local/$class_file")) continue;
195 195
 
196 196
 			// try system plugin directory first
197
-			$file = __DIR__ . "/../plugins/$class_file/init.php";
198
-			$vendor_dir = __DIR__ . "/../plugins/$class_file/vendor";
197
+			$file = __DIR__."/../plugins/$class_file/init.php";
198
+			$vendor_dir = __DIR__."/../plugins/$class_file/vendor";
199 199
 
200 200
 			if (!file_exists($file)) {
201
-				$file = __DIR__ . "/../plugins.local/$class_file/init.php";
202
-				$vendor_dir = __DIR__ . "/../plugins.local/$class_file/vendor";
201
+				$file = __DIR__."/../plugins.local/$class_file/init.php";
202
+				$vendor_dir = __DIR__."/../plugins.local/$class_file/vendor";
203 203
 			}
204 204
 
205 205
 			if (!isset($this->plugins[$class])) {
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
 								list ($namespace, $class_name) = explode('\\', $class, 2);
218 218
 
219 219
 								if ($namespace && $class_name) {
220
-									$class_file = "$vendor_dir/$namespace/" . str_replace('\\', '/', $class_name) . ".php";
220
+									$class_file = "$vendor_dir/$namespace/".str_replace('\\', '/', $class_name).".php";
221 221
 
222 222
 									if (file_exists($class_file))
223 223
 										require_once $class_file;
@@ -231,12 +231,12 @@  discard block
 block discarded – undo
231 231
 					$plugin_api = $plugin->api_version();
232 232
 
233 233
 					if ($plugin_api < PluginHost::API_VERSION) {
234
-						user_error("Plugin $class is not compatible with current API version (need: " . PluginHost::API_VERSION . ", got: $plugin_api)", E_USER_WARNING);
234
+						user_error("Plugin $class is not compatible with current API version (need: ".PluginHost::API_VERSION.", got: $plugin_api)", E_USER_WARNING);
235 235
 						continue;
236 236
 					}
237 237
 
238
-					if (file_exists(dirname($file) . "/locale")) {
239
-						_bindtextdomain($class, dirname($file) . "/locale");
238
+					if (file_exists(dirname($file)."/locale")) {
239
+						_bindtextdomain($class, dirname($file)."/locale");
240 240
 						_bind_textdomain_codeset($class, "UTF-8");
241 241
 					}
242 242
 
@@ -319,13 +319,13 @@  discard block
 block discarded – undo
319 319
 	}
320 320
 
321 321
 	function del_command($command) {
322
-		$command = "-" . strtolower($command);
322
+		$command = "-".strtolower($command);
323 323
 
324 324
 		unset($this->commands[$command]);
325 325
 	}
326 326
 
327 327
 	function lookup_command($command) {
328
-		$command = "-" . strtolower($command);
328
+		$command = "-".strtolower($command);
329 329
 
330 330
 		if (is_array($this->commands[$command])) {
331 331
 			return $this->commands[$command]["class"];
@@ -348,7 +348,7 @@  discard block
 block discarded – undo
348 348
 	}
349 349
 
350 350
 	function load_data() {
351
-		if ($this->owner_uid)  {
351
+		if ($this->owner_uid) {
352 352
 			$sth = $this->pdo->prepare("SELECT name, content FROM ttrss_plugin_storage
353 353
 				WHERE owner_uid = ?");
354 354
 			$sth->execute([$this->owner_uid]);
@@ -375,13 +375,13 @@  discard block
 block discarded – undo
375 375
 			if ($sth->fetch()) {
376 376
 				$sth = $this->pdo->prepare("UPDATE ttrss_plugin_storage SET content = ?
377 377
 					WHERE owner_uid= ? AND name = ?");
378
-				$sth->execute([(string)$content, $this->owner_uid, $plugin]);
378
+				$sth->execute([(string) $content, $this->owner_uid, $plugin]);
379 379
 
380 380
 			} else {
381 381
 				$sth = $this->pdo->prepare("INSERT INTO ttrss_plugin_storage
382 382
 					(name,owner_uid,content) VALUES
383 383
 					(?, ?, ?)");
384
-				$sth->execute([$plugin, $this->owner_uid, (string)$content]);
384
+				$sth->execute([$plugin, $this->owner_uid, (string) $content]);
385 385
 			}
386 386
 
387 387
 			$this->pdo->commit();
@@ -495,8 +495,8 @@  discard block
 block discarded – undo
495 495
 	}
496 496
 
497 497
 	// handled by classes/pluginhandler.php, requires valid session
498
-	function get_method_url($sender, $method, $params)  {
499
-		return get_self_url_prefix() . "/backend.php?" .
498
+	function get_method_url($sender, $method, $params) {
499
+		return get_self_url_prefix()."/backend.php?".
500 500
 			http_build_query(
501 501
 				array_merge(
502 502
 					[
@@ -508,9 +508,9 @@  discard block
 block discarded – undo
508 508
 	}
509 509
 
510 510
 	// WARNING: endpoint in public.php, exposed to unauthenticated users
511
-	function get_public_method_url($sender, $method, $params)  {
511
+	function get_public_method_url($sender, $method, $params) {
512 512
 		if ($sender->is_public_method($method)) {
513
-			return get_self_url_prefix() . "/public.php?" .
513
+			return get_self_url_prefix()."/public.php?".
514 514
 				http_build_query(
515 515
 					array_merge(
516 516
 						[
@@ -520,7 +520,7 @@  discard block
 block discarded – undo
520 520
 						],
521 521
 						$params));
522 522
 		} else {
523
-			user_error("get_public_method_url: requested method '$method' of '" . get_class($sender) . "' is private.");
523
+			user_error("get_public_method_url: requested method '$method' of '".get_class($sender)."' is private.");
524 524
 		}
525 525
 	}
526 526
 }
Please login to merge, or discard this patch.
classes/db/prefs.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 		if ($type_name == "bool") {
103 103
 			return $value == "true";
104 104
 		} else if ($type_name == "integer") {
105
-			return (int)$value;
105
+			return (int) $value;
106 106
 		} else {
107 107
 			return $value;
108 108
 		}
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
 					$value = "false";
150 150
 				}
151 151
 			} else if ($type_name == "integer") {
152
-				$value = (int)$value;
152
+				$value = (int) $value;
153 153
 			}
154 154
 
155 155
 			if ($pref_name == 'USER_TIMEZONE' && $value == '') {
Please login to merge, or discard this patch.
classes/db/mysqli.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 
15 15
 			return $this->link;
16 16
 		} else {
17
-			print("Unable to connect to database (as $user to $host, database $db): " . mysqli_connect_error());
17
+			print("Unable to connect to database (as $user to $host, database $db): ".mysqli_connect_error());
18 18
 			exit(102);
19 19
 		}
20 20
 	}
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 			$this->last_error = @mysqli_error($this->link);
32 32
 
33 33
 			@mysqli_query($this->link, "ROLLBACK");
34
-			user_error("Query $query failed: " . ($this->link ? $this->last_error : "No connection"),
34
+			user_error("Query $query failed: ".($this->link ? $this->last_error : "No connection"),
35 35
 				$die_on_error ? E_USER_ERROR : E_USER_WARNING);
36 36
 		}
37 37
 
Please login to merge, or discard this patch.
classes/db/pgsql.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,13 +15,13 @@  discard block
 block discarded – undo
15 15
 		}
16 16
 
17 17
 		if (is_numeric($port) && $port > 0) {
18
-			$string = "$string port=" . $port;
18
+			$string = "$string port=".$port;
19 19
 		}
20 20
 
21 21
 		$this->link = pg_connect($string);
22 22
 
23 23
 		if (!$this->link) {
24
-			print("Unable to connect to database (as $user to $host, database $db):" . pg_last_error());
24
+			print("Unable to connect to database (as $user to $host, database $db):".pg_last_error());
25 25
 			exit(102);
26 26
 		}
27 27
 
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
 			@pg_query($this->link, "ROLLBACK");
46 46
 			$query = htmlspecialchars($query); // just in case
47
-			user_error("Query $query failed: " . ($this->link ? $this->last_error : "No connection"),
47
+			user_error("Query $query failed: ".($this->link ? $this->last_error : "No connection"),
48 48
 				$die_on_error ? E_USER_ERROR : E_USER_WARNING);
49 49
 		}
50 50
 		return $result;
Please login to merge, or discard this patch.
classes/api.php 1 patch
Spacing   +21 added lines, -22 removed lines patch added patch discarded remove patch
@@ -74,11 +74,11 @@  discard block
 block discarded – undo
74 74
 		}
75 75
 
76 76
 		if (get_pref("ENABLE_API_ACCESS", $uid)) {
77
-			if (authenticate_user($login, $password, false,  Auth_Base::AUTH_SERVICE_API)) {               // try login with normal password
77
+			if (authenticate_user($login, $password, false, Auth_Base::AUTH_SERVICE_API)) {               // try login with normal password
78 78
 				$this->wrap(self::STATUS_OK, array("session_id" => session_id(),
79 79
 					"api_level" => self::API_LEVEL));
80 80
 			} else if (authenticate_user($login, $password_base64, false, Auth_Base::AUTH_SERVICE_API)) { // else try with base64_decoded password
81
-				$this->wrap(self::STATUS_OK,	array("session_id" => session_id(),
81
+				$this->wrap(self::STATUS_OK, array("session_id" => session_id(),
82 82
 					"api_level" => self::API_LEVEL));
83 83
 			} else {                                                         // else we are not logged in
84 84
 				user_error("Failed login attempt for $login from {$_SERVER['REMOTE_ADDR']}", E_USER_WARNING);
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
 			}
170 170
 		}
171 171
 
172
-		foreach (array(-2,-1,0) as $cat_id) {
172
+		foreach (array(-2, -1, 0) as $cat_id) {
173 173
 			if ($include_empty || !$this->isCategoryEmpty($cat_id)) {
174 174
 				$unread = getFeedUnread($cat_id, true);
175 175
 
@@ -190,11 +190,11 @@  discard block
 block discarded – undo
190 190
 
191 191
 			if (is_numeric($feed_id)) $feed_id = (int) $feed_id;
192 192
 
193
-			$limit = (int)clean($_REQUEST["limit"]);
193
+			$limit = (int) clean($_REQUEST["limit"]);
194 194
 
195 195
 			if (!$limit || $limit >= 200) $limit = 200;
196 196
 
197
-			$offset = (int)clean($_REQUEST["skip"]);
197
+			$offset = (int) clean($_REQUEST["skip"]);
198 198
 			$filter = clean($_REQUEST["filter"]);
199 199
 			$is_cat = API::param_to_bool(clean($_REQUEST["is_cat"]));
200 200
 			$show_excerpt = API::param_to_bool(clean($_REQUEST["show_excerpt"]));
@@ -202,14 +202,14 @@  discard block
 block discarded – undo
202 202
 			/* all_articles, unread, adaptive, marked, updated */
203 203
 			$view_mode = clean($_REQUEST["view_mode"]);
204 204
 			$include_attachments = API::param_to_bool(clean($_REQUEST["include_attachments"]));
205
-			$since_id = (int)clean($_REQUEST["since_id"]);
205
+			$since_id = (int) clean($_REQUEST["since_id"]);
206 206
 			$include_nested = API::param_to_bool(clean($_REQUEST["include_nested"]));
207 207
 			$sanitize_content = !isset($_REQUEST["sanitize"]) ||
208 208
 				API::param_to_bool($_REQUEST["sanitize"]);
209 209
 			$force_update = API::param_to_bool(clean($_REQUEST["force_update"]));
210 210
 			$has_sandbox = API::param_to_bool(clean($_REQUEST["has_sandbox"]));
211
-			$excerpt_length = (int)clean($_REQUEST["excerpt_length"]);
212
-			$check_first_id = (int)clean($_REQUEST["check_first_id"]);
211
+			$excerpt_length = (int) clean($_REQUEST["excerpt_length"]);
212
+			$check_first_id = (int) clean($_REQUEST["check_first_id"]);
213 213
 			$include_header = API::param_to_bool(clean($_REQUEST["include_header"]));
214 214
 
215 215
 			$_SESSION['hasSandbox'] = $has_sandbox;
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
 		$article_ids = explode(",", clean($_REQUEST["article_ids"]));
254 254
 		$mode = (int) clean($_REQUEST["mode"]);
255 255
 		$data = clean($_REQUEST["data"]);
256
-		$field_raw = (int)clean($_REQUEST["field"]);
256
+		$field_raw = (int) clean($_REQUEST["field"]);
257 257
 
258 258
 		$field = "";
259 259
 		$set_to = "";
@@ -360,7 +360,7 @@  discard block
 block discarded – undo
360 360
 					"updated" => (int) strtotime($line["updated"]),
361 361
 					"feed_id" => $line["feed_id"],
362 362
 					"attachments" => $attachments,
363
-					"score" => (int)$line["score"],
363
+					"score" => (int) $line["score"],
364 364
 					"feed_title" => $line["feed_title"],
365 365
 					"note" => $line["note"],
366 366
 					"lang" => $line["lang"]
@@ -434,7 +434,7 @@  discard block
 block discarded – undo
434 434
 	}
435 435
 
436 436
 	function getLabels() {
437
-		$article_id = (int)clean($_REQUEST['article_id']);
437
+		$article_id = (int) clean($_REQUEST['article_id']);
438 438
 
439 439
 		$rv = array();
440 440
 
@@ -459,7 +459,7 @@  discard block
 block discarded – undo
459 459
 			}
460 460
 
461 461
 			array_push($rv, array(
462
-				"id" => (int)Labels::label_to_feed_id($line['id']),
462
+				"id" => (int) Labels::label_to_feed_id($line['id']),
463 463
 				"caption" => $line['caption'],
464 464
 				"fg_color" => $line['fg_color'],
465 465
 				"bg_color" => $line['bg_color'],
@@ -644,10 +644,10 @@  discard block
 block discarded – undo
644 644
 					$row = array(
645 645
 							"feed_url" => $line["feed_url"],
646 646
 							"title" => $line["title"],
647
-							"id" => (int)$line["id"],
648
-							"unread" => (int)$unread,
647
+							"id" => (int) $line["id"],
648
+							"unread" => (int) $unread,
649 649
 							"has_icon" => $has_icon,
650
-							"cat_id" => (int)$line["cat_id"],
650
+							"cat_id" => (int) $line["cat_id"],
651 651
 							"last_updated" => (int) strtotime($line["last_updated"]),
652 652
 							"order_id" => (int) $line["order_id"],
653 653
 						);
@@ -748,12 +748,12 @@  discard block
 block discarded – undo
748 748
 					if (!is_array($labels)) $labels = Article::get_article_labels($line["id"]);
749 749
 
750 750
 					$headline_row = array(
751
-						"id" => (int)$line["id"],
751
+						"id" => (int) $line["id"],
752 752
 						"guid" => $line["guid"],
753 753
 						"unread" => API::param_to_bool($line["unread"]),
754 754
 						"marked" => API::param_to_bool($line["marked"]),
755 755
 						"published" => API::param_to_bool($line["published"]),
756
-						"updated" => (int)strtotime($line["updated"]),
756
+						"updated" => (int) strtotime($line["updated"]),
757 757
 						"is_updated" => $is_updated,
758 758
 						"title" => $line["title"],
759 759
 						"link" => $line["link"],
@@ -786,17 +786,16 @@  discard block
 block discarded – undo
786 786
 
787 787
 					$headline_row["labels"] = $labels;
788 788
 
789
-					$headline_row["feed_title"] = $line["feed_title"] ? $line["feed_title"] :
790
-						$feed_title;
789
+					$headline_row["feed_title"] = $line["feed_title"] ? $line["feed_title"] : $feed_title;
791 790
 
792
-					$headline_row["comments_count"] = (int)$line["num_comments"];
791
+					$headline_row["comments_count"] = (int) $line["num_comments"];
793 792
 					$headline_row["comments_link"] = $line["comments"];
794 793
 
795 794
 					$headline_row["always_display_attachments"] = API::param_to_bool($line["always_display_enclosures"]);
796 795
 
797 796
 					$headline_row["author"] = $line["author"];
798 797
 
799
-					$headline_row["score"] = (int)$line["score"];
798
+					$headline_row["score"] = (int) $line["score"];
800 799
 					$headline_row["note"] = $line["note"];
801 800
 					$headline_row["lang"] = $line["lang"];
802 801
 
@@ -858,7 +857,7 @@  discard block
 block discarded – undo
858 857
 		$_REQUEST['mode'] = 2;
859 858
 		$_REQUEST['force_show_empty'] = $include_empty;
860 859
 
861
-		if ($pf){
860
+		if ($pf) {
862 861
 			$data = $pf->makefeedtree();
863 862
 			$this->wrap(self::STATUS_OK, array("categories" => $data));
864 863
 		} else {
Please login to merge, or discard this patch.