bitslip6/bitfire

View on GitHub

Showing 749 of 749 total issues

Assigning bool to property but \BitFire\UserAgent->whitelist is string
Open

        $this->whitelist = $whitelist;
Severity: Minor
Found in firewall/src/botfilter.php by phan

Possible attempt to access missing magic method __invoke of '\ThreadFin\MaybeI'
Open

    if ($cookie && $cookie->extract("wp")() == 2) {
Severity: Info
Found in custom-plugin/bitfire-plugin.php by phan

Call to undeclared function \plugin_dir_path()
Open

        include_once \plugin_dir_path(__FILE__) . "bitfire-admin.php";
Severity: Critical
Found in custom-plugin/bitfire-plugin.php by phan

Possibly zero references to use statement for classlike/namespace Credentials (\ThreadFinDB\Credentials)
Open

use ThreadFinDB\Credentials;
Severity: Minor
Found in firewall/src/api.php by phan

Reference to undeclared constant \DB_NAME
Open

    $db_name     = defined( 'DB_NAME' ) ? DB_NAME : '';
Severity: Minor
Found in firewall/src/api.php by phan

Saw an @param annotation for dir_without_plugin_name, but it was not found in the param list of function batch_enrich(mixed $hash_slice, ?\BitFire\ScanConfig $config = null) : array;
Open

 * @param mixed $dir_without_plugin_name 
Severity: Info
Found in firewall/src/api.php by phan

Call with 1 arg(s) to \BitFire\verify_admin_password() which only takes 0 arg(s) defined at /code/firewall/src/bitfire.php:336
Open

            : verify_admin_password($request);
Severity: Info
Found in firewall/src/api.php by phan

Possibly zero references to use statement for classlike/namespace FileData (\ThreadFin\FileData)
Open

use ThreadFin\FileData;
Severity: Minor
Found in firewall/src/botfilter.php by phan

Call to undeclared function \plugin_dir_path()
Open

    include_once \plugin_dir_path(__FILE__) . "bitfire-admin.php";
Severity: Critical
Found in custom-plugin/bitfire-plugin.php by phan

Call to method fetch from undeclared class \DB\DB (Did you mean class \ThreadFinDB\DB)
Open

        $sql = $db->fetch("SELECT {$table}_id FROM $table WHERE name = {name}", array("name" => $hash["name"]));
Severity: Critical
Found in firewall/hash_compare.php by phan

Possibly zero references to use statement for classlike/namespace Result (\LDAP\Result)
Open

use LDAP\Result;
Severity: Minor
Found in firewall/src/api.php by phan

Possibly zero references to use statement for function compact_array (\ThreadFin\compact_array)
Open

use function ThreadFin\compact_array;
Severity: Minor
Found in firewall/src/api.php by phan

When fetching an array index from a value of type array, found an array index of type float, but expected the index to be of type int|string
Open

        if ($needle < $haystack[$mid]) {
Severity: Minor
Found in firewall/src/api.php by phan

Variable $message is undeclared
Open

        return $effect->api(false, $message, ["backup_size" => 0, "file" => CFG::str("cms_content_dir") . "no-backup.sql.gz", "store" => "", "status" => "failed - unable to find database credentials"]);
Severity: Minor
Found in firewall/src/api.php by phan

Suspicious array access to nullable ?array
Open

            $updated = preg_replace("/<a[^>]*?{$request->post['link']}.*?>(.*)<\/a>/ims", "", $posts->data()[0]['post_content']);
Severity: Minor
Found in firewall/src/api.php by phan

Possibly zero references to use statement for function dbg (\ThreadFin\dbg)
Open

use function ThreadFin\dbg;
Severity: Minor
Found in firewall/src/bitfire.php by phan

Call to undeclared function \serve_settings()
Open

                serve_settings();
Severity: Critical
Found in firewall/src/bitfire.php by phan

Possibly zero references to use statement for function debug (\ThreadFin\debug)
Open

use function ThreadFin\debug;
Severity: Minor
Found in custom-plugin/bitfire-plugin.php by phan

Parameter $sql has undeclared type \DB\SQL (Did you mean class \ThreadFinDB\SQL)
Open

function find_closest_value_index(SQL $sql, string $search_col, int $search_value) : int {
Severity: Minor
Found in firewall/hash_compare.php by phan

Parameter $db has undeclared type \DB\DB (Did you mean class \ThreadFinDB\DB)
Open

function enrich_tables(array $hash, \DB\DB $db, string $version) : array {
Severity: Minor
Found in firewall/hash_compare.php by phan
Severity
Category
Status
Source
Language