Passed
Push — master ( a3c0d0...678db7 )
by Cody
06:27 queued 03:12
created
classes/dlg.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 	public function pubOPMLUrl() {
39 39
 		$url_path = Opml::opml_publish_url();
40 40
 
41
-		print "<header>" . __("Your Public OPML URL is:") . "</header>";
41
+		print "<header>".__("Your Public OPML URL is:")."</header>";
42 42
 
43 43
 		print "<section>";
44 44
 
@@ -67,18 +67,18 @@  discard block
 block discarded – undo
67 67
 		if ($this->param == 1) {
68 68
 			print __("Update daemon is enabled in configuration, but daemon process is not running, which prevents all feeds from updating. Please start the daemon process or contact instance owner.");
69 69
 
70
-			$stamp = (int) file_get_contents(LOCK_DIRECTORY . "/update_daemon.stamp");
70
+			$stamp = (int) file_get_contents(LOCK_DIRECTORY."/update_daemon.stamp");
71 71
 
72
-			print "<p>" . __("Last update:") . " " . date("Y.m.d, G:i", $stamp);
72
+			print "<p>".__("Last update:")." ".date("Y.m.d, G:i", $stamp);
73 73
 
74 74
 		}
75 75
 
76 76
 		if ($this->param == 3) {
77 77
 			print __("Update daemon is taking too long to perform a feed update. This could indicate a problem like crash or a hang. Please check the daemon process or contact instance owner.");
78 78
 
79
-			$stamp = (int) file_get_contents(LOCK_DIRECTORY . "/update_daemon.stamp");
79
+			$stamp = (int) file_get_contents(LOCK_DIRECTORY."/update_daemon.stamp");
80 80
 
81
-			print "<p>" . __("Last update:") . " " . date("Y.m.d, G:i", $stamp);
81
+			print "<p>".__("Last update:")." ".date("Y.m.d, G:i", $stamp);
82 82
 
83 83
 		}
84 84
 
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 			$tags[$line["tag_name"]] = $line["count"];
109 109
 		}
110 110
 
111
-        if(count($tags) == 0 ){ return; }
111
+        if (count($tags) == 0) { return; }
112 112
 
113 113
 		ksort($tags);
114 114
 
@@ -138,9 +138,9 @@  discard block
 block discarded – undo
138 138
 
139 139
 			$key_escaped = str_replace("'", "\\'", $key);
140 140
 
141
-			echo "<a href=\"#\" onclick=\"Feeds.open({feed:'$key_escaped'}) \" style=\"font-size: " .
142
-				$size . "px\" title=\"$value articles tagged with " .
143
-				$key . '">' . $key . '</a> ';
141
+			echo "<a href=\"#\" onclick=\"Feeds.open({feed:'$key_escaped'}) \" style=\"font-size: ".
142
+				$size."px\" title=\"$value articles tagged with ".
143
+				$key.'">'.$key.'</a> ';
144 144
 		}
145 145
 
146 146
 
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
 
164 164
 		$key = Feeds::get_feed_access_key($feed_id, $is_cat);
165 165
 
166
-		$url_path = htmlspecialchars($this->params[2]) . "&key=" . $key;
166
+		$url_path = htmlspecialchars($this->params[2])."&key=".$key;
167 167
 
168 168
 		$feed_title = Feeds::getFeedTitle($feed_id, $is_cat);
169 169
 
Please login to merge, or discard this patch.
classes/labels.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 		}
38 38
 	}
39 39
 
40
-	public static function get_all_labels($owner_uid)	{
40
+	public static function get_all_labels($owner_uid) {
41 41
 		$rv = array();
42 42
 
43 43
 		$pdo = Db::pdo();
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 
71 71
 	}
72 72
 
73
-	public static function clear_cache($id)	{
73
+	public static function clear_cache($id) {
74 74
 
75 75
 		$pdo = Db::pdo();
76 76
 
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 		Labels::clear_cache($id);
99 99
 	}
100 100
 
101
-	public static function add_article($id, $label, $owner_uid)	{
101
+	public static function add_article($id, $label, $owner_uid) {
102 102
 
103 103
 		$label_id = Labels::find_id($label, $owner_uid);
104 104
 
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
 		if (!$tr_in_progress) $pdo->commit();
172 172
 	}
173 173
 
174
-	public static function create($caption, $fg_color = '', $bg_color = '', $owner_uid = false)	{
174
+	public static function create($caption, $fg_color = '', $bg_color = '', $owner_uid = false) {
175 175
 
176 176
 		if (!$owner_uid) $owner_uid = $_SESSION['uid'];
177 177
 
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
 	public 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/opml.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 			$cat_title = htmlspecialchars($row['title']);
71 71
 
72 72
 			if ($include_settings) {
73
-				$order_id = (int)$row["order_id"];
73
+				$order_id = (int) $row["order_id"];
74 74
 				$ttrss_specific_qpart = "ttrssSortOrder=\"$order_id\"";
75 75
 			}
76 76
 		} else {
@@ -103,8 +103,8 @@  discard block
 block discarded – undo
103 103
 			$site_url = htmlspecialchars($fline["site_url"]);
104 104
 
105 105
 			if ($include_settings) {
106
-				$update_interval = (int)$fline["update_interval"];
107
-				$order_id = (int)$fline["order_id"];
106
+				$update_interval = (int) $fline["update_interval"];
107
+				$order_id = (int) $fline["order_id"];
108 108
 
109 109
 				$ttrss_specific_qpart = "ttrssSortOrder=\"$order_id\" ttrssUpdateInterval=\"$update_interval\"";
110 110
 			} else {
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
 
131 131
 		if (!isset($_REQUEST["debug"])) {
132 132
 			header("Content-type: application/xml+opml");
133
-			header("Content-Disposition: attachment; filename=" . $name );
133
+			header("Content-Disposition: attachment; filename=".$name);
134 134
 		} else {
135 135
 			header("Content-type: text/xml");
136 136
 		}
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
 
140 140
 		$out .= "<opml version=\"1.0\">";
141 141
 		$out .= "<head>
142
-			<dateCreated>" . date("r", time()) . "</dateCreated>
142
+			<dateCreated>" . date("r", time())."</dateCreated>
143 143
 			<title>Tiny Tiny RSS Feed Export</title>
144 144
 		</head>";
145 145
 		$out .= "<body>";
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
 					    foreach (json_decode($tmp_line["match_on"], true) as $feed_id) {
215 215
 
216 216
                             if (strpos($feed_id, "CAT:") === 0) {
217
-                                $feed_id = (int)substr($feed_id, 4);
217
+                                $feed_id = (int) substr($feed_id, 4);
218 218
                                 if ($feed_id) {
219 219
                                     array_push($match, [Feeds::getCategoryTitle($feed_id), true, false]);
220 220
                                 } else {
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
                                 }
223 223
                             } else {
224 224
                                 if ($feed_id) {
225
-                                    array_push($match, [Feeds::getFeedTitle((int)$feed_id), false, false]);
225
+                                    array_push($match, [Feeds::getFeedTitle((int) $feed_id), false, false]);
226 226
                                 } else {
227 227
                                     array_push($match, [0, false, true]);
228 228
                                 }
@@ -409,7 +409,7 @@  discard block
 block discarded – undo
409 409
 						        list ($name, $is_cat, $is_id) = $match;
410 410
 
411 411
 						        if ($is_id) {
412
-						            array_push($match_on, ($is_cat ? "CAT:" : "") . $name);
412
+						            array_push($match_on, ($is_cat ? "CAT:" : "").$name);
413 413
                                 } else {
414 414
 
415 415
                                     if (!$is_cat) {
@@ -438,7 +438,7 @@  discard block
 block discarded – undo
438 438
                             }
439 439
 
440 440
                             $reg_exp = $rule["reg_exp"];
441
-                            $filter_type = (int)$rule["filter_type"];
441
+                            $filter_type = (int) $rule["filter_type"];
442 442
                             $inverse = bool_to_sql_bool($rule["inverse"]);
443 443
                             $match_on = json_encode($match_on);
444 444
 
@@ -472,7 +472,7 @@  discard block
 block discarded – undo
472 472
 
473 473
                             $cat_filter = bool_to_sql_bool($rule["cat_filter"]);
474 474
                             $reg_exp = $rule["reg_exp"];
475
-                            $filter_type = (int)$rule["filter_type"];
475
+                            $filter_type = (int) $rule["filter_type"];
476 476
                             $inverse = bool_to_sql_bool($rule["inverse"]);
477 477
 
478 478
                             $usth = $this->pdo->prepare("INSERT INTO ttrss_filters2_rules
@@ -485,7 +485,7 @@  discard block
 block discarded – undo
485 485
 
486 486
 					foreach ($filter["actions"] as $action) {
487 487
 
488
-						$action_id = (int)$action["action_id"];
488
+						$action_id = (int) $action["action_id"];
489 489
 						$action_param = $action["action_param"];
490 490
 
491 491
 						$usth = $this->pdo->prepare("INSERT INTO ttrss_filters2_actions
@@ -585,7 +585,7 @@  discard block
 block discarded – undo
585 585
 		}
586 586
 
587 587
 		if (is_uploaded_file($_FILES['opml_file']['tmp_name'])) {
588
-			$tmp_file = tempnam(CACHE_DIR . '/upload', 'opml');
588
+			$tmp_file = tempnam(CACHE_DIR.'/upload', 'opml');
589 589
 
590 590
 			$result = move_uploaded_file($_FILES['opml_file']['tmp_name'],
591 591
 				$tmp_file);
@@ -623,10 +623,10 @@  discard block
 block discarded – undo
623 623
 		print "$msg<br/>";
624 624
 	}
625 625
 
626
-	public static function opml_publish_url(){
626
+	public static function opml_publish_url() {
627 627
 
628 628
 		$url_path = get_self_url_prefix();
629
-		$url_path .= "/opml.php?op=publish&key=" .
629
+		$url_path .= "/opml.php?op=publish&key=".
630 630
 			Feeds::get_feed_access_key('OPML:Publish', false, $_SESSION["uid"]);
631 631
 
632 632
 		return $url_path;
Please login to merge, or discard this patch.
include/colors.php 1 patch
Spacing   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
 ### HSL >> RGB
184 184
 function _color_hsl2rgb($hsl) {
185 185
     $h = $hsl[0]; $s = $hsl[1]; $l = $hsl[2];
186
-    $m2 = ($l <= 0.5) ? $l * ($s + 1) : $l + $s - $l*$s;
186
+    $m2 = ($l <= 0.5) ? $l * ($s + 1) : $l + $s - $l * $s;
187 187
     $m1 = $l * 2 - $m2;
188 188
     return array(_color_hue2rgb($m1, $m2, $h + 0.33333),
189 189
         _color_hue2rgb($m1, $m2, $h),
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
         $hex = substr($hex, 1);
209 209
 
210 210
     if (strlen($hex) == 4) {
211
-        $hex = $hex[1] . $hex[1] . $hex[2] . $hex[2] . $hex[3] . $hex[3];
211
+        $hex = $hex[1].$hex[1].$hex[2].$hex[2].$hex[3].$hex[3];
212 212
     }
213 213
     $c = hexdec($hex);
214 214
     for ($i = 16; $i >= 0; $i -= 8) {
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
 function _color_pack($rgb, $normalize = false) {
221 221
     foreach ($rgb as $k => $v) {
222 222
         $out |= (($v * ($normalize ? 255 : 1)) << (16 - $k * 8));
223
-    }return '#'. str_pad(dechex($out), 6, 0, STR_PAD_LEFT);
223
+    }return '#'.str_pad(dechex($out), 6, 0, STR_PAD_LEFT);
224 224
 }
225 225
 
226 226
 function rgb2hsl($arr) {
@@ -244,13 +244,13 @@  discard block
 block discarded – undo
244 244
     } else {
245 245
         $s = $del_Max / $var_Max;
246 246
 
247
-        $del_R = ((($var_Max - $var_R ) / 6 ) + ($del_Max / 2 ) ) / $del_Max;
248
-        $del_G = ((($var_Max - $var_G ) / 6 ) + ($del_Max / 2 ) ) / $del_Max;
249
-        $del_B = ((($var_Max - $var_B ) / 6 ) + ($del_Max / 2 ) ) / $del_Max;
247
+        $del_R = ((($var_Max - $var_R) / 6) + ($del_Max / 2)) / $del_Max;
248
+        $del_G = ((($var_Max - $var_G) / 6) + ($del_Max / 2)) / $del_Max;
249
+        $del_B = ((($var_Max - $var_B) / 6) + ($del_Max / 2)) / $del_Max;
250 250
 
251
-        if      ($var_R == $var_Max) $h = $del_B - $del_G;
252
-        else if ($var_G == $var_Max) $h = (1 / 3 ) + $del_R - $del_B;
253
-        else if ($var_B == $var_Max) $h = (2 / 3 ) + $del_G - $del_R;
251
+        if ($var_R == $var_Max) $h = $del_B - $del_G;
252
+        else if ($var_G == $var_Max) $h = (1 / 3) + $del_R - $del_B;
253
+        else if ($var_B == $var_Max) $h = (2 / 3) + $del_G - $del_R;
254 254
 
255 255
         if ($h < 0) $h++;
256 256
         if ($h > 1) $h--;
@@ -264,21 +264,21 @@  discard block
 block discarded – undo
264 264
     $s = $arr[1];
265 265
     $v = $arr[2];
266 266
 
267
-    if($s == 0) {
267
+    if ($s == 0) {
268 268
         $r = $g = $B = $v * 255;
269 269
     } else {
270 270
         $var_H = $h * 6;
271
-        $var_i = floor($var_H );
272
-        $var_1 = $v * (1 - $s );
273
-        $var_2 = $v * (1 - $s * ($var_H - $var_i ) );
274
-        $var_3 = $v * (1 - $s * (1 - ($var_H - $var_i ) ) );
275
-
276
-        if       ($var_i == 0) { $var_R = $v     ; $var_G = $var_3  ; $var_B = $var_1 ; }
277
-        else if  ($var_i == 1) { $var_R = $var_2 ; $var_G = $v      ; $var_B = $var_1 ; }
278
-        else if  ($var_i == 2) { $var_R = $var_1 ; $var_G = $v      ; $var_B = $var_3 ; }
279
-        else if  ($var_i == 3) { $var_R = $var_1 ; $var_G = $var_2  ; $var_B = $v     ; }
280
-        else if  ($var_i == 4) { $var_R = $var_3 ; $var_G = $var_1  ; $var_B = $v     ; }
281
-        else                   { $var_R = $v     ; $var_G = $var_1  ; $var_B = $var_2 ; }
271
+        $var_i = floor($var_H);
272
+        $var_1 = $v * (1 - $s);
273
+        $var_2 = $v * (1 - $s * ($var_H - $var_i));
274
+        $var_3 = $v * (1 - $s * (1 - ($var_H - $var_i)));
275
+
276
+        if ($var_i == 0) { $var_R = $v; $var_G = $var_3; $var_B = $var_1; }
277
+        else if ($var_i == 1) { $var_R = $var_2; $var_G = $v; $var_B = $var_1; }
278
+        else if ($var_i == 2) { $var_R = $var_1; $var_G = $v; $var_B = $var_3; }
279
+        else if ($var_i == 3) { $var_R = $var_1; $var_G = $var_2; $var_B = $v; }
280
+        else if ($var_i == 4) { $var_R = $var_3; $var_G = $var_1; $var_B = $v; }
281
+        else { $var_R = $v; $var_G = $var_1; $var_B = $var_2; }
282 282
 
283 283
         $r = $var_R * 255;
284 284
         $g = $var_G * 255;
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
 }
289 289
 
290 290
 function colorPalette($imageFile, $numColors, $granularity = 5) {
291
-    $granularity = max(1, abs((int)$granularity));
291
+    $granularity = max(1, abs((int) $granularity));
292 292
     $colors = array();
293 293
 
294 294
     $size = @getimagesize($imageFile);
@@ -301,10 +301,10 @@  discard block
 block discarded – undo
301 301
             $ico = new floIcon();
302 302
             @$ico->readICO($imageFile);
303 303
 
304
-            if(count($ico->images)==0)
304
+            if (count($ico->images) == 0)
305 305
                 return false;
306 306
             else
307
-                $img = @$ico->images[count($ico->images)-1]->getImageResource();
307
+                $img = @$ico->images[count($ico->images) - 1]->getImageResource();
308 308
 
309 309
         } else {
310 310
             return false;
@@ -316,17 +316,17 @@  discard block
 block discarded – undo
316 316
 
317 317
     if (!$img) return false;
318 318
 
319
-    for($x = 0; $x < $size[0]; $x += $granularity) {
320
-        for($y = 0; $y < $size[1]; $y += $granularity) {
319
+    for ($x = 0; $x < $size[0]; $x += $granularity) {
320
+        for ($y = 0; $y < $size[1]; $y += $granularity) {
321 321
             $thisColor = imagecolorat($img, $x, $y);
322 322
             $rgb = imagecolorsforindex($img, $thisColor);
323 323
             $red = round(round(($rgb['red'] / 0x33)) * 0x33);
324 324
             $green = round(round(($rgb['green'] / 0x33)) * 0x33);
325 325
             $blue = round(round(($rgb['blue'] / 0x33)) * 0x33);
326 326
             $thisRGB = sprintf('%02X%02X%02X', $red, $green, $blue);
327
-            if(array_key_exists($thisRGB, $colors)) {
327
+            if (array_key_exists($thisRGB, $colors)) {
328 328
                 $colors[$thisRGB]++;
329
-            } else{
329
+            } else {
330 330
                 $colors[$thisRGB] = 1;
331 331
             }
332 332
         }
Please login to merge, or discard this patch.
include/sessions.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -78,11 +78,11 @@  discard block
 block discarded – undo
78 78
     return true;
79 79
 }
80 80
 
81
-function ttrss_open () {
81
+function ttrss_open() {
82 82
     return true;
83 83
 }
84 84
 
85
-function ttrss_read ($id){
85
+function ttrss_read($id) {
86 86
     global $session_expire;
87 87
 
88 88
     $sth = Db::pdo()->prepare("SELECT data FROM ttrss_sessions WHERE id=?");
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
     }
102 102
 }
103 103
 
104
-function ttrss_write ($id, $data) {
104
+function ttrss_write($id, $data) {
105 105
     global $session_expire;
106 106
 
107 107
     $data = base64_encode($data);
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
     return true;
122 122
 }
123 123
 
124
-function ttrss_close () {
124
+function ttrss_close() {
125 125
     return true;
126 126
 }
127 127
 
@@ -132,8 +132,8 @@  discard block
 block discarded – undo
132 132
     return true;
133 133
 }
134 134
 
135
-function ttrss_gc () {
136
-    Db::pdo()->query("DELETE FROM ttrss_sessions WHERE expire < " . time());
135
+function ttrss_gc() {
136
+    Db::pdo()->query("DELETE FROM ttrss_sessions WHERE expire < ".time());
137 137
 
138 138
     return true;
139 139
 }
Please login to merge, or discard this patch.
plugins/nsfw/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
 
21 21
 	public function get_js() {
22
-		return file_get_contents(dirname(__FILE__) . "/init.js");
22
+		return file_get_contents(dirname(__FILE__)."/init.js");
23 23
 	}
24 24
 
25 25
 	public function hook_render_article($article) {
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
-	public function init($host ) {
16
+	public 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/bookmarklets/init.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 		print "<div dojoType=\"dijit.layout.AccordionPane\"
23 23
 			title=\"<i class='material-icons'>bookmark</i> ".__('Bookmarklets')."\">";
24 24
 
25
-		print "<h3>" . __("Drag the link below to your browser toolbar, open the feed you're interested in in your browser and click on the link to subscribe to it.") . "</h3>";
25
+		print "<h3>".__("Drag the link below to your browser toolbar, open the feed you're interested in in your browser and click on the link to subscribe to it.")."</h3>";
26 26
 
27 27
 		$bm_subscribe_url = str_replace('%s', '', Pref_Feeds::subscribe_to_feed_url());
28 28
 
@@ -31,14 +31,14 @@  discard block
 block discarded – undo
31 31
 		$bm_url = htmlspecialchars("javascript:{if(confirm('$confirm_str'.replace('%s',window.location.href)))window.location.href='$bm_subscribe_url'+window.location.href}");
32 32
 
33 33
 		print "<p><label class='dijitButton'>";
34
-		print "<a href=\"$bm_url\">" . __('Subscribe in Tiny Tiny RSS'). "</a>";
34
+		print "<a href=\"$bm_url\">".__('Subscribe in Tiny Tiny RSS')."</a>";
35 35
 		print "</label></p>";
36 36
 
37
-		print "<h3>" . __("Use this bookmarklet to publish arbitrary pages using Tiny Tiny RSS") . "</h3>";
37
+		print "<h3>".__("Use this bookmarklet to publish arbitrary pages using Tiny Tiny RSS")."</h3>";
38 38
 
39 39
 		print "<label class='dijitButton'>";
40 40
 		$bm_url = htmlspecialchars("javascript:(function(){var d=document,w=window,e=w.getSelection,k=d.getSelection,x=d.selection,s=(e?e():(k)?k():(x?x.createRange().text:0)),f='".get_self_url_prefix()."/public.php?op=sharepopup',l=d.location,e=encodeURIComponent,g=f+'&title='+((e(s))?e(s):e(document.title))+'&url='+e(l.href);function a(){if(!w.open(g,'t','toolbar=0,resizable=0,scrollbars=1,status=1,width=500,height=250')){l.href=g;}}a();})()");
41
-		print "<a href=\"$bm_url\">" . __('Share with Tiny Tiny RSS'). "</a>";
41
+		print "<a href=\"$bm_url\">".__('Share with Tiny Tiny RSS')."</a>";
42 42
 		print "</label>";
43 43
 
44 44
 		print "<button dojoType='dijit.form.Button' class='alt-info' onclick='window.open(\"https://tt-rss.org/wiki/ShareAnything\")'>
Please login to merge, or discard this patch.