bitslip6/bitfire

View on GitHub

Showing 749 of 749 total issues

Required argument follows optional
Open

function file_index(string $dirname, string $include_regex_filter = NULL, callable $write_fn, bool $root = true) {
Severity: Info
Found in firewall/src/util.php by phan

Call to undeclared function \wp_get_current_user() (Did you mean \get_current_user())
Open

            $user = \wp_get_current_user();
Severity: Critical
Found in firewall/src/util.php by phan

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

use RuntimeException;
Severity: Minor
Found in firewall/src/webfilter.php by phan

Call to undeclared function \BitFire\lock_site_dir()
Open

        \BitFire\lock_site_dir($content_path, false);
Severity: Critical
Found in firewall/src/wordpress.php by phan

Call to undeclared function \current_user_can()
Open

    $u = (current_user_can("upload_files")) ? 2 : 0;
Severity: Critical
Found in wordpress-plugin/bitfire-admin.php by phan

Function bitfire_add_menu defined at /code/wordpress-plugin/bitfire-admin.php:229 was previously defined at /code/custom-plugin/bitfire-plugin.php:252
Open

function bitfire_add_menu() {
Severity: Minor
Found in wordpress-plugin/bitfire-admin.php by phan

Call to undeclared function \plugin_dir_url()
Open

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

Reference to undeclared constant \WP_CONTENT_URL (Did you mean $content_url)
Open

        } else if (defined("WP_CONTENT_URL")) { $content_url = \WP_CONTENT_URL; }
Severity: Minor
Found in firewall/src/server.php by phan

Call to undeclared function \plugin_dir_url()
Open

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

Call to undeclared function \wp_register_style()
Open

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

Saw an @param annotation for final, but it was not found in the param list of function update_freq(string $path) : ?array|array|null;
Open

 * @param bool $final
Severity: Info
Found in firewall/src/server.php by phan

Argument 2 (needle) is false but \strpos() takes int|string
Open

function contains(string $haystack, $needle) : bool { if(is_array($needle)) { foreach ($needle as $n) { if (!empty($n) && strpos($haystack, $n) !== false) { return true; } } return false; } else { return strpos($haystack, $needle) !== false; } }
Severity: Minor
Found in firewall/src/util.php by phan

Reference to undeclared constant \WP_CONTENT_DIR (Did you mean $content_dir)
Open

    if ($content_dir == "" && defined(WP_CONTENT_DIR)) {
Severity: Minor
Found in wordpress-plugin/bitfire-admin.php by phan

Call to undeclared function \esc_html()
Open

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

Saw an @param annotation for url, but it was not found in the param list of function http(string $method, string $path, array $data, ?array $optional_headers = null) : string;
Open

 * @param string $url the url to post to
Severity: Info
Found in firewall/src/util.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/webfilter.php by phan

Call to undeclared function \admin_url()
Open

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

Suspicious type bool of a variable or expression used to build a string. (Expected type to be able to cast to a string)
Open

    trace("file1:".count($files).":".$block->empty());
Severity: Minor
Found in firewall/src/webfilter.php by phan

Call to undeclared function \_wp_specialchars()
Open

            $edit_url = _wp_specialchars(get_admin_url() . "user-edit.php?user_id={$user_id}#bitfire_mfa", ENT_QUOTES);
Severity: Critical
Found in wordpress-plugin/bitfire-admin.php by phan

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

    return $ip() === $remote_ip;
Severity: Info
Found in firewall/src/botfilter.php by phan
Severity
Category
Status
Source
Language