@@ -48,7 +48,7 @@ class provider implements
48
48
* @param collection $collection The initialised collection to add items to.
49
49
* @return collection A listing of user data stored through this system.
50
50
*/
51
- public static function get_metadata (collection $ collection ) : collection {
51
+ public static function get_metadata (collection $ collection ): collection {
52
52
53
53
$ collection ->add_subsystem_link (
54
54
'core_files ' ,
@@ -75,7 +75,7 @@ public static function get_metadata(collection $collection) : collection {
75
75
'response ' => 'privacy:metadata:observation_point_responses:response ' ,
76
76
'ex_comment ' => 'privacy:metadata:observation_point_responses:ex_comment ' ,
77
77
'timecreated ' => 'privacy:metadata:observation_point_responses:timecreated ' ,
78
- 'timemodified ' => 'privacy:metadata:observation_point_responses:timemodified '
78
+ 'timemodified ' => 'privacy:metadata:observation_point_responses:timemodified ' ,
79
79
],
80
80
'privacy:metadata:observation_point_responses '
81
81
);
@@ -113,7 +113,7 @@ public static function get_metadata(collection $collection) : collection {
113
113
* @param int $userid The user to search.
114
114
* @return contextlist $contextlist The contextlist containing the list of contexts used in this plugin.
115
115
*/
116
- public static function get_contexts_for_userid (int $ userid ) : contextlist {
116
+ public static function get_contexts_for_userid (int $ userid ): contextlist {
117
117
$ contextlist = new contextlist ();
118
118
119
119
$ params = [
@@ -208,7 +208,7 @@ public static function export_user_data(approved_contextlist $contextlist) {
208
208
// Get all timeslot records where the user is a part of them.
209
209
$ timeslots = $ DB ->get_records_select ('observation_timeslots ' , 'observer_id = :userid1 OR observee_id = :userid2 ' , [
210
210
'userid1 ' => $ userid ,
211
- 'userid2 ' => $ userid
211
+ 'userid2 ' => $ userid,
212
212
]);
213
213
214
214
$ data ->timeslots = $ timeslots ;
@@ -249,7 +249,7 @@ public static function delete_data_for_user(approved_contextlist $contextlist) {
249
249
// Delete all timeslot records where the user is a part of them.
250
250
$ DB ->delete_records_select ('observation_timeslots ' , 'observer_id = :userid1 OR observee_id = :userid2 ' , [
251
251
'userid1 ' => $ userid ,
252
- 'userid2 ' => $ userid
252
+ 'userid2 ' => $ userid,
253
253
]);
254
254
}
255
255
}
@@ -291,7 +291,7 @@ public static function delete_data_for_users(approved_userlist $userlist) {
291
291
// Delete all timeslot records where the user is a part of them.
292
292
$ DB ->delete_records_select ('observation_timeslots ' , 'observer_id = :userid1 OR observee_id = :userid2 ' , [
293
293
'userid1 ' => $ userid ,
294
- 'userid2 ' => $ userid
294
+ 'userid2 ' => $ userid,
295
295
]);
296
296
}
297
297
}
@@ -301,7 +301,7 @@ public static function delete_data_for_users(approved_userlist $userlist) {
301
301
*
302
302
* @param context $context The specific context to delete data for.
303
303
*/
304
- public static function delete_data_for_all_users_in_context (\context $ context ) {
304
+ public static function delete_data_for_all_users_in_context (\context $ context ) {
305
305
global $ DB ;
306
306
307
307
if ($ context ->contextlevel != CONTEXT_MODULE ) {
0 commit comments