mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 18:36:42 +02:00
Merge branch 'MDL-65292' of https://github.com/stronk7/moodle
This commit is contained in:
commit
3278ce7aba
1147 changed files with 2621 additions and 2617 deletions
|
@ -61,7 +61,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 {
|
||||
$collection->add_database_table('groups_members', [
|
||||
'groupid' => 'privacy:metadata:groups:groupid',
|
||||
'userid' => 'privacy:metadata:groups:userid',
|
||||
|
@ -338,7 +338,7 @@ class provider implements
|
|||
* @param int $userid The user to search.
|
||||
* @return 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 {
|
||||
return static::get_contexts_for_group_member($userid, '');
|
||||
}
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ class group_form extends moodleform {
|
|||
/**
|
||||
* Definition of the form
|
||||
*/
|
||||
function definition () {
|
||||
function definition() {
|
||||
global $USER, $CFG, $COURSE;
|
||||
$coursecontext = context_course::instance($COURSE->id);
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ class grouping_form extends moodleform {
|
|||
/**
|
||||
* Form definition
|
||||
*/
|
||||
function definition () {
|
||||
function definition() {
|
||||
global $USER, $CFG, $COURSE;
|
||||
$coursecontext = context_course::instance($COURSE->id);
|
||||
|
||||
|
|
|
@ -529,7 +529,7 @@ class lib_test extends \advanced_testcase {
|
|||
$this->assertSame('Updated input for grouping1', $customfield['value']);
|
||||
}
|
||||
|
||||
public function test_groups_create_autogroups () {
|
||||
public function test_groups_create_autogroups() {
|
||||
global $DB;
|
||||
$this->resetAfterTest();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue