@@ -22,8 +22,8 @@ discard block |
||
22 | 22 | * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
23 | 23 | */ |
24 | 24 | |
25 | -require_once(__DIR__.'/../../config.php'); |
|
26 | -require_once($CFG->dirroot.'/local/relationship/locallib.php'); |
|
25 | +require_once(__DIR__ . '/../../config.php'); |
|
26 | +require_once($CFG->dirroot . '/local/relationship/locallib.php'); |
|
27 | 27 | |
28 | 28 | require_login(); |
29 | 29 | |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | // Therefore, the mass assign only works in cohort without component. |
38 | 38 | // When uniform distribution is enabled, users are uniformly distribute to any group with uniformdistribution = 1 in the relationship, |
39 | 39 | // so uniform distribution needs to be disabled to mass assign users in a specific group. |
40 | -if(!empty($relationshipcohort->component) || $relationshipcohort->uniformdistribution || $relationshipgroup->uniformdistribution) { |
|
40 | +if (!empty($relationshipcohort->component) || $relationshipcohort->uniformdistribution || $relationshipgroup->uniformdistribution) { |
|
41 | 41 | print_error('cantmassassign', 'local_relationship'); |
42 | 42 | } |
43 | 43 |
@@ -21,11 +21,11 @@ |
||
21 | 21 | $settings->add(new admin_setting_heading('local_relationship/settings', get_string('massassign', 'local_relationship'), get_string('massassign_desc', 'local_relationship'))); |
22 | 22 | |
23 | 23 | $optionsauthtype = array(); |
24 | - foreach(get_enabled_auth_plugins(false) as $opt){ |
|
24 | + foreach (get_enabled_auth_plugins(false) as $opt) { |
|
25 | 25 | $optionsauthtype[$opt] = $opt; |
26 | 26 | } |
27 | 27 | $settings->add(new admin_setting_configselect('local_relationship/authtype', get_string('authtype', 'local_relationship'), |
28 | - get_string('authtype_desc', 'local_relationship') ,'manual', $optionsauthtype)); |
|
28 | + get_string('authtype_desc', 'local_relationship'), 'manual', $optionsauthtype)); |
|
29 | 29 | |
30 | 30 | $options = array(0=>get_string('no'), 1=>get_string('yes')); |
31 | 31 | $setting = new admin_setting_configselect('local_relationship/searchsccp', get_string('searchsccp', 'local_relationship'), |