mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 10:05:56 +00:00
replace FALSE with false so that static analyzer shuts up about it
This commit is contained in:
@@ -54,7 +54,7 @@ class Article extends Handler_Protected {
|
||||
if (!$title) $title = $url;
|
||||
if (!$title && !$url) return false;
|
||||
|
||||
if (filter_var($url, FILTER_VALIDATE_URL) === FALSE) return false;
|
||||
if (filter_var($url, FILTER_VALIDATE_URL) === false) return false;
|
||||
|
||||
$pdo = Db::pdo();
|
||||
|
||||
@@ -757,7 +757,7 @@ class Article extends Handler_Protected {
|
||||
|
||||
if (!$article_image)
|
||||
foreach ($enclosures as $enc) {
|
||||
if (strpos($enc["content_type"], "image/") !== FALSE) {
|
||||
if (strpos($enc["content_type"], "image/") !== false) {
|
||||
$article_image = $enc["content_url"];
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ class Backend extends Handler_Protected {
|
||||
|
||||
if (is_array($omap[$action])) {
|
||||
foreach ($omap[$action] as $sequence) {
|
||||
if (strpos($sequence, "|") !== FALSE) {
|
||||
if (strpos($sequence, "|") !== false) {
|
||||
$sequence = substr($sequence,
|
||||
strpos($sequence, "|")+1,
|
||||
strlen($sequence));
|
||||
|
||||
@@ -210,7 +210,7 @@ class Feeds extends Handler_Protected {
|
||||
$feed_title = $qfh_ret[1];
|
||||
$feed_site_url = $qfh_ret[2];
|
||||
$last_error = $qfh_ret[3];
|
||||
$last_updated = strpos($qfh_ret[4], '1970-') === FALSE ?
|
||||
$last_updated = strpos($qfh_ret[4], '1970-') === false ?
|
||||
make_local_datetime($qfh_ret[4], false) : __("Never");
|
||||
$highlight_words = $qfh_ret[5];
|
||||
$reply['first_id'] = $qfh_ret[6];
|
||||
@@ -1142,7 +1142,7 @@ class Feeds extends Handler_Protected {
|
||||
return array("code" => 5, "message" => $fetch_last_error);
|
||||
}
|
||||
|
||||
if (mb_strpos($fetch_last_content_type, "html") !== FALSE && Feeds::is_html($contents)) {
|
||||
if (mb_strpos($fetch_last_content_type, "html") !== false && Feeds::is_html($contents)) {
|
||||
$feedUrls = Feeds::get_feeds_from_html($url, $contents);
|
||||
|
||||
if (count($feedUrls) == 0) {
|
||||
|
||||
@@ -155,7 +155,7 @@ class PluginHost {
|
||||
foreach (array_keys($this->hooks[$type]) as $prio) {
|
||||
$key = array_search($sender, $this->hooks[$type][$prio]);
|
||||
|
||||
if ($key !== FALSE) {
|
||||
if ($key !== false) {
|
||||
unset($this->hooks[$type][$prio][$key]);
|
||||
}
|
||||
}
|
||||
@@ -218,7 +218,7 @@ class PluginHost {
|
||||
if (file_exists($vendor_dir)) {
|
||||
spl_autoload_register(function($class) use ($vendor_dir) {
|
||||
|
||||
if (strpos($class, '\\') !== FALSE) {
|
||||
if (strpos($class, '\\') !== false) {
|
||||
list ($namespace, $class_name) = explode('\\', $class, 2);
|
||||
|
||||
if ($namespace && $class_name) {
|
||||
|
||||
@@ -866,7 +866,7 @@ class Pref_Prefs extends Handler_Protected {
|
||||
PluginHost::getInstance()->get_hooks(PluginHost::HOOK_FETCH_FEED));
|
||||
|
||||
$feed_handlers = array_filter($feed_handlers, function($plugin) use ($feed_handler_whitelist) {
|
||||
return in_array(get_class($plugin), $feed_handler_whitelist) === FALSE; });
|
||||
return in_array(get_class($plugin), $feed_handler_whitelist) === false; });
|
||||
|
||||
if (count($feed_handlers) > 0) {
|
||||
print_error(
|
||||
|
||||
@@ -148,7 +148,7 @@ class RSSUtils {
|
||||
if ($tline = $usth->fetch()) {
|
||||
Debug::log(" => " . $tline["last_updated"] . ", " . $tline["id"] . " " . $tline["owner_uid"]);
|
||||
|
||||
if (array_search($tline["owner_uid"], $batch_owners) === FALSE)
|
||||
if (array_search($tline["owner_uid"], $batch_owners) === false)
|
||||
array_push($batch_owners, $tline["owner_uid"]);
|
||||
|
||||
$fstarted = microtime(true);
|
||||
|
||||
@@ -5,7 +5,7 @@ class Templator extends MiniTemplator {
|
||||
|
||||
/* this reads tt-rss template from templates.local/ or templates/ if only base filename is given */
|
||||
function readTemplateFromFile ($fileName) {
|
||||
if (strpos($fileName, "/") === FALSE) {
|
||||
if (strpos($fileName, "/") === false) {
|
||||
|
||||
$fileName = basename($fileName);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user