|
36 | 36 | class provider implements |
37 | 37 | // This component has data. |
38 | 38 | // We need to return default options that have been set a user preferences. |
39 | | - \core_privacy\local\metadata\provider, |
40 | | - \core_privacy\local\request\user_preference_provider { |
41 | | - |
| 39 | + \core_privacy\local\metadata\provider, |
| 40 | + \core_privacy\local\request\user_preference_provider { |
42 | 41 | /** |
43 | 42 | * Returns meta data about this system. |
44 | 43 | * |
@@ -67,7 +66,7 @@ public static function export_user_preferences(int $userid) { |
67 | 66 |
|
68 | 67 | $preference = get_user_preferences('qtype_aitext_responseformat', null, $userid); |
69 | 68 | if (null !== $preference) { |
70 | | - switch($preference) { |
| 69 | + switch ($preference) { |
71 | 70 | case 'editor': |
72 | 71 | $stringvalue = get_string('formateditor', 'qtype_aitext'); |
73 | 72 | break; |
@@ -105,8 +104,12 @@ public static function export_user_preferences(int $userid) { |
105 | 104 | $preference = get_user_preferences('qtype_aitext_responsefieldlines', null, $userid); |
106 | 105 | if (null !== $preference) { |
107 | 106 | $desc = get_string('privacy:preference:responsefieldlines', 'qtype_aitext'); |
108 | | - writer::export_user_preference('qtype_aitext', 'responsefieldlines', |
109 | | - get_string('nlines', 'qtype_aitext', $preference), $desc); |
| 107 | + writer::export_user_preference( |
| 108 | + 'qtype_aitext', |
| 109 | + 'responsefieldlines', |
| 110 | + get_string('nlines', 'qtype_aitext', $preference), |
| 111 | + $desc |
| 112 | + ); |
110 | 113 | } |
111 | 114 | $preference = get_user_preferences('qtype_aitext_attachments', null, $userid); |
112 | 115 | if (null !== $preference) { |
|
0 commit comments