Fix codechecker errors
This commit is contained in:
parent
502564a88c
commit
f77ac17111
11 changed files with 5 additions and 23 deletions
|
@ -24,8 +24,6 @@
|
|||
|
||||
namespace auth_userkey;
|
||||
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
class core_userkey_manager implements userkey_manager_interface {
|
||||
|
||||
/**
|
||||
|
|
|
@ -25,8 +25,6 @@
|
|||
|
||||
namespace auth_userkey\privacy;
|
||||
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
use core_privacy\local\metadata\null_provider;
|
||||
use core_privacy\local\legacy_polyfill;
|
||||
|
||||
|
|
|
@ -24,8 +24,6 @@
|
|||
|
||||
namespace auth_userkey;
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
/**
|
||||
* Interface userkey_manager_interface describes key manager behaviour.
|
||||
*
|
||||
|
|
|
@ -22,8 +22,6 @@
|
|||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
function xmldb_auth_userkey_upgrade($oldversion) {
|
||||
global $DB;
|
||||
|
||||
|
|
|
@ -22,8 +22,6 @@
|
|||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
/**
|
||||
* Tests for auth_plugin_userkey class.
|
||||
*
|
||||
|
|
|
@ -22,8 +22,6 @@
|
|||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
use auth_userkey\core_userkey_manager;
|
||||
|
||||
/**
|
||||
|
|
|
@ -22,9 +22,6 @@
|
|||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
|
||||
class auth_userkey_externallib_testcase extends advanced_testcase {
|
||||
/**
|
||||
* User object.
|
||||
|
|
|
@ -24,9 +24,6 @@
|
|||
|
||||
namespace auth_userkey;
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
|
||||
class fake_userkey_manager implements userkey_manager_interface {
|
||||
|
||||
public function create_key($userid, $allowedips = null) {
|
||||
|
|
Loading…
Reference in a new issue