@@ -307,7 +307,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
@@ -244,7 +244,7 @@ |
||
| 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 | } |
@@ -43,7 +43,7 @@ |
||
| 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 | |
@@ -48,7 +48,7 @@ |
||
| 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"]; |
@@ -92,7 +92,7 @@ |
||
| 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> |
@@ -5,7 +5,7 @@ |
||
| 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 |
@@ -10,7 +10,7 @@ |
||
| 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 | } |
@@ -435,7 +435,7 @@ |
||
| 435 | 435 | $processed++; |
| 436 | 436 | } |
| 437 | 437 | |
| 438 | - print "Processed $processed articles...\n"; |
|
| 438 | + print "processed $processed articles...\n"; |
|
| 439 | 439 | |
| 440 | 440 | if ($processed < $limit) { |
| 441 | 441 | echo "All done.\n"; |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | foreach (array_keys($this->hooks[$type]) as $prio) { |
| 151 | 151 | $key = array_search($sender, $this->hooks[$type][$prio]); |
| 152 | 152 | |
| 153 | - if ($key !== FALSE) { |
|
| 153 | + if ($key !== false) { |
|
| 154 | 154 | unset($this->hooks[$type][$prio][$key]); |
| 155 | 155 | } |
| 156 | 156 | } |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | if (file_exists($vendor_dir)) { |
| 214 | 214 | spl_autoload_register(function($class) use ($vendor_dir) { |
| 215 | 215 | |
| 216 | - if (strpos($class, '\\') !== FALSE) { |
|
| 216 | + if (strpos($class, '\\') !== false) { |
|
| 217 | 217 | list ($namespace, $class_name) = explode('\\', $class, 2); |
| 218 | 218 | |
| 219 | 219 | if ($namespace && $class_name) { |
@@ -231,7 +231,7 @@ discard block |
||
| 231 | 231 | $plugin_api = $plugin->api_version(); |
| 232 | 232 | |
| 233 | 233 | if ($plugin_api < PluginHost::API_VERSION) { |
| 234 | - user_error("Plugin $class is not compatible with current API version (need: " . PluginHost::API_VERSION . ", got: $plugin_api)", E_USER_WARNING); |
|
| 234 | + user_error("plugin $class is not compatible with current API version (need: " . PluginHost::API_VERSION . ", got: $plugin_api)", E_USER_WARNING); |
|
| 235 | 235 | continue; |
| 236 | 236 | } |
| 237 | 237 | |