From a4525d31b2536bc8ad9da013f4ed5168fac87d0a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 17 Sep 2020 19:02:27 +0300 Subject: replace FALSE with false so that static analyzer shuts up about it --- include/autoload.php | 2 +- include/controls.php | 2 +- include/functions.php | 12 ++++++------ include/login_form.php | 2 +- include/sanity_check.php | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) (limited to 'include') diff --git a/include/autoload.php b/include/autoload.php index 1f1dbe5e9..c02923dba 100644 --- a/include/autoload.php +++ b/include/autoload.php @@ -5,7 +5,7 @@ $namespace = ''; $class_name = $class; - if (strpos($class, '\\') !== FALSE) + if (strpos($class, '\\') !== false) list ($namespace, $class_name) = explode('\\', $class, 2); $root_dir = dirname(__DIR__); // we're in tt-rss/include diff --git a/include/controls.php b/include/controls.php index dc923e16a..fdcaad287 100755 --- a/include/controls.php +++ b/include/controls.php @@ -244,7 +244,7 @@ function stylesheet_tag($filename, $id = false) { function javascript_tag($filename) { $query = ""; - if (!(strpos($filename, "?") === FALSE)) { + if (!(strpos($filename, "?") === false)) { $query = substr($filename, strpos($filename, "?")+1); $filename = substr($filename, 0, strpos($filename, "?")); } diff --git a/include/functions.php b/include/functions.php index e91840051..c0a215fba 100644 --- a/include/functions.php +++ b/include/functions.php @@ -326,7 +326,7 @@ $contents = substr($ret, $headers_length); foreach ($headers as $header) { - if (strstr($header, ": ") !== FALSE) { + if (strstr($header, ": ") !== false) { list ($key, $value) = explode(": ", $header); if (strtolower($key) == "last-modified") { @@ -461,7 +461,7 @@ if (isset($http_response_header) && is_array($http_response_header)) { foreach ($http_response_header as $header) { - if (strstr($header, ": ") !== FALSE) { + if (strstr($header, ": ") !== false) { list ($key, $value) = explode(": ", $header); $key = strtolower($key); @@ -538,7 +538,7 @@ } while ($line = $sth->fetch()) { - if (array_search($line["pref_name"], $active_prefs) === FALSE) { + if (array_search($line["pref_name"], $active_prefs) === false) { // print "adding " . $line["pref_name"] . "
"; if (get_schema_version() < 63) { @@ -1613,7 +1613,7 @@ foreach ($filter["rules"] AS $rule) { $rule['reg_exp'] = str_replace('/', '\/', $rule["reg_exp"]); $regexp_valid = preg_match('/' . $rule['reg_exp'] . '/', - $rule['reg_exp']) !== FALSE; + $rule['reg_exp']) !== false; if ($regexp_valid) { @@ -1761,7 +1761,7 @@ for ($i = 0; $i < $l10n->total; $i++) { $orig = $l10n->get_original_string($i); - if(strpos($orig, "\000") !== FALSE) { // Plural forms + if(strpos($orig, "\000") !== false) { // Plural forms $key = explode(chr(0), $orig); print T_js_decl($key[0], _ngettext($key[0], $key[1], 1)); // Singular print T_js_decl($key[1], _ngettext($key[0], $key[1], 2)); // Plural @@ -1971,7 +1971,7 @@ if (strpos($url, "//") === 0) $url = "https:" . $url; - if (filter_var($url, FILTER_VALIDATE_URL) === FALSE) + if (filter_var($url, FILTER_VALIDATE_URL) === false) return false; $tokens = parse_url($url); diff --git a/include/login_form.php b/include/login_form.php index 74f85f314..29fbe3aba 100755 --- a/include/login_form.php +++ b/include/login_form.php @@ -120,7 +120,7 @@ onblur="UtilityApp.fetchProfiles()" value=""/> - +
diff --git a/include/sanity_check.php b/include/sanity_check.php index 454d44883..86dc7a5f0 100755 --- a/include/sanity_check.php +++ b/include/sanity_check.php @@ -60,7 +60,7 @@ array_push($errors, "Please copy config.php-dist to config.php or run the installer in install/"); } - if (strpos(PLUGINS, "auth_") === FALSE) { + if (strpos(PLUGINS, "auth_") === false) { array_push($errors, "Please enable at least one authentication module via PLUGINS constant in config.php"); } -- cgit v1.2.3-54-g00ecf