If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
30
public function disabled_upload_zip_files($action, /** @scrutinizer ignore-unused */ $result)
This check looks for parameters that have been defined for a function or method, but which
are not used in the method body.
Loading history...
31
{
32
if (!\in_array($action, ['theme-upload', 'plugin-upload'])) {
33
return;
34
}
35
36
wp_die($action === 'theme-upload' ? __('Sorry, you are not allowed to install plugins on this site.') : __('Sorry, you are not allowed to install themes on this site.'));
The function __ was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
36
wp_die($action === 'theme-upload' ? /** @scrutinizer ignore-call */ __('Sorry, you are not allowed to install plugins on this site.') : __('Sorry, you are not allowed to install themes on this site.'));
The function wp_die was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
36
/** @scrutinizer ignore-call */
37
wp_die($action === 'theme-upload' ? __('Sorry, you are not allowed to install plugins on this site.') : __('Sorry, you are not allowed to install themes on this site.'));