mirror of
https://github.com/PawelSuwinski/moodle-auth_emailotp.git
synced 2026-05-16 21:41:27 +02:00
apply local_codechecker recomendations
This commit is contained in:
@@ -65,9 +65,9 @@ if ($ADMIN->fulltree) {
|
|||||||
get_string('minrequestperiod_help', 'auth_emailotp')
|
get_string('minrequestperiod_help', 'auth_emailotp')
|
||||||
) extends admin_setting_configtext {
|
) extends admin_setting_configtext {
|
||||||
public function __construct($name, $visiblename, $description) {
|
public function __construct($name, $visiblename, $description) {
|
||||||
$log_reader = reset(get_log_manager()->get_readers('\core\log\sql_reader'));
|
$logreader = reset(get_log_manager()->get_readers('\core\log\sql_reader'));
|
||||||
parent::__construct($name, $visiblename, $description, $log_reader ? 120 : 0, PARAM_INT);
|
parent::__construct($name, $visiblename, $description, $logreader ? 120 : 0, PARAM_INT);
|
||||||
if(!$log_reader && !empty($this->get_setting())) {
|
if (!$logreader && !empty($this->get_setting())) {
|
||||||
$this->description .= ' '.get_string('logstorerequired', 'auth_emailotp',
|
$this->description .= ' '.get_string('logstorerequired', 'auth_emailotp',
|
||||||
(string)new moodle_url('/admin/settings.php', ['section' => 'managelogging'])
|
(string)new moodle_url('/admin/settings.php', ['section' => 'managelogging'])
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user