phpdoc corrections

This commit is contained in:
Paweł Suwiński
2020-11-19 09:07:59 +01:00
parent 1ef35c31bd
commit 7b6e11a288

View File

@@ -37,34 +37,22 @@ class otp_generated extends \core\event\base {
protected const CRUD = 'c'; protected const CRUD = 'c';
/**
* {@inheritdoc}
*/
protected function init() { protected function init() {
$this->data['crud'] = static::CRUD; $this->data['crud'] = static::CRUD;
$this->data['edulevel'] = self::LEVEL_OTHER; $this->data['edulevel'] = self::LEVEL_OTHER;
$this->context = \context_system::instance(); $this->context = \context_system::instance();
} }
/**
* {@inheritdoc}
*/
public static function get_name() { public static function get_name() {
return get_string('eventotp'.substr(static::class, strrpos(static::class, '_') + 1), return get_string('eventotp'.substr(static::class, strrpos(static::class, '_') + 1),
'auth_emailotp'); 'auth_emailotp');
} }
/**
* {@inheritdoc}
*/
public function get_description() { public function get_description() {
return sprintf('Password %s for \'%s\'', $this->action, return sprintf('Password %s for \'%s\'', $this->action,
$this->other['email']); $this->other['email']);
} }
/**
* {@inheritdoc}
*/
protected function get_legacy_logdata() { protected function get_legacy_logdata() {
return array(SITEID, 'auth_emailotp', $this->action, '', return array(SITEID, 'auth_emailotp', $this->action, '',
$this->other['email']); $this->other['email']);