Completed
Push — master ( 132276...a815c6 )
by Jesus
02:12
created
index.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -24,8 +24,8 @@  discard block
 block discarded – undo
24 24
  * @author    Fred Dixon  (ffdixon [at] blindsidenetworks [dt] com)
25 25
  */
26 26
 
27
-require_once(dirname(dirname(dirname(__FILE__))).'/config.php');
28
-require_once(dirname(__FILE__).'/locallib.php');
27
+require_once(dirname(dirname(dirname(__FILE__))) . '/config.php');
28
+require_once(dirname(__FILE__) . '/locallib.php');
29 29
 
30 30
 $id = required_param('id', PARAM_INT);
31 31
 $a = optional_param('a', 0, PARAM_INT);
@@ -88,12 +88,12 @@  discard block
 block discarded – undo
88 88
     if ($moderator || $administrator) {
89 89
         bigbluebuttonbn_event_log(BIGBLUEBUTTON_EVENT_MEETING_ENDED, $bigbluebuttonbn, $cm);
90 90
         echo get_string('index_ending', 'bigbluebuttonbn');
91
-        $meetingid = $bigbluebuttonbn->meetingid.'-'.$course->id.'-'.$bigbluebuttonbn->id;
91
+        $meetingid = $bigbluebuttonbn->meetingid . '-' . $course->id . '-' . $bigbluebuttonbn->id;
92 92
         if ($g != '0') {
93
-            $meetingid .= '['.$g.']';
93
+            $meetingid .= '[' . $g . ']';
94 94
         }
95 95
         bigbluebuttonbn_wrap_xml_load_file(bigbluebuttonbn_getEndMeetingURL($meetingid));
96
-        redirect('index.php?id='.$id);
96
+        redirect('index.php?id=' . $id);
97 97
     }
98 98
 }
99 99
 
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
         // Add a the data for the bigbluebuttonbn instance.
108 108
         $groupobj = null;
109 109
         if (groups_get_activity_groupmode($cm) > 0) {
110
-            $groupobj = (object) array('id' => 0, 'name' => get_string('allparticipants'));
110
+            $groupobj = (object)array('id' => 0, 'name' => get_string('allparticipants'));
111 111
         }
112 112
         $table->data[] = bigbluebuttonbn_index_display_room($canmoderate, $course, $bigbluebuttonbn, $groupobj);
113 113
         // Add a the data for the groups belonging to the bigbluebuttonbn instance, if any.
@@ -133,12 +133,12 @@  discard block
 block discarded – undo
133 133
  * @return array
134 134
  */
135 135
 function bigbluebuttonbn_index_display_room($moderator, $course, $bigbluebuttonbn, $groupobj = null) {
136
-    $meetingid = $bigbluebuttonbn->meetingid.'-'.$course->id.'-'.$bigbluebuttonbn->id;
136
+    $meetingid = $bigbluebuttonbn->meetingid . '-' . $course->id . '-' . $bigbluebuttonbn->id;
137 137
     $paramgroup = '';
138 138
     $groupname = '';
139 139
     if ($groupobj) {
140
-        $meetingid .= '['.$groupobj->id.']';
141
-        $paramgroup = '&group='.$groupobj->id;
140
+        $meetingid .= '[' . $groupobj->id . ']';
141
+        $paramgroup = '&group=' . $groupobj->id;
142 142
         $groupname = $groupobj->name;
143 143
     }
144 144
     $meetinginfo = bigbluebuttonbn_get_meeting_info_array($meetingid);
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
         return;
154 154
     }
155 155
     // Output Users in the meeting.
156
-    $joinurl = '<a href="view.php?id='.$bigbluebuttonbn->coursemodule.$paramgroup.'">'.format_string($bigbluebuttonbn->name).'</a>';
156
+    $joinurl = '<a href="view.php?id=' . $bigbluebuttonbn->coursemodule . $paramgroup . '">' . format_string($bigbluebuttonbn->name) . '</a>';
157 157
     $group = $groupname;
158 158
     $users = '';
159 159
     $viewerlist = '';
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
         $attendeecount = 0;
199 199
         foreach ($meetinginfo['attendees']->attendee as $attendee) {
200 200
             if ($attendee->role == $role) {
201
-                $attendeelist .= ($attendeecount++ > 0 ? ', ' : '').$attendee->fullName;
201
+                $attendeelist .= ($attendeecount++ > 0 ? ', ' : '') . $attendee->fullName;
202 202
             }
203 203
         }
204 204
     }
@@ -232,15 +232,15 @@  discard block
 block discarded – undo
232 232
 function bigbluebuttonbn_index_display_room_actions($moderator, $course, $bigbluebuttonbn, $groupobj = null) {
233 233
     $actions = '';
234 234
     if ($moderator) {
235
-        $actions .= '<form name="form1" method="post" action="">'.'/n';
236
-        $actions .= '  <INPUT type="hidden" name="id" value="'.$course->id.'">'.'/n';
237
-        $actions .= '  <INPUT type="hidden" name="a" value="'.$bigbluebuttonbn->id.'">'.'/n';
235
+        $actions .= '<form name="form1" method="post" action="">' . '/n';
236
+        $actions .= '  <INPUT type="hidden" name="id" value="' . $course->id . '">' . '/n';
237
+        $actions .= '  <INPUT type="hidden" name="a" value="' . $bigbluebuttonbn->id . '">' . '/n';
238 238
         if ($groupobj != null) {
239
-            $actions .= '  <INPUT type="hidden" name="g" value="'.$groupobj->id.'">'.'/n';
239
+            $actions .= '  <INPUT type="hidden" name="g" value="' . $groupobj->id . '">' . '/n';
240 240
         }
241
-        $actions .= '  <INPUT type="submit" name="submit" value="end" onclick="return confirm(\''.
242
-            get_string('index_confirm_end', 'bigbluebuttonbn').'\')">'.'/n';
243
-        $actions .= '</form>'.'/n';
241
+        $actions .= '  <INPUT type="submit" name="submit" value="end" onclick="return confirm(\'' .
242
+            get_string('index_confirm_end', 'bigbluebuttonbn') . '\')">' . '/n';
243
+        $actions .= '</form>' . '/n';
244 244
     }
245 245
     return $actions;
246 246
 }
Please login to merge, or discard this patch.
classes/settings/renderer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 defined('MOODLE_INTERNAL') || die();
29 29
 
30 30
 require_once($CFG->dirroot . '/mod/bigbluebuttonbn/locallib.php');
31
-require_once($CFG->libdir.'/adminlib.php');
31
+require_once($CFG->libdir . '/adminlib.php');
32 32
 
33 33
 /**
34 34
  * Helper class for rendering HTML for settings.php.
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
             $itemname = get_string('config_' . $name, 'bigbluebuttonbn');
67 67
         }
68 68
         if ($itemdescription === null) {
69
-            $itemdescription = get_string('config_' .$name . '_description', 'bigbluebuttonbn');
69
+            $itemdescription = get_string('config_' . $name . '_description', 'bigbluebuttonbn');
70 70
         }
71 71
         $item = new \admin_setting_heading('bigbluebuttonbn_config_' . $name, $itemname, $itemdescription);
72 72
         $this->settings->add($item);
Please login to merge, or discard this patch.