Completed
Push — master ( ed1a6e...cf1423 )
by Daniel Neis
02:07
created
block_featuredcourses.php 2 patches
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.
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.