Completed
Push — master ( a610a3...20d163 )
by Jesus
02:01
created
classes/output/index.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 
36 36
 defined('MOODLE_INTERNAL') || die();
37 37
 
38
-require_once($CFG->dirroot.'/mod/bigbluebuttonbn/locallib.php');
38
+require_once($CFG->dirroot . '/mod/bigbluebuttonbn/locallib.php');
39 39
 
40 40
 /**
41 41
  * Class index
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
                 // Add a the data for the bigbluebuttonbn instance.
92 92
                 $groupobj = null;
93 93
                 if (groups_get_activity_groupmode($cm) > 0) {
94
-                    $groupobj = (object) array('id' => 0, 'name' => get_string('allparticipants'));
94
+                    $groupobj = (object)array('id' => 0, 'name' => get_string('allparticipants'));
95 95
                 }
96 96
                 $table->data[] = self::bigbluebuttonbn_index_display_room($canmoderate, $course, $bigbluebuttonbn, $groupobj);
97 97
                 // Add a the data for the groups belonging to the bigbluebuttonbn instance, if any.
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
             $attendeecount = 0;
182 182
             foreach ($meetinginfo['attendees']->attendee as $attendee) {
183 183
                 if ($attendee->role == $role) {
184
-                    $attendeelist .= ($attendeecount++ > 0 ? ', ' : '').$attendee->fullName;
184
+                    $attendeelist .= ($attendeecount++ > 0 ? ', ' : '') . $attendee->fullName;
185 185
                 }
186 186
             }
187 187
         }
@@ -215,18 +215,18 @@  discard block
 block discarded – undo
215 215
     public static function bigbluebuttonbn_index_display_room_actions($moderator, $course, $bigbluebuttonbn, $groupobj = null) {
216 216
         $actions = '';
217 217
         if ($moderator) {
218
-            $actions .= '<form name="form1" method="post" action="">'."\n";
219
-            $actions .= '  <INPUT type="hidden" name="id" value="'.$course->id.'">'."\n";
220
-            $actions .= '  <INPUT type="hidden" name="a" value="'.$bigbluebuttonbn->id.'">'."\n";
221
-            $actions .= '  <INPUT type="hidden" name="action" value="end">'."\n";
218
+            $actions .= '<form name="form1" method="post" action="">' . "\n";
219
+            $actions .= '  <INPUT type="hidden" name="id" value="' . $course->id . '">' . "\n";
220
+            $actions .= '  <INPUT type="hidden" name="a" value="' . $bigbluebuttonbn->id . '">' . "\n";
221
+            $actions .= '  <INPUT type="hidden" name="action" value="end">' . "\n";
222 222
             if ($groupobj != null) {
223
-                $actions .= '  <INPUT type="hidden" name="g" value="'.$groupobj->id.'">'."\n";
223
+                $actions .= '  <INPUT type="hidden" name="g" value="' . $groupobj->id . '">' . "\n";
224 224
             }
225 225
             $actions .= '  <INPUT type="submit" name="submit" value="' .
226 226
                 get_string('view_conference_action_end', 'bigbluebuttonbn') .
227 227
                 '" class="btn btn-primary btn-sm" onclick="return confirm(\'' .
228 228
                 get_string('index_confirm_end', 'bigbluebuttonbn') . '\')">' . "\n";
229
-            $actions .= '</form>'."\n";
229
+            $actions .= '</form>' . "\n";
230 230
         }
231 231
         return $actions;
232 232
     }
Please login to merge, or discard this patch.
brokerlib.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
 function bigbluebuttonbn_broker_recording_info_current($recording, $params) {
209 209
     $callbackresponse['status'] = true;
210 210
     $callbackresponse['found'] = true;
211
-    $callbackresponse['published'] = (string) $recording['published'];
211
+    $callbackresponse['published'] = (string)$recording['published'];
212 212
     if (!isset($params['meta']) || empty($params['meta'])) {
213 213
         return $callbackresponse;
214 214
     }
@@ -559,8 +559,8 @@  discard block
 block discarded – undo
559 559
             array('HS256')
560 560
         );
561 561
     } catch (Exception $e) {
562
-        $error = 'Caught exception: '.$e->getMessage();
563
-        header('HTTP/1.0 400 Bad Request. '.$error);
562
+        $error = 'Caught exception: ' . $e->getMessage();
563
+        header('HTTP/1.0 400 Bad Request. ' . $error);
564 564
         return;
565 565
     }
566 566
     // Validate that the bigbluebuttonbn activity corresponds to the meeting_id received.
@@ -590,8 +590,8 @@  discard block
 block discarded – undo
590 590
         bigbluebuttonbn_log($bigbluebuttonbn, BIGBLUEBUTTON_LOG_EVENT_CALLBACK, $overrides, json_encode($meta));
591 591
         header('HTTP/1.0 202 Accepted');
592 592
     } catch (Exception $e) {
593
-        $error = 'Caught exception: '.$e->getMessage();
594
-        header('HTTP/1.0 503 Service Unavailable. '.$error);
593
+        $error = 'Caught exception: ' . $e->getMessage();
594
+        header('HTTP/1.0 503 Service Unavailable. ' . $error);
595 595
     }
596 596
 }
597 597
 
@@ -612,13 +612,13 @@  discard block
 block discarded – undo
612 612
     $importrecordings = $SESSION->bigbluebuttonbn_importrecordings;
613 613
     if (!isset($importrecordings[$params['id']])) {
614 614
         $error = "Recording {$params['id']} could not be found. It can not be imported";
615
-        header('HTTP/1.0 404 Not found. '.$error);
615
+        header('HTTP/1.0 404 Not found. ' . $error);
616 616
         return;
617 617
     }
618 618
     $callbackresponse = array('status' => true);
619 619
     $importrecordings[$params['id']]['imported'] = true;
620 620
     $overrides = array('meetingid' => $importrecordings[$params['id']]['meetingID']);
621
-    $meta = '{"recording":'.json_encode($importrecordings[$params['id']]).'}';
621
+    $meta = '{"recording":' . json_encode($importrecordings[$params['id']]) . '}';
622 622
     bigbluebuttonbn_log($bbbsession['bigbluebuttonbn'], BIGBLUEBUTTONBN_LOG_EVENT_IMPORT, $overrides, $meta);
623 623
     // Moodle event logger: Create an event for recording imported.
624 624
     if (isset($bbbsession['bigbluebutton']) && isset($bbbsession['cm'])) {
@@ -712,7 +712,7 @@  discard block
 block discarded – undo
712 712
     $action = strtolower($params['action']);
713 713
     $requiredparams = bigbluebuttonbn_broker_required_parameters();
714 714
     if (!array_key_exists($action, $requiredparams)) {
715
-        return 'Action '.$params['action'].' can not be performed.';
715
+        return 'Action ' . $params['action'] . ' can not be performed.';
716 716
     }
717 717
     return bigbluebuttonbn_broker_validate_parameters_message($params, $requiredparams[$action]);
718 718
 }
@@ -858,7 +858,7 @@  discard block
 block discarded – undo
858 858
     $tabledata = array();
859 859
     $typeprofiles = bigbluebuttonbn_get_instance_type_profiles();
860 860
     $tabledata['activity'] = bigbluebuttonbn_view_get_activity_status($bbbsession);
861
-    $tabledata['ping_interval'] = (int) \mod_bigbluebuttonbn\locallib\config::get('waitformoderator_ping_interval') * 1000;
861
+    $tabledata['ping_interval'] = (int)\mod_bigbluebuttonbn\locallib\config::get('waitformoderator_ping_interval') * 1000;
862 862
     $tabledata['locale'] = bigbluebuttonbn_get_localcode();
863 863
     $tabledata['profile_features'] = $typeprofiles[0]['features'];
864 864
     $tabledata['recordings_html'] = $bbbsession['bigbluebuttonbn']->recordings_html == '1';
Please login to merge, or discard this patch.
config-dist.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
  * recordings from a different activity even from a different course.
104 104
  **/
105 105
 
106
- /*
106
+    /*
107 107
  * When the value is set to 1 (checked) the bigbluebuttonbn rooms or
108 108
  * activities will have the 'import recordings' capability enabled.
109 109
  * $CFG->bigbluebuttonbn['importrecordings_enabled'] = 0;
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
  * 'Join session' button enabled
125 125
  **/
126 126
 
127
- /*
127
+    /*
128 128
  * When the value is set to 1 (checked) the bigbluebuttonbn rooms or
129 129
  * activities will have the 'wait for moderator' capability enabled by
130 130
  * default.
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
  * $CFG->bigbluebuttonbn['recordings_preview_editable'] = 0;
277 277
  */
278 278
 
279
- /* When the value is set to 1 (checked) the playback URLs will be validated
279
+    /* When the value is set to 1 (checked) the playback URLs will be validated
280 280
   * before the user access it.
281 281
   * $CFG->bigbluebuttonbn['recordings_validate_url'] = 1;
282 282
   */
@@ -366,27 +366,27 @@  discard block
 block discarded – undo
366 366
  * $CFG->bigbluebuttonbn['general_warning_message'] = "Would you like to record your BigBlueButton sessions for later viewing? ";
367 367
  */
368 368
 
369
- /*
369
+    /*
370 370
  * The warning box is always shown to administrators, but it is also possible to define other roles
371 371
  * to whom the it will be shown. The roles are based on the shortnames defined by Moodle:
372 372
  *     'manager,coursecreator,editingteacher,teacher,student,guest,user,frontpage'
373 373
  * $CFG->bigbluebuttonbn['general_warning_roles'] = 'editingteacher,teacher';
374 374
  */
375 375
 
376
- /*
376
+    /*
377 377
  * As the general_warning_message is shown in a box, its type can be defined with general_warning_type
378 378
  * The default type is 'info' which is normaly rendered in blue when using a bootstrap theme.
379 379
  * All the modifiers for boxed in bootstrap can be used [info|success|warning|danger].
380 380
  * $CFG->bigbluebuttonbn['general_warning_box_type'] = 'info';
381 381
  */
382 382
 
383
- /*
383
+    /*
384 384
  * Additionally, when general_warning_button_href value is different than "", a button
385 385
  * can also be shown right after the message.
386 386
  * $CFG->bigbluebuttonbn['general_warning_button_href'] = "http://blindsidenetworks.com/";
387 387
  */
388 388
 
389
- /*
389
+    /*
390 390
  * Finally, the text and class for the button can be modified
391 391
  * $CFG->bigbluebuttonbn['general_warning_button_text'] = "Upgrade your site";
392 392
  * $CFG->bigbluebuttonbn['general_warning_button_class'] = "btn btn-primary";
Please login to merge, or discard this patch.
classes/settings/renderer.php 1 patch
Spacing   +3 added lines, -3 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);
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
      */
167 167
     public function render_warning_message($name, $message, $type = 'warning', $closable = true) {
168 168
         $output = $this->output->box_start('box boxalignleft adminerror alert alert-' . $type . ' alert-block fade in',
169
-            'bigbluebuttonbn_' . $name)."\n";
169
+            'bigbluebuttonbn_' . $name) . "\n";
170 170
         if ($closable) {
171 171
             $output .= '  <button type="button" class="close" data-dismiss="alert">&times;</button>' . "\n";
172 172
         }
Please login to merge, or discard this patch.