Completed
Push — master ( c814ae...6cff67 )
by Jesus
02:10
created
brokerlib.php 1 patch
Spacing   +8 added lines, -8 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
 }
Please login to merge, or discard this patch.
classes/locallib/notifier.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
      *
112 112
      * @param object $bigbluebuttonbn
113 113
      *
114
-     * @return void
114
+     * @return string
115 115
      */
116 116
     public static function htmlmsg_recording_ready($bigbluebuttonbn) {
117 117
         return '<p>'.get_string('email_body_recording_ready_for', 'bigbluebuttonbn').
Please login to merge, or discard this patch.
Spacing   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -44,29 +44,29 @@  discard block
 block discarded – undo
44 44
      * @return string
45 45
      */
46 46
     public static function htmlmsg_instance_updated($msg) {
47
-        $messagetext = '<p>'.$msg->activity_type.' "'.$msg->activity_title.'" '.
48
-            get_string('email_body_notification_meeting_has_been', 'bigbluebuttonbn').' '.$msg->action.'.</p>'."\n";
49
-        $messagetext .= '<p><b>'.$msg->activity_title.'</b> '.
50
-            get_string('email_body_notification_meeting_details', 'bigbluebuttonbn').':'."\n";
51
-        $messagetext .= '<table border="0" style="margin: 5px 0 0 20px"><tbody>'."\n";
52
-        $messagetext .= '<tr><td style="font-weight:bold;color:#555;">'.
53
-            get_string('email_body_notification_meeting_title', 'bigbluebuttonbn').': </td><td>'."\n";
54
-        $messagetext .= $msg->activity_title.'</td></tr>'."\n";
55
-        $messagetext .= '<tr><td style="font-weight:bold;color:#555;">'.
56
-            get_string('email_body_notification_meeting_description', 'bigbluebuttonbn').': </td><td>'."\n";
57
-        $messagetext .= $msg->activity_description.'</td></tr>'."\n";
58
-        $messagetext .= '<tr><td style="font-weight:bold;color:#555;">'.
59
-            get_string('email_body_notification_meeting_start_date', 'bigbluebuttonbn').': </td><td>'."\n";
60
-        $messagetext .= $msg->activity_openingtime.'</td></tr>'."\n";
61
-        $messagetext .= '<tr><td style="font-weight:bold;color:#555;">'.
62
-            get_string('email_body_notification_meeting_end_date', 'bigbluebuttonbn').': </td><td>'."\n";
63
-        $messagetext .= $msg->activity_closingtime.'</td></tr>'."\n";
64
-        $messagetext .= '<tr><td style="font-weight:bold;color:#555;">'.$msg->action.' '.
65
-            get_string('email_body_notification_meeting_by', 'bigbluebuttonbn').': </td><td>'."\n";
66
-        $messagetext .= $msg->activity_owner.'</td></tr></tbody></table></p>'."\n";
67
-        $messagetext .= '<p><hr/><br/>'.get_string('email_footer_sent_by', 'bigbluebuttonbn').' '.
68
-            $msg->user_name.'('.$msg->user_email.') ';
69
-        $messagetext .= get_string('email_footer_sent_from', 'bigbluebuttonbn').' '.$msg->course_name.'.</p>';
47
+        $messagetext = '<p>' . $msg->activity_type . ' "' . $msg->activity_title . '" ' .
48
+            get_string('email_body_notification_meeting_has_been', 'bigbluebuttonbn') . ' ' . $msg->action . '.</p>' . "\n";
49
+        $messagetext .= '<p><b>' . $msg->activity_title . '</b> ' .
50
+            get_string('email_body_notification_meeting_details', 'bigbluebuttonbn') . ':' . "\n";
51
+        $messagetext .= '<table border="0" style="margin: 5px 0 0 20px"><tbody>' . "\n";
52
+        $messagetext .= '<tr><td style="font-weight:bold;color:#555;">' .
53
+            get_string('email_body_notification_meeting_title', 'bigbluebuttonbn') . ': </td><td>' . "\n";
54
+        $messagetext .= $msg->activity_title . '</td></tr>' . "\n";
55
+        $messagetext .= '<tr><td style="font-weight:bold;color:#555;">' .
56
+            get_string('email_body_notification_meeting_description', 'bigbluebuttonbn') . ': </td><td>' . "\n";
57
+        $messagetext .= $msg->activity_description . '</td></tr>' . "\n";
58
+        $messagetext .= '<tr><td style="font-weight:bold;color:#555;">' .
59
+            get_string('email_body_notification_meeting_start_date', 'bigbluebuttonbn') . ': </td><td>' . "\n";
60
+        $messagetext .= $msg->activity_openingtime . '</td></tr>' . "\n";
61
+        $messagetext .= '<tr><td style="font-weight:bold;color:#555;">' .
62
+            get_string('email_body_notification_meeting_end_date', 'bigbluebuttonbn') . ': </td><td>' . "\n";
63
+        $messagetext .= $msg->activity_closingtime . '</td></tr>' . "\n";
64
+        $messagetext .= '<tr><td style="font-weight:bold;color:#555;">' . $msg->action . ' ' .
65
+            get_string('email_body_notification_meeting_by', 'bigbluebuttonbn') . ': </td><td>' . "\n";
66
+        $messagetext .= $msg->activity_owner . '</td></tr></tbody></table></p>' . "\n";
67
+        $messagetext .= '<p><hr/><br/>' . get_string('email_footer_sent_by', 'bigbluebuttonbn') . ' ' .
68
+            $msg->user_name . '(' . $msg->user_email . ') ';
69
+        $messagetext .= get_string('email_footer_sent_from', 'bigbluebuttonbn') . ' ' . $msg->course_name . '.</p>';
70 70
         return $messagetext;
71 71
     }
72 72
 
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
         $course = $coursemodinfo->get_course($bigbluebuttonbn->course);
84 84
         $sender = $USER;
85 85
         // Prepare message.
86
-        $msg = (object) array();
86
+        $msg = (object)array();
87 87
         // Build the message_body.
88 88
         $msg->action = $action;
89 89
         $msg->activity_type = '';
@@ -114,9 +114,9 @@  discard block
 block discarded – undo
114 114
      * @return void
115 115
      */
116 116
     public static function htmlmsg_recording_ready($bigbluebuttonbn) {
117
-        return '<p>'.get_string('email_body_recording_ready_for', 'bigbluebuttonbn').
118
-            ' &quot;' . $bigbluebuttonbn->name . '&quot; '.
119
-            get_string('email_body_recording_ready_is_ready', 'bigbluebuttonbn').'.</p>';
117
+        return '<p>' . get_string('email_body_recording_ready_for', 'bigbluebuttonbn') .
118
+            ' &quot;' . $bigbluebuttonbn->name . '&quot; ' .
119
+            get_string('email_body_recording_ready_is_ready', 'bigbluebuttonbn') . '.</p>';
120 120
     }
121 121
 
122 122
     /**
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
                     // Enqueue it.
159 159
                     \core\task\manager::queue_adhoc_task($task);
160 160
                 } catch (Exception $e) {
161
-                    mtrace("Error while enqueuing completion_uopdate_state task. " . (string) $e);
161
+                    mtrace("Error while enqueuing completion_uopdate_state task. " . (string)$e);
162 162
                 }
163 163
             }
164 164
         }
Please login to merge, or discard this patch.
locallib.php 2 patches
Doc Comments   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
  * Helper function to retrieve imported recordings from the Moodle database.
307 307
  * The references are stored as events in bigbluebuttonbn_logs.
308 308
  *
309
- * @param string $courseid
309
+ * @param integer $courseid
310 310
  * @param string $bigbluebuttonbnid
311 311
  * @param bool   $subset
312 312
  *
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
 /**
335 335
  * Helper function to retrive the default config.xml file.
336 336
  *
337
- * @return string
337
+ * @return null|SimpleXMLElement
338 338
  */
339 339
 function bigbluebuttonbn_get_default_config_xml() {
340 340
     $xml = bigbluebuttonbn_wrap_xml_load_file(
@@ -416,7 +416,7 @@  discard block
 block discarded – undo
416 416
  * @param object $a
417 417
  * @param object $b
418 418
  *
419
- * @return array
419
+ * @return integer
420 420
  */
421 421
 function bigbluebuttonbn_recording_build_sorter($a, $b) {
422 422
     global $CFG;
@@ -530,7 +530,7 @@  discard block
 block discarded – undo
530 530
  * @param string $data
531 531
  * @param string $contenttype
532 532
  *
533
- * @return object
533
+ * @return null|SimpleXMLElement
534 534
  */
535 535
 function bigbluebuttonbn_wrap_xml_load_file($url, $method = 'GET', $data = null, $contenttype = 'text/xml') {
536 536
     if (extension_loaded('curl')) {
@@ -571,7 +571,7 @@  discard block
 block discarded – undo
571 571
  * @param string $data
572 572
  * @param string $contenttype
573 573
  *
574
- * @return object
574
+ * @return string
575 575
  */
576 576
 function bigbluebuttonbn_wrap_xml_load_file_curl_request($url, $method = 'GET', $data = null, $contenttype = 'text/xml') {
577 577
     $c = new curl();
@@ -944,7 +944,7 @@  discard block
 block discarded – undo
944 944
  * @param integer $instance
945 945
  * @param integer $voicebridge
946 946
  *
947
- * @return string
947
+ * @return boolean
948 948
  */
949 949
 function bigbluebuttonbn_voicebridge_unique($instance, $voicebridge) {
950 950
     global $DB;
@@ -1292,7 +1292,7 @@  discard block
 block discarded – undo
1292 1292
  * @param string $meetingid
1293 1293
  * @param string $configxml
1294 1294
  *
1295
- * @return object
1295
+ * @return null|SimpleXMLElement
1296 1296
  */
1297 1297
 function bigbluebuttonbn_set_config_xml($meetingid, $configxml) {
1298 1298
     $urldefaultconfig = \mod_bigbluebuttonbn\locallib\config::get('server_url') . 'api/setConfigXML?';
@@ -1346,7 +1346,7 @@  discard block
 block discarded – undo
1346 1346
  * @param array $recording
1347 1347
  * @param array $tools
1348 1348
  *
1349
- * @return array
1349
+ * @return null|stdClass
1350 1350
  */
1351 1351
 function bigbluebuttonbn_get_recording_data_row($bbbsession, $recording, $tools = ['protect', 'publish', 'delete']) {
1352 1352
     if (!bigbluebuttonbn_include_recording_table_row($bbbsession, $recording)) {
@@ -1981,7 +1981,7 @@  discard block
 block discarded – undo
1981 1981
  *
1982 1982
  * @param array $bbbsession
1983 1983
  * @param array $recording
1984
- * @param object $rowdata
1984
+ * @param stdClass $rowdata
1985 1985
  *
1986 1986
  * @return object
1987 1987
  */
@@ -2176,7 +2176,7 @@  discard block
 block discarded – undo
2176 2176
  *
2177 2177
  * @param array $bbbsession
2178 2178
  * @param array $recordings
2179
- * @param array $tools
2179
+ * @param string[] $tools
2180 2180
  *
2181 2181
  * @return array
2182 2182
  */
@@ -2257,7 +2257,7 @@  discard block
 block discarded – undo
2257 2257
  * Helper function to define the sql used for gattering the bigbluebuttonbnids whose meetingids should be included
2258 2258
  * in the getRecordings request considering only those that belong to deleted activities.
2259 2259
  *
2260
- * @param string $courseid
2260
+ * @param integer $courseid
2261 2261
  * @param string $bigbluebuttonbnid
2262 2262
  * @param bool   $subset
2263 2263
  *
@@ -2281,7 +2281,7 @@  discard block
 block discarded – undo
2281 2281
  * Helper function to define the sql used for gattering the bigbluebuttonbnids whose meetingids should be included
2282 2282
  * in the getRecordings request considering only those that belong to imported recordings.
2283 2283
  *
2284
- * @param string $courseid
2284
+ * @param integer $courseid
2285 2285
  * @param string $bigbluebuttonbnid
2286 2286
  * @param bool   $subset
2287 2287
  *
@@ -2304,7 +2304,7 @@  discard block
 block discarded – undo
2304 2304
 /**
2305 2305
  * Helper function to get recordings and imported recordings together.
2306 2306
  *
2307
- * @param string $courseid
2307
+ * @param integer $courseid
2308 2308
  * @param string $bigbluebuttonbnid
2309 2309
  * @param bool   $subset
2310 2310
  * @param bool   $includedeleted
@@ -2322,7 +2322,7 @@  discard block
 block discarded – undo
2322 2322
  * Helper function to retrieve recordings from the BigBlueButton. The references are stored as events
2323 2323
  * in bigbluebuttonbn_logs.
2324 2324
  *
2325
- * @param string $courseid
2325
+ * @param integer $courseid
2326 2326
  * @param string $bigbluebuttonbnid
2327 2327
  * @param bool   $subset
2328 2328
  * @param bool   $includedeleted
Please login to merge, or discard this patch.
Spacing   +54 added lines, -54 removed lines patch added patch discarded remove patch
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
     }
191 191
     if ($xml) {
192 192
         // Either failure or success without meeting info.
193
-        return (array) $xml;
193
+        return (array)$xml;
194 194
     }
195 195
     // If the server is unreachable, then prompts the user of the necessary action.
196 196
     return array('returncode' => 'FAILED', 'message' => 'unreachable', 'messageKey' => 'Server is unreachable');
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
                 foreach ($recordingxml->breakoutRooms->breakoutRoom as $breakoutroom) {
280 280
                     $url = \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url(
281 281
                         'getRecordings',
282
-                        ['recordID' => implode(',', (array) $breakoutroom)]
282
+                        ['recordID' => implode(',', (array)$breakoutroom)]
283 283
                     );
284 284
                     $xml = bigbluebuttonbn_wrap_xml_load_file($url);
285 285
                     if ($xml && $xml->returncode == 'SUCCESS' && isset($xml->recordings)) {
@@ -335,7 +335,7 @@  discard block
 block discarded – undo
335 335
         // Override imported flag with actual ID.
336 336
         $recording['imported'] = $recordimported->id;
337 337
         if (isset($recordimported->protected)) {
338
-            $recording['protected'] = (string) $recordimported->protected;
338
+            $recording['protected'] = (string)$recordimported->protected;
339 339
         }
340 340
         $recordsimportedarray[$recording['recordID']] = $recording;
341 341
     }
@@ -365,21 +365,21 @@  discard block
 block discarded – undo
365 365
     // Add formats.
366 366
     $playbackarray = array();
367 367
     foreach ($recording->playback->format as $format) {
368
-        $playbackarray[(string) $format->type] = array('type' => (string) $format->type,
369
-            'url' => trim((string) $format->url), 'length' => (string) $format->length);
368
+        $playbackarray[(string)$format->type] = array('type' => (string)$format->type,
369
+            'url' => trim((string)$format->url), 'length' => (string)$format->length);
370 370
         // Add preview per format when existing.
371 371
         if ($format->preview) {
372
-            $playbackarray[(string) $format->type]['preview'] = bigbluebuttonbn_get_recording_preview_images($format->preview);
372
+            $playbackarray[(string)$format->type]['preview'] = bigbluebuttonbn_get_recording_preview_images($format->preview);
373 373
         }
374 374
     }
375 375
     // Add the metadata to the recordings array.
376 376
     $metadataarray = bigbluebuttonbn_get_recording_array_meta(get_object_vars($recording->metadata));
377
-    $recordingarray = array('recordID' => (string) $recording->recordID,
378
-        'meetingID' => (string) $recording->meetingID, 'meetingName' => (string) $recording->name,
379
-        'published' => (string) $recording->published, 'startTime' => (string) $recording->startTime,
380
-        'endTime' => (string) $recording->endTime, 'playbacks' => $playbackarray);
377
+    $recordingarray = array('recordID' => (string)$recording->recordID,
378
+        'meetingID' => (string)$recording->meetingID, 'meetingName' => (string)$recording->name,
379
+        'published' => (string)$recording->published, 'startTime' => (string)$recording->startTime,
380
+        'endTime' => (string)$recording->endTime, 'playbacks' => $playbackarray);
381 381
     if (isset($recording->protected)) {
382
-        $recordingarray['protected'] = (string) $recording->protected;
382
+        $recordingarray['protected'] = (string)$recording->protected;
383 383
     }
384 384
     return $recordingarray + $metadataarray;
385 385
 }
@@ -394,9 +394,9 @@  discard block
 block discarded – undo
394 394
 function bigbluebuttonbn_get_recording_preview_images($preview) {
395 395
     $imagesarray = array();
396 396
     foreach ($preview->images->image as $image) {
397
-        $imagearray = array('url' => trim((string) $image));
397
+        $imagearray = array('url' => trim((string)$image));
398 398
         foreach ($image->attributes() as $attkey => $attvalue) {
399
-            $imagearray[$attkey] = (string) $attvalue;
399
+            $imagearray[$attkey] = (string)$attvalue;
400 400
         }
401 401
         array_push($imagesarray, $imagearray);
402 402
     }
@@ -491,7 +491,7 @@  discard block
 block discarded – undo
491 491
     $ids = explode(',', $recordids);
492 492
     foreach ($ids as $id) {
493 493
         $xml = bigbluebuttonbn_wrap_xml_load_file(
494
-            \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('updateRecordings', ['recordID' => $id] + (array) $params)
494
+            \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('updateRecordings', ['recordID' => $id] + (array)$params)
495 495
         );
496 496
         if ($xml && $xml->returncode != 'SUCCESS') {
497 497
             return false;
@@ -660,7 +660,7 @@  discard block
 block discarded – undo
660 660
  * @return array $users
661 661
  */
662 662
 function bigbluebuttonbn_get_users(context $context = null) {
663
-    $users = (array) get_enrolled_users($context, '', 0, 'u.*', null, 0, 0, true);
663
+    $users = (array)get_enrolled_users($context, '', 0, 'u.*', null, 0, 0, true);
664 664
     foreach ($users as $key => $value) {
665 665
         $users[$key] = fullname($value);
666 666
     }
@@ -679,7 +679,7 @@  discard block
 block discarded – undo
679 679
 function bigbluebuttonbn_get_users_select(context_course $context, $bbactivity = null) {
680 680
     // CONTRIB-7972, check the group of current user and course group mode.
681 681
     $groups = null;
682
-    $users = (array) get_enrolled_users($context, '', 0, 'u.*', null, 0, 0, true);
682
+    $users = (array)get_enrolled_users($context, '', 0, 'u.*', null, 0, 0, true);
683 683
     $course = get_course($context->instanceid);
684 684
     $groupmode = groups_get_course_groupmode($course);
685 685
     if ($bbactivity) {
@@ -692,7 +692,7 @@  discard block
 block discarded – undo
692 692
         $groups = groups_get_all_groups($course->id, $USER->id);
693 693
         $users = [];
694 694
         foreach ($groups as $g) {
695
-            $users += (array) get_enrolled_users($context, '', $g->id, 'u.*', null, 0, 0, true);
695
+            $users += (array)get_enrolled_users($context, '', $g->id, 'u.*', null, 0, 0, true);
696 696
         }
697 697
     }
698 698
     return array_map(
@@ -710,7 +710,7 @@  discard block
 block discarded – undo
710 710
  * @return array $roles
711 711
  */
712 712
 function bigbluebuttonbn_get_roles(context $context = null) {
713
-    $roles = (array) role_get_names($context);
713
+    $roles = (array)role_get_names($context);
714 714
     foreach ($roles as $key => $value) {
715 715
         $roles[$key] = $value->localname;
716 716
     }
@@ -725,7 +725,7 @@  discard block
 block discarded – undo
725 725
  * @return array $users
726 726
  */
727 727
 function bigbluebuttonbn_get_roles_select(context $context = null) {
728
-    $roles = (array) role_get_names($context);
728
+    $roles = (array)role_get_names($context);
729 729
     foreach ($roles as $key => $value) {
730 730
         $roles[$key] = array('id' => $value->id, 'name' => $value->localname);
731 731
     }
@@ -740,9 +740,9 @@  discard block
 block discarded – undo
740 740
  * @return object $role
741 741
  */
742 742
 function bigbluebuttonbn_get_role($id) {
743
-    $roles = (array) role_get_names();
743
+    $roles = (array)role_get_names();
744 744
     if (is_numeric($id) && isset($roles[$id])) {
745
-        return (object) $roles[$id];
745
+        return (object)$roles[$id];
746 746
     }
747 747
     foreach ($roles as $role) {
748 748
         if ($role->shortname == $id) {
@@ -822,7 +822,7 @@  discard block
 block discarded – undo
822 822
             if (!empty($ownerid) && is_enrolled($context, $ownerid)) {
823 823
                 $participantlist[] = array(
824 824
                     'selectiontype' => 'user',
825
-                    'selectionid' => (string) $ownerid,
825
+                    'selectionid' => (string)$ownerid,
826 826
                     'role' => BIGBLUEBUTTONBN_ROLE_MODERATOR);
827 827
             }
828 828
             continue;
@@ -1004,7 +1004,7 @@  discard block
 block discarded – undo
1004 1004
     $now = time();
1005 1005
     if ($closingtime > 0 && $now < $closingtime) {
1006 1006
         $duration = ceil(($closingtime - $now) / 60);
1007
-        $compensationtime = intval((int) \mod_bigbluebuttonbn\locallib\config::get('scheduled_duration_compensation'));
1007
+        $compensationtime = intval((int)\mod_bigbluebuttonbn\locallib\config::get('scheduled_duration_compensation'));
1008 1008
         $duration = intval($duration) + $compensationtime;
1009 1009
     }
1010 1010
     return $duration;
@@ -1206,16 +1206,16 @@  discard block
 block discarded – undo
1206 1206
  * @return array
1207 1207
  */
1208 1208
 function bigbluebuttonbn_get_meeting_info($meetingid, $updatecache = false) {
1209
-    $cachettl = (int) \mod_bigbluebuttonbn\locallib\config::get('waitformoderator_cache_ttl');
1209
+    $cachettl = (int)\mod_bigbluebuttonbn\locallib\config::get('waitformoderator_cache_ttl');
1210 1210
     $cache = cache::make_from_params(cache_store::MODE_APPLICATION, 'mod_bigbluebuttonbn', 'meetings_cache');
1211 1211
     $result = $cache->get($meetingid);
1212 1212
     $now = time();
1213 1213
     if (!$updatecache && isset($result) && $now < ($result['creation_time'] + $cachettl)) {
1214 1214
         // Use the value in the cache.
1215
-        return (array) json_decode($result['meeting_info']);
1215
+        return (array)json_decode($result['meeting_info']);
1216 1216
     }
1217 1217
     // Ping again and refresh the cache.
1218
-    $meetinginfo = (array) bigbluebuttonbn_wrap_xml_load_file(
1218
+    $meetinginfo = (array)bigbluebuttonbn_wrap_xml_load_file(
1219 1219
         \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getMeetingInfo', ['meetingID' => $meetingid])
1220 1220
     );
1221 1221
     $cache->set($meetingid, array('creation_time' => time(), 'meeting_info' => json_encode($meetinginfo)));
@@ -1362,7 +1362,7 @@  discard block
 block discarded – undo
1362 1362
  */
1363 1363
 function bigbluebuttonbn_set_config_xml_array($meetingid, $configxml) {
1364 1364
     $configxml = bigbluebuttonbn_setConfigXML($meetingid, $configxml);
1365
-    $configxmlarray = (array) $configxml;
1365
+    $configxmlarray = (array)$configxml;
1366 1366
     if ($configxmlarray['returncode'] != 'SUCCESS') {
1367 1367
         debugging('BigBlueButton was not able to set the custom config.xml file', DEBUG_DEVELOPER);
1368 1368
         return '';
@@ -1417,7 +1417,7 @@  discard block
 block discarded – undo
1417 1417
  * @return boolean
1418 1418
  */
1419 1419
 function bigbluebuttonbn_get_recording_data_row_editable($bbbsession) {
1420
-    return ($bbbsession['managerecordings'] && ((double) $bbbsession['serverversion'] >= 1.0 || $bbbsession['bnserver']));
1420
+    return ($bbbsession['managerecordings'] && ((double)$bbbsession['serverversion'] >= 1.0 || $bbbsession['bnserver']));
1421 1421
 }
1422 1422
 
1423 1423
 /**
@@ -1428,7 +1428,7 @@  discard block
 block discarded – undo
1428 1428
  * @return boolean
1429 1429
  */
1430 1430
 function bigbluebuttonbn_get_recording_data_preview_enabled($bbbsession) {
1431
-    return ((double) $bbbsession['serverversion'] >= 1.0 && $bbbsession['bigbluebuttonbn']->recordings_preview == '1');
1431
+    return ((double)$bbbsession['serverversion'] >= 1.0 && $bbbsession['bigbluebuttonbn']->recordings_preview == '1');
1432 1432
 }
1433 1433
 
1434 1434
 /**
@@ -1852,7 +1852,7 @@  discard block
 block discarded – undo
1852 1852
     }
1853 1853
     $id = 'recording-' . $target . '-' . $recording['recordID'];
1854 1854
     $onclick = 'M.mod_bigbluebuttonbn.recordings.recording' . ucfirst($data['action']) . '(this);';
1855
-    if ((boolean) \mod_bigbluebuttonbn\locallib\config::get('recording_icons_enabled')) {
1855
+    if ((boolean)\mod_bigbluebuttonbn\locallib\config::get('recording_icons_enabled')) {
1856 1856
         // With icon for $manageaction.
1857 1857
         $iconattributes = array('id' => $id, 'class' => 'iconsmall');
1858 1858
         $linkattributes = array(
@@ -2136,7 +2136,7 @@  discard block
 block discarded – undo
2136 2136
         // Enqueue it.
2137 2137
         \core\task\manager::queue_adhoc_task($task);
2138 2138
     } catch (Exception $e) {
2139
-        mtrace("Error while enqueuing completion_update_state task. " . (string) $e);
2139
+        mtrace("Error while enqueuing completion_update_state task. " . (string)$e);
2140 2140
     }
2141 2141
 }
2142 2142
 
@@ -2673,7 +2673,7 @@  discard block
 block discarded – undo
2673 2673
  */
2674 2674
 function bigbluebuttonbn_settings_general(&$renderer) {
2675 2675
     // Configuration for BigBlueButton.
2676
-    if ((boolean) \mod_bigbluebuttonbn\settings\validator::section_general_shown()) {
2676
+    if ((boolean)\mod_bigbluebuttonbn\settings\validator::section_general_shown()) {
2677 2677
         $renderer->render_group_header('general');
2678 2678
         $renderer->render_group_element(
2679 2679
             'server_url',
@@ -2695,7 +2695,7 @@  discard block
 block discarded – undo
2695 2695
  */
2696 2696
 function bigbluebuttonbn_settings_record(&$renderer) {
2697 2697
     // Configuration for 'recording' feature.
2698
-    if ((boolean) \mod_bigbluebuttonbn\settings\validator::section_record_meeting_shown()) {
2698
+    if ((boolean)\mod_bigbluebuttonbn\settings\validator::section_record_meeting_shown()) {
2699 2699
         $renderer->render_group_header('recording');
2700 2700
         $renderer->render_group_element(
2701 2701
             'recording_default',
@@ -2739,7 +2739,7 @@  discard block
 block discarded – undo
2739 2739
  */
2740 2740
 function bigbluebuttonbn_settings_importrecordings(&$renderer) {
2741 2741
     // Configuration for 'import recordings' feature.
2742
-    if ((boolean) \mod_bigbluebuttonbn\settings\validator::section_import_recordings_shown()) {
2742
+    if ((boolean)\mod_bigbluebuttonbn\settings\validator::section_import_recordings_shown()) {
2743 2743
         $renderer->render_group_header('importrecordings');
2744 2744
         $renderer->render_group_element(
2745 2745
             'importrecordings_enabled',
@@ -2761,7 +2761,7 @@  discard block
 block discarded – undo
2761 2761
  */
2762 2762
 function bigbluebuttonbn_settings_showrecordings(&$renderer) {
2763 2763
     // Configuration for 'show recordings' feature.
2764
-    if ((boolean) \mod_bigbluebuttonbn\settings\validator::section_show_recordings_shown()) {
2764
+    if ((boolean)\mod_bigbluebuttonbn\settings\validator::section_show_recordings_shown()) {
2765 2765
         $renderer->render_group_header('recordings');
2766 2766
         $renderer->render_group_element(
2767 2767
             'recordings_html_default',
@@ -2811,7 +2811,7 @@  discard block
 block discarded – undo
2811 2811
  */
2812 2812
 function bigbluebuttonbn_settings_waitmoderator(&$renderer) {
2813 2813
     // Configuration for wait for moderator feature.
2814
-    if ((boolean) \mod_bigbluebuttonbn\settings\validator::section_wait_moderator_shown()) {
2814
+    if ((boolean)\mod_bigbluebuttonbn\settings\validator::section_wait_moderator_shown()) {
2815 2815
         $renderer->render_group_header('waitformoderator');
2816 2816
         $renderer->render_group_element(
2817 2817
             'waitformoderator_default',
@@ -2841,7 +2841,7 @@  discard block
 block discarded – undo
2841 2841
  */
2842 2842
 function bigbluebuttonbn_settings_voicebridge(&$renderer) {
2843 2843
     // Configuration for "static voice bridge" feature.
2844
-    if ((boolean) \mod_bigbluebuttonbn\settings\validator::section_static_voice_bridge_shown()) {
2844
+    if ((boolean)\mod_bigbluebuttonbn\settings\validator::section_static_voice_bridge_shown()) {
2845 2845
         $renderer->render_group_header('voicebridge');
2846 2846
         $renderer->render_group_element(
2847 2847
             'voicebridge_editable',
@@ -2859,7 +2859,7 @@  discard block
 block discarded – undo
2859 2859
  */
2860 2860
 function bigbluebuttonbn_settings_preupload(&$renderer) {
2861 2861
     // Configuration for "preupload presentation" feature.
2862
-    if ((boolean) \mod_bigbluebuttonbn\settings\validator::section_preupload_presentation_shown()) {
2862
+    if ((boolean)\mod_bigbluebuttonbn\settings\validator::section_preupload_presentation_shown()) {
2863 2863
         // This feature only works if curl is installed.
2864 2864
         $preuploaddescripion = get_string('config_preuploadpresentation_description', 'bigbluebuttonbn');
2865 2865
         if (!extension_loaded('curl')) {
@@ -2887,7 +2887,7 @@  discard block
 block discarded – undo
2887 2887
  */
2888 2888
 function bigbluebuttonbn_settings_preupload_manage_default_file(&$renderer) {
2889 2889
     // Configuration for "preupload presentation" feature.
2890
-    if ((boolean) \mod_bigbluebuttonbn\settings\validator::section_preupload_presentation_shown()) {
2890
+    if ((boolean)\mod_bigbluebuttonbn\settings\validator::section_preupload_presentation_shown()) {
2891 2891
         if (extension_loaded('curl')) {
2892 2892
             // This feature only works if curl is installed.
2893 2893
             $renderer->render_filemanager_default_file_presentation("presentation_default");
@@ -2904,7 +2904,7 @@  discard block
 block discarded – undo
2904 2904
  */
2905 2905
 function bigbluebuttonbn_settings_userlimit(&$renderer) {
2906 2906
     // Configuration for "user limit" feature.
2907
-    if ((boolean) \mod_bigbluebuttonbn\settings\validator::section_user_limit_shown()) {
2907
+    if ((boolean)\mod_bigbluebuttonbn\settings\validator::section_user_limit_shown()) {
2908 2908
         $renderer->render_group_header('userlimit');
2909 2909
         $renderer->render_group_element(
2910 2910
             'userlimit_default',
@@ -2926,7 +2926,7 @@  discard block
 block discarded – undo
2926 2926
  */
2927 2927
 function bigbluebuttonbn_settings_duration(&$renderer) {
2928 2928
     // Configuration for "scheduled duration" feature.
2929
-    if ((boolean) \mod_bigbluebuttonbn\settings\validator::section_scheduled_duration_shown()) {
2929
+    if ((boolean)\mod_bigbluebuttonbn\settings\validator::section_scheduled_duration_shown()) {
2930 2930
         $renderer->render_group_header('scheduled');
2931 2931
         $renderer->render_group_element(
2932 2932
             'scheduled_duration_enabled',
@@ -2952,7 +2952,7 @@  discard block
 block discarded – undo
2952 2952
  */
2953 2953
 function bigbluebuttonbn_settings_participants(&$renderer) {
2954 2954
     // Configuration for defining the default role/user that will be moderator on new activities.
2955
-    if ((boolean) \mod_bigbluebuttonbn\settings\validator::section_moderator_default_shown()) {
2955
+    if ((boolean)\mod_bigbluebuttonbn\settings\validator::section_moderator_default_shown()) {
2956 2956
         $renderer->render_group_header('participant');
2957 2957
         // UI for 'participants' feature.
2958 2958
         $roles = bigbluebuttonbn_get_roles();
@@ -2977,7 +2977,7 @@  discard block
 block discarded – undo
2977 2977
  */
2978 2978
 function bigbluebuttonbn_settings_notifications(&$renderer) {
2979 2979
     // Configuration for "send notifications" feature.
2980
-    if ((boolean) \mod_bigbluebuttonbn\settings\validator::section_send_notifications_shown()) {
2980
+    if ((boolean)\mod_bigbluebuttonbn\settings\validator::section_send_notifications_shown()) {
2981 2981
         $renderer->render_group_header('sendnotifications');
2982 2982
         $renderer->render_group_element(
2983 2983
             'sendnotifications_enabled',
@@ -2995,14 +2995,14 @@  discard block
 block discarded – undo
2995 2995
  */
2996 2996
 function bigbluebuttonbn_settings_clienttype(&$renderer) {
2997 2997
     // Configuration for "clienttype" feature.
2998
-    if ((boolean) \mod_bigbluebuttonbn\settings\validator::section_clienttype_shown()) {
2998
+    if ((boolean)\mod_bigbluebuttonbn\settings\validator::section_clienttype_shown()) {
2999 2999
         $renderer->render_group_header('clienttype');
3000 3000
         $renderer->render_group_element(
3001 3001
             'clienttype_editable',
3002 3002
             $renderer->render_group_element_checkbox('clienttype_editable', 0)
3003 3003
         );
3004 3004
         // Web Client default.
3005
-        $default = intval((int) \mod_bigbluebuttonbn\locallib\config::get('clienttype_default'));
3005
+        $default = intval((int)\mod_bigbluebuttonbn\locallib\config::get('clienttype_default'));
3006 3006
         $choices = array(BIGBLUEBUTTON_CLIENTTYPE_FLASH => get_string('mod_form_block_clienttype_flash', 'bigbluebuttonbn'),
3007 3007
             BIGBLUEBUTTON_CLIENTTYPE_HTML5 => get_string('mod_form_block_clienttype_html5', 'bigbluebuttonbn'));
3008 3008
         $renderer->render_group_element(
@@ -3025,7 +3025,7 @@  discard block
 block discarded – undo
3025 3025
  */
3026 3026
 function bigbluebuttonbn_settings_muteonstart(&$renderer) {
3027 3027
     // Configuration for BigBlueButton.
3028
-    if ((boolean) \mod_bigbluebuttonbn\settings\validator::section_muteonstart_shown()) {
3028
+    if ((boolean)\mod_bigbluebuttonbn\settings\validator::section_muteonstart_shown()) {
3029 3029
         $renderer->render_group_header('muteonstart');
3030 3030
         $renderer->render_group_element(
3031 3031
             'muteonstart_default',
@@ -3047,7 +3047,7 @@  discard block
 block discarded – undo
3047 3047
  */
3048 3048
 function bigbluebuttonbn_settings_extended(&$renderer) {
3049 3049
     // Configuration for 'notify users when recording ready' feature.
3050
-    if (!(boolean) \mod_bigbluebuttonbn\settings\validator::section_settings_extended_shown()) {
3050
+    if (!(boolean)\mod_bigbluebuttonbn\settings\validator::section_settings_extended_shown()) {
3051 3051
         return;
3052 3052
     }
3053 3053
     $renderer->render_group_header('extended_capabilities');
@@ -3075,7 +3075,7 @@  discard block
 block discarded – undo
3075 3075
     global $DB;
3076 3076
     do {
3077 3077
         $encodedseed = sha1(bigbluebuttonbn_random_password(12));
3078
-        $meetingid = (string) $DB->get_field('bigbluebuttonbn', 'meetingid', array('meetingid' => $encodedseed));
3078
+        $meetingid = (string)$DB->get_field('bigbluebuttonbn', 'meetingid', array('meetingid' => $encodedseed));
3079 3079
     } while ($meetingid == $encodedseed);
3080 3080
     return $encodedseed;
3081 3081
 }
@@ -3288,7 +3288,7 @@  discard block
 block discarded – undo
3288 3288
 function bigbluebuttonbn_instance_ownerid($bigbluebuttonbn) {
3289 3289
     global $DB;
3290 3290
     $filters = array('bigbluebuttonbnid' => $bigbluebuttonbn->id, 'log' => 'Add');
3291
-    $ownerid = (integer) $DB->get_field('bigbluebuttonbn_logs', 'userid', $filters);
3291
+    $ownerid = (integer)$DB->get_field('bigbluebuttonbn_logs', 'userid', $filters);
3292 3292
     return $ownerid;
3293 3293
 }
3294 3294
 
@@ -3331,8 +3331,8 @@  discard block
 block discarded – undo
3331 3331
     $bbbsession['meetingname'] = $bbbsession['bigbluebuttonbn']->name;
3332 3332
     $bbbsession['meetingdescription'] = $bbbsession['bigbluebuttonbn']->intro;
3333 3333
     // Extra data for setting up the Meeting.
3334
-    $bbbsession['userlimit'] = intval((int) \mod_bigbluebuttonbn\locallib\config::get('userlimit_default'));
3335
-    if ((boolean) \mod_bigbluebuttonbn\locallib\config::get('userlimit_editable')) {
3334
+    $bbbsession['userlimit'] = intval((int)\mod_bigbluebuttonbn\locallib\config::get('userlimit_default'));
3335
+    if ((boolean)\mod_bigbluebuttonbn\locallib\config::get('userlimit_editable')) {
3336 3336
         $bbbsession['userlimit'] = intval($bbbsession['bigbluebuttonbn']->userlimit);
3337 3337
     }
3338 3338
     $bbbsession['voicebridge'] = $bbbsession['bigbluebuttonbn']->voicebridge;
@@ -3482,7 +3482,7 @@  discard block
 block discarded – undo
3482 3482
         'bbb-recording-tags' => bigbluebuttonbn_get_tags($bbbsession['cm']->id), // Same as $id.
3483 3483
     ];
3484 3484
     // Special metadata for recording processing.
3485
-    if ((boolean) \mod_bigbluebuttonbn\locallib\config::get('recordingstatus_enabled')) {
3485
+    if ((boolean)\mod_bigbluebuttonbn\locallib\config::get('recordingstatus_enabled')) {
3486 3486
         $metadata["bn-recording-status"] = json_encode(
3487 3487
             array(
3488 3488
                 'email' => array('"' . fullname($USER) . '" <' . $USER->email . '>'),
@@ -3490,10 +3490,10 @@  discard block
 block discarded – undo
3490 3490
             )
3491 3491
         );
3492 3492
     }
3493
-    if ((boolean) \mod_bigbluebuttonbn\locallib\config::get('recordingready_enabled')) {
3493
+    if ((boolean)\mod_bigbluebuttonbn\locallib\config::get('recordingready_enabled')) {
3494 3494
         $metadata['bn-recording-ready-url'] = $bbbsession['recordingReadyURL'];
3495 3495
     }
3496
-    if ((boolean) \mod_bigbluebuttonbn\locallib\config::get('meetingevents_enabled')) {
3496
+    if ((boolean)\mod_bigbluebuttonbn\locallib\config::get('meetingevents_enabled')) {
3497 3497
         $metadata['analytics-callback-url'] = $bbbsession['meetingEventsURL'];
3498 3498
     }
3499 3499
     return $metadata;
Please login to merge, or discard this patch.
bbb_ajax.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -23,9 +23,9 @@  discard block
 block discarded – undo
23 23
  * @author    Jesus Federico  (jesus [at] blindsidenetworks [dt] com)
24 24
  */
25 25
 
26
-require(__DIR__.'/../../config.php');
27
-require_once(__DIR__.'/locallib.php');
28
-require_once(__DIR__.'/brokerlib.php');
26
+require(__DIR__ . '/../../config.php');
27
+require_once(__DIR__ . '/locallib.php');
28
+require_once(__DIR__ . '/brokerlib.php');
29 29
 
30 30
 global $PAGE, $USER, $CFG, $SESSION, $DB;
31 31
 
@@ -42,13 +42,13 @@  discard block
 block discarded – undo
42 42
 require_sesskey();
43 43
 
44 44
 if (empty($params['action'])) {
45
-    header('HTTP/1.0 400 Bad Request. Parameter ['.$params['action'].'] was not included');
45
+    header('HTTP/1.0 400 Bad Request. Parameter [' . $params['action'] . '] was not included');
46 46
     return;
47 47
 }
48 48
 
49 49
 $error = bigbluebuttonbn_broker_validate_parameters($params);
50 50
 if (!empty($error)) {
51
-    header('HTTP/1.0 400 Bad Request. '.$error);
51
+    header('HTTP/1.0 400 Bad Request. ' . $error);
52 52
     return;
53 53
 }
54 54
 
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
         echo $completionvalidate;
128 128
         return;
129 129
     }
130
-    header('HTTP/1.0 400 Bad request. The action '. $a . ' doesn\'t exist');
130
+    header('HTTP/1.0 400 Bad request. The action ' . $a . ' doesn\'t exist');
131 131
 } catch (Exception $e) {
132
-    header('HTTP/1.0 500 Internal Server Error. '.$e->getMessage());
132
+    header('HTTP/1.0 500 Internal Server Error. ' . $e->getMessage());
133 133
 }
Please login to merge, or discard this patch.
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.