Completed
Push — master ( d8c9ad...1b8539 )
by Jesus
03:11
created
index.php 1 patch
Spacing   +16 added lines, -16 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);
@@ -89,13 +89,13 @@  discard block
 block discarded – undo
89 89
     if ($moderator || $administrator) {
90 90
         bigbluebuttonbn_event_log(\mod_bigbluebuttonbn\event\events::$events['meeting_end'], $bigbluebuttonbn);
91 91
         echo get_string('index_ending', 'bigbluebuttonbn');
92
-        $meetingid = $bigbluebuttonbn->meetingid.'-'.$course->id.'-'.$bigbluebuttonbn->id;
92
+        $meetingid = $bigbluebuttonbn->meetingid . '-' . $course->id . '-' . $bigbluebuttonbn->id;
93 93
         if ($g != '0') {
94
-            $meetingid .= '['.$g.']';
94
+            $meetingid .= '[' . $g . ']';
95 95
         }
96 96
 
97 97
         bigbluebuttonbn_end_meeting($meetingid, $bigbluebuttonbn->moderatorpass);
98
-        redirect('index.php?id='.$id);
98
+        redirect('index.php?id=' . $id);
99 99
     }
100 100
 }
101 101
 
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
         // Add a the data for the bigbluebuttonbn instance.
111 111
         $groupobj = null;
112 112
         if (groups_get_activity_groupmode($cm) > 0) {
113
-            $groupobj = (object) array('id' => 0, 'name' => get_string('allparticipants'));
113
+            $groupobj = (object)array('id' => 0, 'name' => get_string('allparticipants'));
114 114
         }
115 115
         $table->data[] = bigbluebuttonbn_index_display_room($canmoderate, $course, $bigbluebuttonbn, $groupobj);
116 116
         // Add a the data for the groups belonging to the bigbluebuttonbn instance, if any.
@@ -136,12 +136,12 @@  discard block
 block discarded – undo
136 136
  * @return array
137 137
  */
138 138
 function bigbluebuttonbn_index_display_room($moderator, $course, $bigbluebuttonbn, $groupobj = null) {
139
-    $meetingid = $bigbluebuttonbn->meetingid.'-'.$course->id.'-'.$bigbluebuttonbn->id;
139
+    $meetingid = $bigbluebuttonbn->meetingid . '-' . $course->id . '-' . $bigbluebuttonbn->id;
140 140
     $paramgroup = '';
141 141
     $groupname = '';
142 142
     if ($groupobj) {
143
-        $meetingid .= '['.$groupobj->id.']';
144
-        $paramgroup = '&group='.$groupobj->id;
143
+        $meetingid .= '[' . $groupobj->id . ']';
144
+        $paramgroup = '&group=' . $groupobj->id;
145 145
         $groupname = $groupobj->name;
146 146
     }
147 147
     $meetinginfo = bigbluebuttonbn_get_meeting_info_array($meetingid);
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
         return;
157 157
     }
158 158
     // Output Users in the meeting.
159
-    $joinurl = '<a href="view.php?id='.$bigbluebuttonbn->coursemodule.$paramgroup.'">'.format_string($bigbluebuttonbn->name).'</a>';
159
+    $joinurl = '<a href="view.php?id=' . $bigbluebuttonbn->coursemodule . $paramgroup . '">' . format_string($bigbluebuttonbn->name) . '</a>';
160 160
     $group = $groupname;
161 161
     $users = '';
162 162
     $viewerlist = '';
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
         $attendeecount = 0;
202 202
         foreach ($meetinginfo['attendees']->attendee as $attendee) {
203 203
             if ($attendee->role == $role) {
204
-                $attendeelist .= ($attendeecount++ > 0 ? ', ' : '').$attendee->fullName;
204
+                $attendeelist .= ($attendeecount++ > 0 ? ', ' : '') . $attendee->fullName;
205 205
             }
206 206
         }
207 207
     }
@@ -235,17 +235,17 @@  discard block
 block discarded – undo
235 235
 function bigbluebuttonbn_index_display_room_actions($moderator, $course, $bigbluebuttonbn, $groupobj = null) {
236 236
     $actions = '';
237 237
     if ($moderator) {
238
-        $actions .= '<form name="form1" method="post" action="">'."\n";
239
-        $actions .= '  <INPUT type="hidden" name="id" value="'.$course->id.'">'."\n";
240
-        $actions .= '  <INPUT type="hidden" name="a" value="'.$bigbluebuttonbn->id.'">'."\n";
238
+        $actions .= '<form name="form1" method="post" action="">' . "\n";
239
+        $actions .= '  <INPUT type="hidden" name="id" value="' . $course->id . '">' . "\n";
240
+        $actions .= '  <INPUT type="hidden" name="a" value="' . $bigbluebuttonbn->id . '">' . "\n";
241 241
         if ($groupobj != null) {
242
-            $actions .= '  <INPUT type="hidden" name="g" value="'.$groupobj->id.'">'."\n";
242
+            $actions .= '  <INPUT type="hidden" name="g" value="' . $groupobj->id . '">' . "\n";
243 243
         }
244 244
         $actions .= '  <INPUT type="submit" name="submit" value="' .
245 245
             get_string('view_conference_action_end', 'bigbluebuttonbn') .
246 246
             '" class="btn btn-primary btn-sm" onclick="return confirm(\'' .
247 247
             get_string('index_confirm_end', 'bigbluebuttonbn') . '\')">' . "\n";
248
-        $actions .= '</form>'."\n";
248
+        $actions .= '</form>' . "\n";
249 249
     }
250 250
     return $actions;
251 251
 }
Please login to merge, or discard this patch.
classes/event/meeting_joined.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,8 +41,8 @@
 block discarded – undo
41 41
      */
42 42
     protected function init() {
43 43
         parent::init('r', self::LEVEL_PARTICIPATING);
44
-        $this->description = "The user with id '##userid' has joined a bigbluebutton meeting for ".
45
-            "the bigbluebuttonbn activity with id '##objectid' for the course id ".
44
+        $this->description = "The user with id '##userid' has joined a bigbluebutton meeting for " .
45
+            "the bigbluebuttonbn activity with id '##objectid' for the course id " .
46 46
             "'##courseid'.";
47 47
     }
48 48
 
Please login to merge, or discard this patch.
classes/event/meeting_ended.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,8 +41,8 @@
 block discarded – undo
41 41
      */
42 42
     protected function init() {
43 43
         parent::init('r', self::LEVEL_OTHER);
44
-        $this->description = "A bigbluebutton meeting for the bigbluebuttonbn activity with id ".
45
-            "'##objectid' for the course id '##courseid' has been forcibly ".
44
+        $this->description = "A bigbluebutton meeting for the bigbluebuttonbn activity with id " .
45
+            "'##objectid' for the course id '##courseid' has been forcibly " .
46 46
             "ended by the user with id '##userid'.";
47 47
     }
48 48
 
Please login to merge, or discard this patch.
classes/event/meeting_created.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
      */
42 42
     protected function init() {
43 43
         parent::init('r', self::LEVEL_OTHER);
44
-        $this->description = "The user with id '##userid' created a bigbluebutton meeting for ".
44
+        $this->description = "The user with id '##userid' created a bigbluebutton meeting for " .
45 45
             "the bigbluebuttonbn activity with id '##objectid' for the course id '##courseid'.";
46 46
     }
47 47
 
Please login to merge, or discard this patch.
classes/event/recording_unpublished.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
      */
42 42
     protected function init() {
43 43
         parent::init('r', self::LEVEL_OTHER);
44
-        $this->description = "The user with id '##userid' has unpublished a recording with id ".
44
+        $this->description = "The user with id '##userid' has unpublished a recording with id " .
45 45
             "'##other' in the course id '##courseid'.";
46 46
     }
47 47
 
Please login to merge, or discard this patch.
classes/event/recording_edited.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
      */
42 42
     protected function init() {
43 43
         parent::init('r', self::LEVEL_OTHER);
44
-        $this->description = "The user with id '##userid' has edited a recording with id ".
44
+        $this->description = "The user with id '##userid' has edited a recording with id " .
45 45
             "'##other' in the course id '##courseid'.";
46 46
     }
47 47
 
Please login to merge, or discard this patch.
classes/event/recording_protected.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
      */
42 42
     protected function init() {
43 43
         parent::init('r', self::LEVEL_OTHER);
44
-        $this->description = "The user with id '##userid' has protected a recording with id ".
44
+        $this->description = "The user with id '##userid' has protected a recording with id " .
45 45
             "'##other' in the course id '##courseid'.";
46 46
     }
47 47
 
Please login to merge, or discard this patch.
classes/event/recording_unprotected.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
      */
42 42
     protected function init() {
43 43
         parent::init('r', self::LEVEL_OTHER);
44
-        $this->description = "The user with id '##userid' has unprotected a recording with id ".
44
+        $this->description = "The user with id '##userid' has unprotected a recording with id " .
45 45
             "'##other' in the course id '##courseid'.";
46 46
     }
47 47
 
Please login to merge, or discard this patch.
classes/event/recording_imported.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
      */
42 42
     protected function init() {
43 43
         parent::init('r', self::LEVEL_OTHER);
44
-        $this->description = "The user with id '##userid' has imported a recording with id ".
44
+        $this->description = "The user with id '##userid' has imported a recording with id " .
45 45
             "'##other' in the course id '##courseid'.";
46 46
     }
47 47
 
Please login to merge, or discard this patch.