bitslip6/bitfire

View on GitHub

Showing 749 of 749 total issues

Saw an @param annotation for limit, but it was not found in the param list of function set_check_point(int $offset) : void
Open

     * @param int $limit 
Severity: Info
Found in firewall/src/db.php by phan

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

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

Argument 1 (content) is false but \ThreadFin\HTTP\http_response() takes string defined at /code/firewall/src/http.php:65
Open

        return http_response($response, $path, ["http/1.1 200"], 0, false);
Severity: Minor
Found in firewall/src/http.php by phan

Doc-block of view_modifier has declared return type array which is not a permitted replacement of the nullable return type ?callable declared in the signature ('?T' should be documented as 'T|null' or '?T')
Open

 * @return array 
Severity: Minor
Found in firewall/src/renderer.php by phan

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

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

Returning type ?array but tar_read_header() is declared to return ?\ThreadFin\TarHeader
Open

    if ($uid != '' && !ctype_digit($uid)) { return debug("error reading header file [%d]!", $uid); }
Severity: Minor
Found in firewall/src/tar.php by phan

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

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

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

        $wp_admin = ($maybe_bot_cookie->extract("wp")() > 1);
Severity: Info
Found in firewall/src/bitfire.php by phan

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

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

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

                    $_GET = un_json($maybe_bot_cookie->extract('g', $_POST['_bfg'] ?? "")());
Severity: Info
Found in firewall/src/botfilter.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/botfilter.php by phan

Call with 5 arg(s) to \BitFireBot\make_js_script() which only takes 4 arg(s) defined at /code/firewall/src/botfilter.php:1376
Open

        $html = make_js_script($ip_data->op1, $ip_data->op2, $ip_data->oper, "bfxa", CFG::str("csp_nonce"));
Severity: Info
Found in firewall/src/botfilter.php by phan

Argument 1 (string) is true but \strlen() takes string
Open

    if (strlen($config->extra_regex) > 1) {
Severity: Minor
Found in firewall/src/cms.php by phan

Suspicious array access to nullable ?array
Open

        ($header['expires'] < $ctx['now']) ||
Severity: Minor
Found in firewall/src/cuckoo.php by phan

Reference to undeclared constant \MYSQLI_ASSOC
Open

    public function fetch(string $sql, $data = NULL, $mode = MYSQLI_ASSOC) : SQL {
Severity: Minor
Found in firewall/src/db.php by phan

Variable $edits was undeclared, but array fields are being added to it.
Open

            $edits[] = new FineDiffInsertOp(substr($from, $from_offset, $from_len));
Severity: Info
Found in firewall/src/diff.php by phan

@throws type of http has undeclared type \ThreadFin\HTTP\HttpTimeoutException
Open

function http(string $method, string $path, $data, ?array $optional_headers = []) : HttpResponse {
Severity: Minor
Found in firewall/src/http.php by phan

Assigning ?'apcu'|?'shm'|?'shmop'|?string to property but \ThreadFin\CacheStorage::$_type is string
Open

            self::$_type = $type;
Severity: Minor
Found in firewall/src/storage.php by phan

Argument 1 (var) is ?array but \count() takes \Countable|array
Open

    debug("hash_compare result [%d]", count($result));
Severity: Minor
Found in firewall/src/cms.php by phan

Argument 2 (needle) is true but \stripos() takes int|string
Open

            if ($pos = stripos($c3, $config->extra_regex)) {
Severity: Minor
Found in firewall/src/cms.php by phan
Severity
Category
Status
Source
Language