Skip to content

Commit 5b0b860

Browse files
Added space after comma, fixed indentation, and added trailing space
1 parent 5dde3a2 commit 5b0b860

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

classes/privacy/provider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ class provider implements \core_privacy\local\metadata\null_provider {
4343
public static function get_reason() : string {
4444
return 'privacy:metadata';
4545
}
46-
}
46+
}

lang/en/block_profile_redirect.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
2424
*/
2525

26-
$string['pluginname'] = 'Profile Redirect';
26+
$string['pluginname'] = 'Profile Redirect';
2727
$string['blockname'] = 'Profile Redirect';
28-
$string['description'] ='Description';
28+
$string['description'] = 'Description';
2929
$string['descriptiontxt'] = '<p>The Profile Redirect block is designed to redirect a user from the site front page or My Moodle page containing the block to
3030
a new course. The new course the user is redirected to is based on a value in a profile field matching a value in the course fullname, shortname, or id number based on the site configurations below.</p>
3131

lib.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525

2626
/**
2727
* Return user fields and custom fields
28-
*
29-
* @return array of userfields without the id fields
28+
*
29+
* @return array of userfields without the id fields
3030
*/
3131
function block_profile_redirect_profile_fields() {
3232
global $CFG, $DB;
@@ -37,7 +37,7 @@ function block_profile_redirect_profile_fields() {
3737
require_once($CFG->dirroot.'/user/profile/lib.php');
3838

3939
// Only grab the custom profile fields that can contain a course's full name.
40-
if ($fields = $DB->get_records_select('user_info_field','')) {
40+
if ($fields = $DB->get_records_select('user_info_field', '')) {
4141
foreach ($fields as $field) {
4242
require_once($CFG->dirroot.'/user/profile/field/'.$field->datatype.'/field.class.php');
4343
$newfield = 'profile_field_'.$field->datatype;

0 commit comments

Comments
 (0)