bitslip6/bitfire

View on GitHub

Showing 749 of 749 total issues

Doc-block of $row in dump_table contains phpdoc param type mixed which is incompatible with the param type array declared in the signature
Open

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

Call to undeclared function \wp_register_style()
Open

    \wp_register_style("dashkit-feather", plugin_dir_url(__FILE__) . "public/feather.css", [], "1.0");
Severity: Critical
Found in wordpress-plugin/bitfire-admin.php by phan

Assigning \FineDiffCopyOp|\FineDiffReplaceOp to property but \FineDiff->last_edit is false
Open

                $this->edits[] = $this->last_edit = $fragment_edit;
Severity: Minor
Found in firewall/src/diff.php by phan

Call to undeclared function \plugin_dir_url()
Open

    \wp_enqueue_script("dashkit-chart", plugin_dir_url(__FILE__) . "public/chart.min.js", ["jquery"], "1.0", false);
Severity: Critical
Found in wordpress-plugin/bitfire-admin.php by phan

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

 * @param UserAgent $agent 
Severity: Minor
Found in firewall/src/headers.php by phan

Call to undeclared function \plugin_dir_url()
Open

    \wp_enqueue_script("dashkit", plugin_dir_url(__FILE__) . "public/dashkit.min.js", ["jquery"], "1.0", true);
Severity: Critical
Found in wordpress-plugin/bitfire-admin.php by phan

Call to undeclared function \plugin_dir_url()
Open

        $assets = \plugin_dir_url(dirname(__FILE__, 1)) . "public/";
Severity: Critical
Found in firewall/src/server.php by phan

Call to undeclared function \update_user_meta()
Open

        update_user_meta($user_id, "bitfire_mfa_tel", $number);
Severity: Critical
Found in wordpress-plugin/bitfire-admin.php by phan

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

        $freq[$i] = [];
Severity: Info
Found in firewall/src/server.php by phan

Call to undeclared function \esc_html()
Open

            $info = esc_html($plugin["info"]??"unknown");
Severity: Critical
Found in wordpress-plugin/bitfire-admin.php by phan

Call to undeclared function \admin_url()
Open

        $url = admin_url("admin.php?page=bitfire_settings");
Severity: Critical
Found in wordpress-plugin/bitfire-admin.php by phan

Doc-block of reduce contains declared return type \ThreadFin\FileData which is incompatible with the return type ?string declared in the signature
Open

     * @return FileData 
Severity: Minor
Found in firewall/src/util.php by phan

Possibly zero references to use statement for function make_sane_path (\BitFire\make_sane_path)
Open

use function BitFire\make_sane_path;
Severity: Minor
Found in wordpress-plugin/bitfire-plugin.php by phan

Call to undeclared method \RecursiveIteratorIterator::getSubPathname
Open

            mkdir($dest . DIRECTORY_SEPARATOR . $iterator->getSubPathname());
Severity: Critical
Found in firewall/src/util.php by phan

Call to undeclared function \get_user_meta()
Open

        $tel = get_user_meta($my_id, "bitfire_mfa_tel");
Severity: Critical
Found in wordpress-plugin/bitfire-plugin.php by phan

Argument 2 (value) is ?string but \setcookie() takes string
Open

        setcookie($name, $value, [
Severity: Minor
Found in firewall/src/util.php by phan

Call to undeclared function \add_action()
Open

        add_action("check_password", "\BitFirePlugin\user_login", 100, 4);
Severity: Critical
Found in wordpress-plugin/bitfire-plugin.php by phan

Reference to undeclared constant \FILEINFO_MIME_TYPE
Open

            $ctx = finfo_open(FILEINFO_MIME_TYPE | FILEINFO_CONTINUE);
Severity: Minor
Found in firewall/src/webfilter.php by phan

Call to undeclared function \content_url()
Open

    if (\content_url() != CFG::str("cms_content_url")) {
Severity: Critical
Found in wordpress-plugin/bitfire-admin.php by phan

Doc-block of $all_caps in check_user_cap is phpdoc param type bool[] which is not a permitted replacement of the nullable param type ?array declared in the signature ('?T' should be documented as 'T|null' or '?T')
Open

 * @param array<bool> $all_caps 
Severity: Minor
Found in wordpress-plugin/bitfire-plugin.php by phan
Severity
Category
Status
Source
Language