e107inc/e107

View on GitHub
e107_admin/cron.php

Summary

Maintainability
A
0 mins
Test Coverage
F
55%

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

            $cronDefaults['_system'] = array(
Severity: Info
Found in e107_admin/cron.php by phan

Call to deprecated function \getperms() defined at /code/class2.php:1322
Open

if (!getperms('U'))
Severity: Minor
Found in e107_admin/cron.php by phan

Argument #1 of this call to \str_replace is typically a literal or constant but isn't, but argument #3 (which is typically a variable) is a literal or constant. The arguments may be in the wrong order.
Open

            $lastRun = ($mins) ? str_replace($srch,$repl,LAN_CRON_9) : str_replace($srch,$repl,LAN_CRON_10); // FIX: check syntax
Severity: Minor
Found in e107_admin/cron.php by phan

Argument 2 (value) is 1 but \e_form::admin_button() takes string defined at /code/e107_handlers/form_handler.php:4016
Open

                $setpwd_message .= "<br /><br />".$frm->admin_button('generate_pwd', 1, 'delete', LAN_CRON_61 ,array('class'=>'btn btn-sm'));
Severity: Minor
Found in e107_admin/cron.php by phan

Returning type array{caption:'Help',text:string} but renderHelp() is declared to return string
Open

            return array('caption'=>LAN_HELP, 'text'=>e107::getParser()->toHTML(LAN_CRON_64, true));
Severity: Minor
Found in e107_admin/cron.php by phan

There are no issues that match your filters.

Category
Status