Completed
Push — master ( 603667...7ce3ae )
by Daniel Neis
01:34
created
block_featuredcourses.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@
 block discarded – undo
112 112
     }
113 113
 
114 114
     public function instance_allow_multiple() {
115
-          return false;
115
+            return false;
116 116
     }
117 117
 
118 118
     public function has_config() {
Please login to merge, or discard this patch.
delete_featuredcourse.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -59,10 +59,10 @@
 block discarded – undo
59 59
 
60 60
 echo $OUTPUT->header(),
61 61
 
62
-     $OUTPUT->box_start('generalbox errorboxcontent boxaligncenter boxwidthnormal'),
63
-     html_writer::tag('p', get_string('confirmdelete', 'block_featuredcourses'), array('class' => 'bold'));
62
+        $OUTPUT->box_start('generalbox errorboxcontent boxaligncenter boxwidthnormal'),
63
+        html_writer::tag('p', get_string('confirmdelete', 'block_featuredcourses'), array('class' => 'bold'));
64 64
 
65 65
 $mform->display();
66 66
 
67 67
 echo $OUTPUT->box_end(),
68
-     $OUTPUT->footer();
68
+        $OUTPUT->footer();
Please login to merge, or discard this patch.
edit_form.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
 
32 32
         $mform->addElement('header', 'configheader', get_string('blocksettings', 'block'));
33 33
         $mform->addElement('static', 'link',
34
-                           get_string('editlink', 'block_featuredcourses',
35
-                                      $CFG->wwwroot.'/blocks/featuredcourses/featuredcourses.php'));
34
+                            get_string('editlink', 'block_featuredcourses',
35
+                                        $CFG->wwwroot.'/blocks/featuredcourses/featuredcourses.php'));
36 36
     }
37 37
 }
Please login to merge, or discard this patch.
featuredcourses.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -75,8 +75,8 @@
 block discarded – undo
75 75
 
76 76
 echo $OUTPUT->header(),
77 77
 
78
-     $OUTPUT->heading(get_string('editpagedesc', 'block_featuredcourses')),
78
+        $OUTPUT->heading(get_string('editpagedesc', 'block_featuredcourses')),
79 79
 
80
-     $editform->render(),
80
+        $editform->render(),
81 81
 
82
-     $OUTPUT->footer();
82
+        $OUTPUT->footer();
Please login to merge, or discard this patch.
featuredcourses_form.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
         // Forms to edit existing featured courses.
49 49
         foreach ($featuredcourses as $c) {
50 50
             $mform->addElement('header', 'featured',
51
-                               get_string('featuredcourse', 'block_featuredcourses', $c->shortname . ' - '. $c->fullname));
51
+                                get_string('featuredcourse', 'block_featuredcourses', $c->shortname . ' - '. $c->fullname));
52 52
 
53 53
             $mform->addElement('hidden', 'featured['.$c->id.'][id]', null);
54 54
             $mform->setType('featured['.$c->id.'][id]', PARAM_INT);
@@ -61,8 +61,8 @@  discard block
 block discarded – undo
61 61
             $mform->setDefault('featured['.$c->id.'][sortorder]', $c->sortorder);
62 62
 
63 63
             $mform->addElement('static', 'link',
64
-                               get_string('deletelink', 'block_featuredcourses',
65
-                                          $CFG->wwwroot.'/blocks/featuredcourses/delete_featuredcourse.php?courseid='.$c->id));
64
+                                get_string('deletelink', 'block_featuredcourses',
65
+                                            $CFG->wwwroot.'/blocks/featuredcourses/delete_featuredcourse.php?courseid='.$c->id));
66 66
 
67 67
         }
68 68
 
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
         $mform->addElement('checkbox', 'doadd', get_string('doadd', 'block_featuredcourses'));
73 73
 
74 74
         $mform->addElement('select', 'newfeatured[courseid]',
75
-                           get_string('courseid', 'block_featuredcourses'), $availablecourseslist);
75
+                            get_string('courseid', 'block_featuredcourses'), $availablecourseslist);
76 76
         $mform->addRule('newfeatured[courseid]', get_string('missingcourseid', 'block_featuredcourses'),
77 77
                         'required', null, 'client');
78 78
         $mform->disabledIf('newfeatured[courseid]', 'doadd', 'notchecked');
Please login to merge, or discard this patch.