Completed
Push — update-3.0 ( dee993...ee3a73 )
by Daniel Neis
02:06
created
edit_form.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         $mform->setType('name', PARAM_TEXT);
43 43
 
44 44
         $options = array(ENROL_INSTANCE_ENABLED  => get_string('yes'),
45
-                         ENROL_INSTANCE_DISABLED => get_string('no'));
45
+                            ENROL_INSTANCE_DISABLED => get_string('no'));
46 46
         $mform->addElement('select', 'status', get_string('status', 'enrol_pagseguro'), $options);
47 47
         $mform->setDefault('status', $plugin->get_config('status'));
48 48
 
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         $mform->setDefault('cost', $plugin->get_config('cost'));
52 52
 
53 53
         $mform->addElement('select', 'currency', get_string('currency', 'enrol_pagseguro'),
54
-                           \get_string_manager()->get_list_of_currencies());
54
+                            \get_string_manager()->get_list_of_currencies());
55 55
         $mform->setDefault('currency', $plugin->get_config('currency'));
56 56
         
57 57
         if ($instance->id) {
Please login to merge, or discard this patch.
lib.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      */
78 78
     public function add_course_navigation($instancesnode, stdClass $instance) {
79 79
         if ($instance->enrol !== 'pagseguro') {
80
-             throw new coding_exception('Invalid enrol instance type!');
80
+                throw new coding_exception('Invalid enrol instance type!');
81 81
         }
82 82
 
83 83
         $context = context_course::instance($instance->courseid);
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
 
160 160
         // Pass $view=true to filter hidden caps if the user cannot see them
161 161
         if ($users = get_users_by_capability($context, 'moodle/course:update', 'u.*', 'u.id ASC',
162
-                                             '', '', '', '', false, true)) {
162
+                                                '', '', '', '', false, true)) {
163 163
             $users = sort_by_roleassignment_authority($users, $context);
164 164
             $teacher = array_shift($users);
165 165
         } else {
Please login to merge, or discard this patch.
locallib.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,8 +42,8 @@
 block discarded – undo
42 42
 
43 43
         $pagseguroimgurl = "https://p.simg.uol.com.br/out/pagseguro/i/botoes/pagamentos/99x61-pagar-assina.gif";
44 44
         $mform->addElement('static', 'paymentrequired', '', 
45
-                           html_writer::empty_tag('img', array('alt' => get_string('pagseguroaccepted', 'enrol_pagseguro'),
46
-                                                               'src' => $pagseguroimgurl)));
45
+                            html_writer::empty_tag('img', array('alt' => get_string('pagseguroaccepted', 'enrol_pagseguro'),
46
+                                                                'src' => $pagseguroimgurl)));
47 47
 
48 48
         $mform->addElement('hidden', 'courseid', $instance->courseid);
49 49
         $mform->setType('courseid', PARAM_INT);
Please login to merge, or discard this patch.
settings.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
         get_string('enrolinstancedefaults', 'admin'), get_string('enrolinstancedefaults_desc', 'admin')));
48 48
 
49 49
     $options = array(ENROL_INSTANCE_ENABLED  => get_string('yes'),
50
-                     ENROL_INSTANCE_DISABLED => get_string('no'));
50
+                        ENROL_INSTANCE_DISABLED => get_string('no'));
51 51
     $settings->add(new admin_setting_configselect('enrol_pagseguro/status',
52 52
         get_string('status', 'enrol_pagseguro'), get_string('status_desc', 'enrol_pagseguro'), ENROL_INSTANCE_DISABLED, $options));
53 53
 
Please login to merge, or discard this patch.