Passed
Push — 25073_inscricao_massa ( 31b970...84c564 )
by
unknown
06:23
created
mass_assign.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,8 +22,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
settings.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,11 +21,11 @@
 block discarded – undo
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'),
Please login to merge, or discard this patch.