Passed
Branch master (a3c0d0)
by Cody
02:54
created
include/functions.php 1 patch
Upper-Lower-Casing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -307,7 +307,7 @@  discard block
 block discarded – undo
307 307
         $contents = substr($ret, $headers_length);
308 308
 
309 309
         foreach ($headers as $header) {
310
-            if (strstr($header, ": ") !== FALSE) {
310
+            if (strstr($header, ": ") !== false) {
311 311
                 list ($key, $value) = explode(": ", $header);
312 312
 
313 313
                 if (strtolower($key) == "last-modified") {
@@ -414,7 +414,7 @@  discard block
 block discarded – undo
414 414
 
415 415
         if (isset($http_response_header) && is_array($http_response_header)) {
416 416
             foreach ($http_response_header as $header) {
417
-                if (strstr($header, ": ") !== FALSE) {
417
+                if (strstr($header, ": ") !== false) {
418 418
                     list ($key, $value) = explode(": ", $header);
419 419
 
420 420
                     $key = strtolower($key);
@@ -491,7 +491,7 @@  discard block
 block discarded – undo
491 491
     }
492 492
 
493 493
     while ($line = $sth->fetch()) {
494
-        if (array_search($line["pref_name"], $active_prefs) === FALSE) {
494
+        if (array_search($line["pref_name"], $active_prefs) === false) {
495 495
 //				print "adding " . $line["pref_name"] . "<br>";
496 496
 
497 497
             if (get_schema_version() < 63) {
@@ -1654,7 +1654,7 @@  discard block
 block discarded – undo
1654 1654
 
1655 1655
         for ($i = 0; $i < $l10n->total; $i++) {
1656 1656
             $orig = $l10n->get_original_string($i);
1657
-            if(strpos($orig, "\000") !== FALSE) { // Plural forms
1657
+            if(strpos($orig, "\000") !== false) { // Plural forms
1658 1658
                 $key = explode(chr(0), $orig);
1659 1659
                 print T_js_decl($key[0], _ngettext($key[0], $key[1], 1)); // Singular
1660 1660
                 print T_js_decl($key[1], _ngettext($key[0], $key[1], 2)); // Plural
Please login to merge, or discard this patch.
include/controls.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -244,7 +244,7 @@
 block discarded – undo
244 244
 function javascript_tag($filename) {
245 245
 	$query = "";
246 246
 
247
-	if (!(strpos($filename, "?") === FALSE)) {
247
+	if (!(strpos($filename, "?") === false)) {
248 248
 		$query = substr($filename, strpos($filename, "?")+1);
249 249
 		$filename = substr($filename, 0, strpos($filename, "?"));
250 250
 	}
Please login to merge, or discard this patch.
include/sanity_check.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
 				array_push($errors, "Please copy config.php-dist to config.php or run the installer in install/");
44 44
 			}
45 45
 
46
-			if (strpos(PLUGINS, "auth_") === FALSE) {
46
+			if (strpos(PLUGINS, "auth_") === false) {
47 47
 				array_push($errors, "Please enable at least one authentication module via PLUGINS constant in config.php");
48 48
 			}
49 49
 
Please login to merge, or discard this patch.
include/errorhandler.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
 
49 49
 	$error = error_get_last();
50 50
 
51
-	if ($error !== NULL) {
51
+	if ($error !== null) {
52 52
 		$errno = $error["type"];
53 53
 		$file = $error["file"];
54 54
 		$line = $error["line"];
Please login to merge, or discard this patch.
include/login_form.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
 					   class="input input-text"
93 93
 					   value="<?php echo $_SESSION["fake_password"] ?>"/>
94 94
 			</fieldset>
95
-			<?php if (strpos(PLUGINS, "auth_internal") !== FALSE) { ?>
95
+			<?php if (strpos(PLUGINS, "auth_internal") !== false) { ?>
96 96
 				<fieldset class="align-right">
97 97
 					<a href="public.php?op=forgotpass"><?php echo __("I forgot my password") ?></a>
98 98
 				</fieldset>
Please login to merge, or discard this patch.
include/autoload.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 		$namespace = '';
6 6
 		$class_name = $class;
7 7
 
8
-		if (strpos($class, '\\') !== FALSE)
8
+		if (strpos($class, '\\') !== false)
9 9
 			list ($namespace, $class_name) = explode('\\', $class, 2);
10 10
 
11 11
 		$root_dir = dirname(__DIR__); // we're in tt-rss/include
Please login to merge, or discard this patch.
install/index.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 	function javascript_tag($filename) {
11 11
 		$query = "";
12 12
 
13
-		if (!(strpos($filename, "?") === FALSE)) {
13
+		if (!(strpos($filename, "?") === false)) {
14 14
 			$query = substr($filename, strpos($filename, "?")+1);
15 15
 			$filename = substr($filename, 0, strpos($filename, "?"));
16 16
 		}
Please login to merge, or discard this patch.
plugins/af_redditimgur/init.php 1 patch
Upper-Lower-Casing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 		//$debug = 1;
95 95
 
96 96
 		foreach ($entries as $entry) {
97
-			if ($entry->hasAttribute("href") && strpos($entry->getAttribute("href"), "reddit.com") === FALSE) {
97
+			if ($entry->hasAttribute("href") && strpos($entry->getAttribute("href"), "reddit.com") === false) {
98 98
 
99 99
 				Debug::log("processing href: " . $entry->getAttribute("href"), Debug::$LOG_VERBOSE);
100 100
 
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 								$p = $doc->createElement("p");
116 116
 
117 117
 								$p->appendChild($doc->importNode(
118
-									$tmp->getElementsByTagName("blockquote")->item(0), TRUE));
118
+									$tmp->getElementsByTagName("blockquote")->item(0), true));
119 119
 
120 120
 								$br = $doc->createElement('br');
121 121
 								$entry->parentNode->insertBefore($p, $entry);
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
 
141 141
 					$content_type = $this->get_content_type($source_stream);
142 142
 
143
-					if (strpos($content_type, "video/") !== FALSE) {
143
+					if (strpos($content_type, "video/") !== false) {
144 144
 						$this->handle_as_video($doc, $entry, $source_stream, $poster_url);
145 145
 						$found = 1;
146 146
 					}
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
 
231 231
 					$source_stream = str_replace(".gifv", ".mp4", $entry->getAttribute("href"));
232 232
 
233
-					if (strpos($source_stream, "imgur.com") !== FALSE)
233
+					if (strpos($source_stream, "imgur.com") !== false)
234 234
 						$poster_url = str_replace(".mp4", "h.jpg", $source_stream);
235 235
 
236 236
 					$this->handle_as_video($doc, $entry, $source_stream, $poster_url);
@@ -265,8 +265,8 @@  discard block
 block discarded – undo
265 265
 				}
266 266
 
267 267
 				if (!$found && preg_match("/\.(jpg|jpeg|gif|png)(\?[0-9][0-9]*)?$/i", $entry->getAttribute("href")) ||
268
-					mb_strpos($entry->getAttribute("href"), "i.reddituploads.com") !== FALSE ||
269
-					mb_strpos($this->get_content_type($entry->getAttribute("href")), "image/") !== FALSE) {
268
+					mb_strpos($entry->getAttribute("href"), "i.reddituploads.com") !== false ||
269
+					mb_strpos($this->get_content_type($entry->getAttribute("href")), "image/") !== false) {
270 270
 
271 271
 					Debug::log("Handling as a picture", Debug::$LOG_VERBOSE);
272 272
 
@@ -393,7 +393,7 @@  discard block
 block discarded – undo
393 393
 
394 394
 	public function hook_article_filter($article) {
395 395
 
396
-		if (strpos($article["link"], "reddit.com/r/") !== FALSE) {
396
+		if (strpos($article["link"], "reddit.com/r/") !== false) {
397 397
 			$doc = new DOMDocument();
398 398
 			@$doc->loadHTML($article["content"]);
399 399
 			$xpath = new DOMXPath($doc);
@@ -542,7 +542,7 @@  discard block
 block discarded – undo
542 542
 
543 543
 			// do not try to embed posts linking back to other reddit posts
544 544
 			// readability.php requires PHP 5.6
545
-			if ($url &&	strpos($url, "reddit.com") === FALSE && version_compare(PHP_VERSION, '5.6.0', '>=')) {
545
+			if ($url &&	strpos($url, "reddit.com") === false && version_compare(PHP_VERSION, '5.6.0', '>=')) {
546 546
 
547 547
 				/* link may lead to a huge video file or whatever, we need to check content type before trying to
548 548
 				parse it which p much requires curl */
@@ -550,7 +550,7 @@  discard block
 block discarded – undo
550 550
 				$useragent_compat = "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)";
551 551
 				$content_type = $this->get_content_type($url, $useragent_compat);
552 552
 
553
-				if ($content_type && strpos($content_type, "text/html") !== FALSE) {
553
+				if ($content_type && strpos($content_type, "text/html") !== false) {
554 554
 
555 555
 					foreach ($this->host->get_hooks(PluginHost::HOOK_GET_FULL_TEXT) as $p) {
556 556
 						$extracted_content = $p->hook_get_full_text($url);
Please login to merge, or discard this patch.
plugins/af_readability/init.php 1 patch
Upper-Lower-Casing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
 		if (!is_array($enabled_feeds)) $enabled_feeds = array();
124 124
 
125 125
 		$key = array_search($feed_id, $enabled_feeds);
126
-		$checked = $key !== FALSE ? "checked" : "";
126
+		$checked = $key !== false ? "checked" : "";
127 127
 
128 128
 		print "<fieldset>";
129 129
 
@@ -143,11 +143,11 @@  discard block
 block discarded – undo
143 143
 		$key = array_search($feed_id, $enabled_feeds);
144 144
 
145 145
 		if ($enable) {
146
-			if ($key === FALSE) {
146
+			if ($key === false) {
147 147
 				array_push($enabled_feeds, $feed_id);
148 148
 			}
149 149
 		} else {
150
-			if ($key !== FALSE) {
150
+			if ($key !== false) {
151 151
 				unset($enabled_feeds[$key]);
152 152
 			}
153 153
 		}
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
 		if (!is_array($enabled_feeds)) return $article;
241 241
 
242 242
 		$key = array_search($article["feed"]["id"], $enabled_feeds);
243
-		if ($key === FALSE) return $article;
243
+		if ($key === false) return $article;
244 244
 
245 245
 		return $this->process_article($article);
246 246
 
Please login to merge, or discard this patch.