bitslip6/bitfire

View on GitHub

Showing 749 of 749 total issues

Reference to undeclared constant \DB_USER
Open

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

Saw a token Phan may have failed to parse after '* @return array<array-key mixed>':</array-key> after array, saw '<'
Open

 * @return array<array-key, mixed> 
Severity: Info
Found in firewall/src/api.php by phan

Function file_recurse defined at /code/bin/bitfire-install.php:128 was previously defined at /code/recovery.php:21
Open

function file_recurse(string $dirname, callable $fn, string $regex_filter = NULL, array $result = array(), $max_results = 20000) : array {
Severity: Minor
Found in bin/bitfire-install.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/cms.php by phan

Suspicious array access to nullable ?array
Open

    $uuid = $raw_data['uuid'];
Severity: Minor
Found in firewall/src/api.php by phan

Argument 2 (offset) is string but \BitFire\offset_post_text() takes int defined at /code/firewall/src/cms.php:1476
Open

                        offset_post_text($c3, $inc[0][1], 512, $size),
Severity: Minor
Found in firewall/src/cms.php by phan

Call to undeclared function \serve_dashboard()
Open

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

Suspicious array access to nullable ?array
Open

    if ($header['hash1'] !== $key_hashes[0] || $header['hash2'] !== $key_hashes[1]) {
Severity: Minor
Found in firewall/src/cuckoo.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_pure.php by phan

Suspicious array access to nullable ?array
Open

            return debugN("cache keys miss-match [%s] 1:%d/%d, 2:%d/%d", $key, $key_hashes[0], $header['hash1'], $key_hashes[1], $header['hash2']);
Severity: Minor
Found in firewall/src/cuckoo.php by phan

Assigning '' to property but \BitFire\Request->post is array<string>|array<string></string></string>
Open

        $request->post = "";
Severity: Minor
Found in firewall/src/bitfire_pure.php by phan

Doc-block of $data in stream_output_fn is phpdoc param type string which is not a permitted replacement of the nullable param type ?string declared in the signature ('?T' should be documented as 'T|null' or '?T')
Open

 * @param string $data 
Severity: Minor
Found in firewall/src/db.php by phan

Call with 1 arg(s) to \ThreadFin\Effect::__construct() which only takes 0 arg(s) defined at /code/firewall/src/util.php:853
Open

        return new Effect(STATUS_OK);
Severity: Info
Found in firewall/src/botfilter.php by phan

Doc-block of dump_table contains declared return type int which is incompatible with the return type ?\ThreadFinDB\Offset declared in the signature
Open

 * @return int number of uncompressed bytes written
Severity: Minor
Found in firewall/src/db.php by phan

Saw an @param annotation for agent, but it was not found in the param list of function load_bot_data(string $info_file, string $ip, string $trim_agent, int $valid = 1) : \BitFire\BotInfo;
Open

 * @param string $agent 
Severity: Info
Found in firewall/src/botfilter.php by phan

Argument 1 (shm_identifier) is false but \shm_put_var() takes resource
Open

        return @shm_put_var(self::$ctx, $keyint, $d);
Severity: Minor
Found in firewall/src/shmop.php by phan

Saw an @param annotation for error, but it was not found in the param list of function add(?\BitFire\Entity $malware) : void
Open

     * @param null|TF_Error $error 
Severity: Info
Found in firewall/src/cms.php by phan

Saw an @param annotation for content, but it was not found in the param list of function char_freq_analysis(array $test_frequency, array $compare_freq) : float;
Open

 * @param string $content 
Severity: Info
Found in firewall/src/cms.php by phan

Assigning float to property but \BitFire\File_Info_Block->frequency is array
Open

        $info->frequency = char_freq_analysis($char_counts, $compare_freq);
Severity: Minor
Found in firewall/src/cms.php by phan

Saw an @param annotation for path, but it was not found in the param list of function package_to_ver(string $carry, string $line) : string;
Open

 * @param mixed $path 
Severity: Info
Found in firewall/src/cms.php by phan
Severity
Category
Status
Source
Language