This commit is contained in:
Jun Pataleta 2024-03-08 08:00:41 +08:00
commit 3278ce7aba
No known key found for this signature in database
GPG key ID: F83510526D99E2C7
1147 changed files with 2621 additions and 2617 deletions

View file

@ -62,7 +62,7 @@ class provider implements
* @param collection $collection The initialised collection to add items to.
* @return collection A listing of user data stored through this system.
*/
public static function get_metadata(collection $collection) : collection {
public static function get_metadata(collection $collection): collection {
// The table 'tag' contains data that a user has entered.
// It is currently linked with a userid, but this field will hopefulyl go away.
// Note: The userid is not necessarily 100% accurate. See MDL-61555.
@ -208,7 +208,7 @@ class provider implements
* @param int $userid The user to search.
* @return contextlist $contextlist The contextlist containing the list of contexts used in this plugin.
*/
public static function get_contexts_for_userid(int $userid) : contextlist {
public static function get_contexts_for_userid(int $userid): contextlist {
$contextlist = new contextlist();
$contextlist->add_from_sql("SELECT c.id
FROM {context} c

View file

@ -42,7 +42,7 @@ class tag_edit_form extends moodleform {
* Overrides the abstract moodleform::definition method for defining what the form that is to be
* presented to the user.
*/
function definition () {
function definition() {
$mform =& $this->_form;