Completed
Push — master ( 603667...7ce3ae )
by Daniel Neis
01:34
created
version.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,8 +24,8 @@
 block discarded – undo
24 24
 
25 25
 defined('MOODLE_INTERNAL') || die();
26 26
 
27
-$plugin->version   = 2015042701;        // The current plugin version (Date: YYYYMMDDXX)
28
-$plugin->requires  = 2014110400;        // Requires this Moodle version
27
+$plugin->version   = 2015042701; // The current plugin version (Date: YYYYMMDDXX)
28
+$plugin->requires  = 2014110400; // Requires this Moodle version
29 29
 $plugin->release = 2;
30 30
 $plugin->maturity = MATURITY_STABLE;
31 31
 $plugin->component = 'block_featuredcourses'; // Full name of the plugin (used for diagnostics)
Please login to merge, or discard this patch.
block_featuredcourses.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
         }
57 57
         if ($this->page->course->id == SITEID) {
58 58
             $courses = self::get_featured_courses();
59
-            require_once($CFG->libdir. '/coursecatlib.php');
59
+            require_once($CFG->libdir.'/coursecatlib.php');
60 60
             $chelper = new coursecat_helper();
61 61
             foreach ($courses as $course) {
62 62
 
@@ -83,8 +83,8 @@  discard block
 block discarded – undo
83 83
                 foreach ($course->get_course_overviewfiles() as $file) {
84 84
                     $isimage = $file->is_valid_image();
85 85
                     $url = file_encode_url("{$CFG->wwwroot}/pluginfile.php",
86
-                            '/'. $file->get_contextid(). '/'. $file->get_component(). '/'.
87
-                            $file->get_filearea(). $file->get_filepath(). $file->get_filename(), !$isimage);
86
+                            '/'.$file->get_contextid().'/'.$file->get_component().'/'.
87
+                            $file->get_filearea().$file->get_filepath().$file->get_filename(), !$isimage);
88 88
                     if ($isimage) {
89 89
                         $contentimages .= html_writer::tag('div',
90 90
                                 html_writer::empty_tag('img', array('src' => $url, 'style' => 'max-height: 150px')),
@@ -98,9 +98,9 @@  discard block
 block discarded – undo
98 98
                                 array('class' => 'coursefile fp-filename-icon'));
99 99
                     }
100 100
                 }
101
-                $content .= $contentimages. $contentfiles;
101
+                $content .= $contentimages.$contentfiles;
102 102
 
103
-                $this->content->text .= $content. '</div>';
103
+                $this->content->text .= $content.'</div>';
104 104
             }
105 105
         }
106 106
 
Please login to merge, or discard this patch.
featuredcourses.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
 $site = get_site();
72 72
 
73 73
 $PAGE->set_title(get_string('editpagetitle', 'block_featuredcourses'));
74
-$PAGE->set_heading($site->fullname . ' - ' .  get_string('pluginname', 'block_featuredcourses'));
74
+$PAGE->set_heading($site->fullname.' - '.get_string('pluginname', 'block_featuredcourses'));
75 75
 
76 76
 echo $OUTPUT->header(),
77 77
 
Please login to merge, or discard this patch.
featuredcourses_form.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,17 +38,17 @@
 block discarded – undo
38 38
         global $CFG;
39 39
 
40 40
         $mform = $this->_form;
41
-        $availablecourses  = $this->_customdata['availablecourses'];
42
-        $featuredcourses  = $this->_customdata['featuredcourses'];
41
+        $availablecourses = $this->_customdata['availablecourses'];
42
+        $featuredcourses = $this->_customdata['featuredcourses'];
43 43
         $availablecourseslist = array();
44 44
         foreach ($availablecourses as $c) {
45
-            $availablecourseslist[$c->id] = $c->shortname . ' : ' . $c->fullname;
45
+            $availablecourseslist[$c->id] = $c->shortname.' : '.$c->fullname;
46 46
         }
47 47
 
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);
Please login to merge, or discard this patch.
delete_featuredcourse_form.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
 class block_featuredcourses_delete_featuredcourse_form extends moodleform {
30 30
 
31 31
     public function definition() {
32
-        $mform =& $this->_form;
32
+        $mform = & $this->_form;
33 33
 
34 34
         $mform->addElement('hidden', 'id');
35 35
         $mform->setType('id', PARAM_INT);
Please login to merge, or discard this patch.