Showing 749 of 749 total issues
Required argument follows optional Open
Open
function file_index(string $dirname, string $include_regex_filter = NULL, callable $write_fn, bool $root = true) {
- Exclude checks
Call to undeclared function \wp_get_current_user()
(Did you mean \get_current_user()) Open
Open
$user = \wp_get_current_user();
- Exclude checks
Possibly zero references to use statement for classlike/namespace RuntimeException
(\RuntimeException)
Open
Open
use RuntimeException;
- Exclude checks
Call to undeclared function \BitFire\lock_site_dir()
Open
Open
\BitFire\lock_site_dir($content_path, false);
- Exclude checks
Call to undeclared function \current_user_can()
Open
Open
$u = (current_user_can("upload_files")) ? 2 : 0;
- Exclude checks
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
Open
function bitfire_add_menu() {
- Exclude checks
Call to undeclared function \plugin_dir_url()
Open
Open
\wp_register_script("dashkit-theme", plugin_dir_url(__FILE__) . "public/theme.bundle.js", ["jquery"], "1.0", true);
- Exclude checks
Reference to undeclared constant \WP_CONTENT_URL
(Did you mean $content_url) Open
Open
} else if (defined("WP_CONTENT_URL")) { $content_url = \WP_CONTENT_URL; }
- Exclude checks
Call to undeclared function \plugin_dir_url()
Open
Open
\wp_register_script("dashkit-pako", plugin_dir_url(__FILE__) . "public/pako.js", [], "1.0", true);
- Exclude checks
Call to undeclared function \wp_register_style()
Open
Open
\wp_register_style("dashkit-bundle", plugin_dir_url(__FILE__) . "public/theme.bundle.css", [], "1.0");
- Exclude checks
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
Open
* @param bool $final
- Exclude checks
Argument 2 (needle)
is false
but \strpos()
takes int|string
Open
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; } }
- Exclude checks
Reference to undeclared constant \WP_CONTENT_DIR
(Did you mean $content_dir) Open
Open
if ($content_dir == "" && defined(WP_CONTENT_DIR)) {
- Exclude checks
Call to undeclared function \esc_html()
Open
Open
$difficulty = esc_html($plugin["difficulty"]??"unknown");
- Exclude checks
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
Open
* @param string $url the url to post to
- Exclude checks
Possibly zero references to use statement for function dbg
(\ThreadFin\dbg)
Open
Open
use function ThreadFin\dbg;
- Exclude checks
Call to undeclared function \admin_url()
Open
Open
$url = admin_url("admin.php?page=bitfire_settings#bot_handling");
- Exclude checks
Suspicious type bool
of a variable or expression used to build a string. (Expected type to be able to cast to a string) Open
Open
trace("file1:".count($files).":".$block->empty());
- Exclude checks
Call to undeclared function \_wp_specialchars()
Open
Open
$edit_url = _wp_specialchars(get_admin_url() . "user-edit.php?user_id={$user_id}#bitfire_mfa", ENT_QUOTES);
- Exclude checks
Possible attempt to access missing magic method __invoke
of '\ThreadFin\MaybeI'
Open
Open
return $ip() === $remote_ip;
- Exclude checks