Passed
Push — master ( 678db7...164b32 )
by Cody
06:12 queued 03:06
created
plugins/mailto/init.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
 		while ($line = $sth->fetch()) {
55 55
 
56 56
 			if (!$subject) {
57
-							$subject = __("[Forwarded]") . " " . htmlspecialchars($line["title"]);
57
+							$subject = __("[Forwarded]")." ".htmlspecialchars($line["title"]);
58 58
 			}
59 59
 
60 60
 			$tpl->setVariable('ARTICLE_TITLE', strip_tags($line["title"]));
Please login to merge, or discard this patch.
classes/backend.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
 				if ($cur_section) {
46 46
 				    print "<li>&nbsp;</li>";
47 47
 				}
48
-				print "<li><h3>" . $section . "</h3></li>";
48
+				print "<li><h3>".$section."</h3></li>";
49 49
 				$cur_section = $section;
50 50
 
51 51
 				foreach ($hotkeys as $action => $description) {
Please login to merge, or discard this patch.
include/controls.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 		while ($line = $sth->fetch()) {
112 112
 
113 113
 			for ($i = 0; $i < $nest_level; $i++) {
114
-							$line["title"] = " - " . $line["title"];
114
+							$line["title"] = " - ".$line["title"];
115 115
 			}
116 116
 
117 117
 			$is_selected = in_array("CAT:".$line["id"], $default_ids) ? "selected=\"1\"" : "";
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
 
122 122
 			if ($line["num_children"] > 0) {
123 123
 							print_feed_multi_select($id, $default_ids, $attributes,
124
-					$include_all_feeds, $line["id"], $nest_level+1);
124
+					$include_all_feeds, $line["id"], $nest_level + 1);
125 125
 			}
126 126
 
127 127
 			$f_sth = $pdo->prepare("SELECT id,title FROM ttrss_feeds
@@ -132,10 +132,10 @@  discard block
 block discarded – undo
132 132
 			while ($fline = $f_sth->fetch()) {
133 133
 				$is_selected = (in_array($fline["id"], $default_ids)) ? "selected=\"1\"" : "";
134 134
 
135
-				$fline["title"] = " + " . $fline["title"];
135
+				$fline["title"] = " + ".$fline["title"];
136 136
 
137 137
 				for ($i = 0; $i < $nest_level; $i++) {
138
-									$fline["title"] = " - " . $fline["title"];
138
+									$fline["title"] = " - ".$fline["title"];
139 139
 				}
140 140
 
141 141
 				printf("<option $is_selected value='%d'>%s</option>",
@@ -156,10 +156,10 @@  discard block
 block discarded – undo
156 156
 			while ($fline = $f_sth->fetch()) {
157 157
 				$is_selected = in_array($fline["id"], $default_ids) ? "selected=\"1\"" : "";
158 158
 
159
-				$fline["title"] = " + " . $fline["title"];
159
+				$fline["title"] = " + ".$fline["title"];
160 160
 
161 161
 				for ($i = 0; $i < $nest_level; $i++) {
162
-									$fline["title"] = " - " . $fline["title"];
162
+									$fline["title"] = " - ".$fline["title"];
163 163
 				}
164 164
 
165 165
 				printf("<option $is_selected value='%d'>%s</option>",
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
 		}
220 220
 
221 221
 		for ($i = 0; $i < $nest_level; $i++) {
222
-					$line["title"] = " - " . $line["title"];
222
+					$line["title"] = " - ".$line["title"];
223 223
 		}
224 224
 
225 225
 		if ($line["title"]) {
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
 
230 230
 		if ($line["num_children"] > 0) {
231 231
 					print_feed_cat_select($id, $default_id, $attributes,
232
-				$include_all_cats, $line["id"], $nest_level+1);
232
+				$include_all_cats, $line["id"], $nest_level + 1);
233 233
 		}
234 234
 	}
235 235
 
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
 
322 322
 		if ($entry) {
323 323
 		    $entry .= "<a target=\"_blank\" rel=\"noopener noreferrer\"
324
-				href=\"$url\">" . basename($url) . "</a>";
324
+				href=\"$url\">".basename($url)."</a>";
325 325
 		}
326 326
 
327 327
 		$entry .= "</div>";
Please login to merge, or discard this patch.
include/functions.php 1 patch
Spacing   +5 added lines, -6 removed lines patch added patch discarded remove patch
@@ -231,14 +231,14 @@  discard block
 block discarded – undo
231 231
     $url = str_replace(' ', '%20', $url);
232 232
 
233 233
     if (strpos($url, "//") === 0) {
234
-            $url = 'http:' . $url;
234
+            $url = 'http:'.$url;
235 235
     }
236 236
 
237 237
     $url_host = parse_url($url, PHP_URL_HOST);
238 238
     $fetch_domain_hits[$url_host] += 1;
239 239
 
240 240
     if ($fetch_domain_hits[$url_host] > MAX_FETCH_REQUESTS_PER_HOST) {
241
-        user_error("Exceeded fetch request quota for $url_host: " . $fetch_domain_hits[$url_host], E_USER_WARNING);
241
+        user_error("Exceeded fetch request quota for $url_host: ".$fetch_domain_hits[$url_host], E_USER_WARNING);
242 242
         #return false;
243 243
     }
244 244
 
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
         }
256 256
 
257 257
         if ($http_accept) {
258
-                    array_push($curl_http_headers, "Accept: " . $http_accept);
258
+                    array_push($curl_http_headers, "Accept: ".$http_accept);
259 259
         }
260 260
 
261 261
         if (count($curl_http_headers) > 0) {
@@ -270,11 +270,10 @@  discard block
 block discarded – undo
270 270
         curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
271 271
         curl_setopt($ch, CURLOPT_HEADER, true);
272 272
         curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
273
-        curl_setopt($ch, CURLOPT_USERAGENT, $useragent ? $useragent :
274
-            SELF_USER_AGENT);
273
+        curl_setopt($ch, CURLOPT_USERAGENT, $useragent ? $useragent : SELF_USER_AGENT);
275 274
         curl_setopt($ch, CURLOPT_ENCODING, "");
276 275
 
277
-        if  ($http_referrer) {
276
+        if ($http_referrer) {
278 277
                     curl_setopt($ch, CURLOPT_REFERER, $http_referrer);
279 278
         }
280 279
 
Please login to merge, or discard this patch.
lib/gettext/gettext.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -177,12 +177,12 @@  discard block
 block discarded – undo
177 177
   function get_original_string($num) {
178 178
     $length = $this->table_originals[$num * 2 + 1];
179 179
     $offset = $this->table_originals[$num * 2 + 2];
180
-    if (! $length) {
180
+    if (!$length) {
181 181
           return '';
182 182
     }
183 183
     $this->STREAM->seekto($offset);
184 184
     $data = $this->STREAM->read($length);
185
-    return (string)$data;
185
+    return (string) $data;
186 186
   }
187 187
 
188 188
   /**
@@ -195,12 +195,12 @@  discard block
 block discarded – undo
195 195
   function get_translation_string($num) {
196 196
     $length = $this->table_translations[$num * 2 + 1];
197 197
     $offset = $this->table_translations[$num * 2 + 2];
198
-    if (! $length) {
198
+    if (!$length) {
199 199
           return '';
200 200
     }
201 201
     $this->STREAM->seekto($offset);
202 202
     $data = $this->STREAM->read($length);
203
-    return (string)$data;
203
+    return (string) $data;
204 204
   }
205 205
 
206 206
   /**
Please login to merge, or discard this patch.
lib/phpqrcode/qrimage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,11 +35,11 @@
 block discarded – undo
35 35
                 Header("Content-type: image/png");
36 36
                 ImagePng($image);
37 37
             } else {
38
-                if($saveandprint===true){
38
+                if ($saveandprint === true) {
39 39
                     ImagePng($image, $filename);
40 40
                     header("Content-type: image/png");
41 41
                     ImagePng($image);
42
-                } else{
42
+                } else {
43 43
                     ImagePng($image, $filename);
44 44
                 }
45 45
             }
Please login to merge, or discard this patch.
lib/phpqrcode/qrrscode.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -63,59 +63,59 @@  discard block
 block discarded – undo
63 63
             $rs = null;
64 64
             
65 65
             // Check parameter ranges
66
-            if($symsize < 0 || $symsize > 8) {
66
+            if ($symsize < 0 || $symsize > 8) {
67 67
                 return $rs;
68 68
             }
69
-            if($fcr < 0 || $fcr >= (1<<$symsize)) {
69
+            if ($fcr < 0 || $fcr >= (1 << $symsize)) {
70 70
                 return $rs;
71 71
             }
72
-            if($prim <= 0 || $prim >= (1<<$symsize)) {
72
+            if ($prim <= 0 || $prim >= (1 << $symsize)) {
73 73
                 return $rs;
74 74
             }
75
-            if($nroots < 0 || $nroots >= (1<<$symsize)) {
75
+            if ($nroots < 0 || $nroots >= (1 << $symsize)) {
76 76
                 return $rs;
77 77
             }
78 78
             // Can't have more roots than symbol values!
79
-            if($pad < 0 || $pad >= ((1<<$symsize) -1 - $nroots)) {
79
+            if ($pad < 0 || $pad >= ((1 << $symsize) - 1 - $nroots)) {
80 80
                 return $rs;
81 81
             }
82 82
             // Too much padding
83 83
 
84 84
             $rs = new QRrsItem();
85 85
             $rs->mm = $symsize;
86
-            $rs->nn = (1<<$symsize)-1;
86
+            $rs->nn = (1 << $symsize) - 1;
87 87
             $rs->pad = $pad;
88 88
 
89
-            $rs->alpha_to = array_fill(0, $rs->nn+1, 0);
90
-            $rs->index_of = array_fill(0, $rs->nn+1, 0);
89
+            $rs->alpha_to = array_fill(0, $rs->nn + 1, 0);
90
+            $rs->index_of = array_fill(0, $rs->nn + 1, 0);
91 91
           
92 92
             // PHP style macro replacement ;)
93
-            $NN =& $rs->nn;
94
-            $A0 =& $NN;
93
+            $NN = & $rs->nn;
94
+            $A0 = & $NN;
95 95
             
96 96
             // Generate Galois field lookup tables
97 97
             $rs->index_of[0] = $A0; // log(zero) = -inf
98 98
             $rs->alpha_to[$A0] = 0; // alpha**-inf = 0
99 99
             $sr = 1;
100 100
           
101
-            for($i=0; $i<$rs->nn; $i++) {
101
+            for ($i = 0; $i < $rs->nn; $i++) {
102 102
                 $rs->index_of[$sr] = $i;
103 103
                 $rs->alpha_to[$i] = $sr;
104 104
                 $sr <<= 1;
105
-                if($sr & (1<<$symsize)) {
105
+                if ($sr & (1 << $symsize)) {
106 106
                     $sr ^= $gfpoly;
107 107
                 }
108 108
                 $sr &= $rs->nn;
109 109
             }
110 110
             
111
-            if($sr != 1){
111
+            if ($sr != 1) {
112 112
                 // field generator polynomial is not primitive!
113 113
                 $rs = null;
114 114
                 return $rs;
115 115
             }
116 116
 
117 117
             /* Form RS code generator polynomial from its roots */
118
-            $rs->genpoly = array_fill(0, $nroots+1, 0);
118
+            $rs->genpoly = array_fill(0, $nroots + 1, 0);
119 119
         
120 120
             $rs->fcr = $fcr;
121 121
             $rs->prim = $prim;
@@ -204,23 +204,23 @@  discard block
 block discarded – undo
204 204
         //----------------------------------------------------------------------
205 205
         public static function init_rs($symsize, $gfpoly, $fcr, $prim, $nroots, $pad)
206 206
         {
207
-            foreach(self::$items as $rs) {
208
-                if($rs->pad != $pad) {
207
+            foreach (self::$items as $rs) {
208
+                if ($rs->pad != $pad) {
209 209
                     continue;
210 210
                 }
211
-                if($rs->nroots != $nroots) {
211
+                if ($rs->nroots != $nroots) {
212 212
                     continue;
213 213
                 }
214
-                if($rs->mm != $symsize) {
214
+                if ($rs->mm != $symsize) {
215 215
                     continue;
216 216
                 }
217
-                if($rs->gfpoly != $gfpoly) {
217
+                if ($rs->gfpoly != $gfpoly) {
218 218
                     continue;
219 219
                 }
220
-                if($rs->fcr != $fcr) {
220
+                if ($rs->fcr != $fcr) {
221 221
                     continue;
222 222
                 }
223
-                if($rs->prim != $prim) {
223
+                if ($rs->prim != $prim) {
224 224
                     continue;
225 225
                 }
226 226
 
Please login to merge, or discard this patch.