bitslip6/bitfire

View on GitHub

Showing 749 of 749 total issues

Argument 1 (mh) is ?false|?resource but \curl_multi_close() takes resource
Open

        curl_multi_close($mh);
Severity: Minor
Found in firewall/src/api.php by phan

Suspicious array access to nullable ?array
Open

        $review = ["uuid" => $uuid, "name" => $raw_data['name'], "time" => date(DATE_ATOM)];
Severity: Minor
Found in firewall/src/api.php by phan

Call to undeclared function \serve_bot_list()
Open

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

Variable $request is undeclared (Did you mean $_REQUEST)
Open

            $this->bot_filter->browser = \BitFireBot\parse_agent($request->agent);
Severity: Minor
Found in firewall/src/bitfire.php by phan

Call to undeclared function \esc_attr()
Open

        esc_attr($_POST["login"]),
Severity: Critical
Found in custom-plugin/bitfire-plugin.php by phan

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

use SplFixedArray;
Severity: Minor
Found in firewall/src/api.php by phan

Doc-block of download contains declared return type void which is incompatible with the return type \ThreadFin\Effect declared in the signature
Open

 * @return void 
Severity: Minor
Found in firewall/src/api.php by phan

Variable $out_fun is undeclared (Did you mean $out_fn)
Open

    $num_bytes = $out_fun();
Severity: Minor
Found in firewall/src/api.php by phan

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

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

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

    debug("x-valid-answer cookie: (%s) server: (%s) / %s", $cookie_answer(), $answer->ans, $bfa);
Severity: Info
Found in firewall/src/botfilter.php by phan

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

use RuntimeException;
Severity: Minor
Found in custom-plugin/bitfire-plugin.php by phan

Possibly zero references to use statement for constant STATUS_EACCES (\BitFire\STATUS_EACCES)
Open

use const BitFire\STATUS_EACCES;
Severity: Minor
Found in custom-plugin/bitfire-plugin.php by phan

Reference to undeclared property \BitFire\Exception->date_utc
Open

        $ex->date_utc = date(DATE_RFC3339);
Severity: Minor
Found in firewall/src/bitfire_pure.php by phan

Possibly zero references to use statement for function find_ip_as (\BitFireBot\find_ip_as)
Open

use function BitFireBot\find_ip_as;
Severity: Minor
Found in firewall/src/botfilter.php by phan

Argument 3 (expires) is array{expires:int,path:'/',domain:'',secure:false,httponly:true,samesite:'strict'} but \setcookie() takes int
Open

    if (PHP_VERSION_ID < 70300) { setcookie($name, $value, time() + $exp, '/; samesite=strict', '', false, true); } else { setcookie($name, $value, [ 'expires' => time() + $exp, 'path' => '/', 'domain' => '', 'secure' => false, 'httponly' => true, 'samesite' => 'strict' ]); }
Severity: Minor
Found in bin/bitfire-install.php by phan

Call to undeclared function \add_menu_page()
Open

    \add_menu_page(
Severity: Critical
Found in custom-plugin/bitfire-plugin.php by phan

Call to undeclared function \esc_attr()
Open

        esc_attr($_POST["password"]),
Severity: Critical
Found in custom-plugin/bitfire-plugin.php by phan

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

    $sqlsz = $sql->size();
Severity: Critical
Found in firewall/hash_compare.php by phan

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

    $db = \DB\DB::connect("localhost", "php", "password", "bitfire");
Severity: Critical
Found in firewall/hash_compare.php by phan

Returning type ?bool but upload_file() is declared to return ?string
Open

        return debugN("unable to read file upload response from $url");
Severity: Minor
Found in firewall/src/api.php by phan
Severity
Category
Status
Source
Language