diff options
author | Andrew Dolgov <[email protected]> | 2020-09-17 19:02:27 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2020-09-17 19:02:27 +0300 |
commit | a4525d31b2536bc8ad9da013f4ed5168fac87d0a (patch) | |
tree | 9ae00d19d362a74693800b45efbbf6ffaddcdbb9 /include | |
parent | 57fac845166a2efa7244c61cce31442fc5600232 (diff) |
replace FALSE with false so that static analyzer shuts up about it
Diffstat (limited to 'include')
-rw-r--r-- | include/autoload.php | 2 | ||||
-rwxr-xr-x | include/controls.php | 2 | ||||
-rw-r--r-- | include/functions.php | 12 | ||||
-rwxr-xr-x | include/login_form.php | 2 | ||||
-rwxr-xr-x | include/sanity_check.php | 2 |
5 files changed, 10 insertions, 10 deletions
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"] . "<br>"; 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="<?php echo $_SESSION["fake_password"] ?>"/> </fieldset> - <?php if (strpos(PLUGINS, "auth_internal") !== FALSE) { ?> + <?php if (strpos(PLUGINS, "auth_internal") !== false) { ?> <fieldset class="align-right"> <a href="public.php?op=forgotpass"><?php echo __("I forgot my password") ?></a> </fieldset> 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"); } |