Completed
Push — master ( 53f030...81b695 )
by Jesus
03:06 queued 11s
created
locallib.php 1 patch
Spacing   +78 added lines, -78 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 
33 33
 global $CFG;
34 34
 
35
-require_once(__DIR__ . '/lib.php');
35
+require_once(__DIR__.'/lib.php');
36 36
 
37 37
 /** @var BIGBLUEBUTTONBN_UPDATE_CACHE boolean set to true indicates that cache has to be updated */
38 38
 const BIGBLUEBUTTONBN_UPDATE_CACHE = true;
@@ -145,8 +145,8 @@  discard block
 block discarded – undo
145 145
     $data = null;
146 146
     if (!is_null($pname) && !is_null($purl)) {
147 147
         $method = 'POST';
148
-        $data = "<?xml version='1.0' encoding='UTF-8'?><modules><module name='presentation'><document url='" .
149
-            $purl . "' /></module></modules>";
148
+        $data = "<?xml version='1.0' encoding='UTF-8'?><modules><module name='presentation'><document url='".
149
+            $purl."' /></module></modules>";
150 150
     }
151 151
     $xml = bigbluebuttonbn_wrap_xml_load_file($createmeetingurl, $method, $data);
152 152
     if ($xml) {
@@ -406,7 +406,7 @@  discard block
 block discarded – undo
406 406
         if (is_object($value)) {
407 407
             $value = '';
408 408
         }
409
-        $metadataarray['meta_' . $key] = $value;
409
+        $metadataarray['meta_'.$key] = $value;
410 410
     }
411 411
     return $metadataarray;
412 412
 }
@@ -546,7 +546,7 @@  discard block
 block discarded – undo
546 546
             return $xml;
547 547
         } catch (Exception $e) {
548 548
             libxml_use_internal_errors($previous);
549
-            $error = 'Caught exception: ' . $e->getMessage();
549
+            $error = 'Caught exception: '.$e->getMessage();
550 550
             debugging($error, DEBUG_DEVELOPER);
551 551
             return null;
552 552
         }
@@ -557,7 +557,7 @@  discard block
 block discarded – undo
557 557
         $response = simplexml_load_file($url, 'SimpleXMLElement', LIBXML_NOCDATA | LIBXML_NOBLANKS);
558 558
         return $response;
559 559
     } catch (Exception $e) {
560
-        $error = 'Caught exception: ' . $e->getMessage();
560
+        $error = 'Caught exception: '.$e->getMessage();
561 561
         debugging($error, DEBUG_DEVELOPER);
562 562
         libxml_use_internal_errors($previous);
563 563
         return null;
@@ -583,8 +583,8 @@  discard block
 block discarded – undo
583 583
         }
584 584
         $options = array();
585 585
         $options['CURLOPT_HTTPHEADER'] = array(
586
-            'Content-Type: ' . $contenttype,
587
-            'Content-Length: ' . strlen($data),
586
+            'Content-Type: '.$contenttype,
587
+            'Content-Length: '.strlen($data),
588 588
             'Content-Language: en-US',
589 589
         );
590 590
 
@@ -605,7 +605,7 @@  discard block
 block discarded – undo
605 605
  * @return void
606 606
  */
607 607
 function bigbluebuttonbn_end_meeting_if_running($bigbluebuttonbn) {
608
-    $meetingid = $bigbluebuttonbn->meetingid . '-' . $bigbluebuttonbn->course . '-' . $bigbluebuttonbn->id;
608
+    $meetingid = $bigbluebuttonbn->meetingid.'-'.$bigbluebuttonbn->course.'-'.$bigbluebuttonbn->id;
609 609
     if (bigbluebuttonbn_is_meeting_running($meetingid)) {
610 610
         bigbluebuttonbn_end_meeting($meetingid, $bigbluebuttonbn->moderatorpass);
611 611
     }
@@ -625,9 +625,9 @@  discard block
 block discarded – undo
625 625
     if ($userroles) {
626 626
         $where = '';
627 627
         foreach ($userroles as $userrole) {
628
-            $where .= (empty($where) ? ' WHERE' : ' OR') . ' id=' . $userrole->roleid;
628
+            $where .= (empty($where) ? ' WHERE' : ' OR').' id='.$userrole->roleid;
629 629
         }
630
-        $userroles = $DB->get_records_sql('SELECT * FROM {role}' . $where);
630
+        $userroles = $DB->get_records_sql('SELECT * FROM {role}'.$where);
631 631
     }
632 632
     return $userroles;
633 633
 }
@@ -952,9 +952,9 @@  discard block
 block discarded – undo
952 952
     if ($voicebridge == 0) {
953 953
         return true;
954 954
     }
955
-    $select = 'voicebridge = ' . $voicebridge;
955
+    $select = 'voicebridge = '.$voicebridge;
956 956
     if ($instance != 0) {
957
-        $select .= ' AND id <>' . $instance;
957
+        $select .= ' AND id <>'.$instance;
958 958
     }
959 959
     if (!$DB->get_records_select('bigbluebuttonbn', $select)) {
960 960
         return true;
@@ -1090,7 +1090,7 @@  discard block
 block discarded – undo
1090 1090
 function bigbluebuttonbn_generate_nonce() {
1091 1091
     $mt = microtime();
1092 1092
     $rand = mt_rand();
1093
-    return md5($mt . $rand);
1093
+    return md5($mt.$rand);
1094 1094
 }
1095 1095
 
1096 1096
 /**
@@ -1138,7 +1138,7 @@  discard block
 block discarded – undo
1138 1138
         $params['other'] = $options['other'];
1139 1139
     }
1140 1140
     $event = call_user_func_array(
1141
-        '\mod_bigbluebuttonbn\event\\' . $type . '::create',
1141
+        '\mod_bigbluebuttonbn\event\\'.$type.'::create',
1142 1142
         array($params)
1143 1143
     );
1144 1144
     $event->add_record_snapshot('course_modules', $cm);
@@ -1296,7 +1296,7 @@  discard block
 block discarded – undo
1296 1296
  * @return object
1297 1297
  */
1298 1298
 function bigbluebuttonbn_set_config_xml($meetingid, $configxml) {
1299
-    $urldefaultconfig = \mod_bigbluebuttonbn\locallib\config::get('server_url') . 'api/setConfigXML?';
1299
+    $urldefaultconfig = \mod_bigbluebuttonbn\locallib\config::get('server_url').'api/setConfigXML?';
1300 1300
     $configxmlparams = bigbluebuttonbn_set_config_xml_params($meetingid, $configxml);
1301 1301
     $xml = bigbluebuttonbn_wrap_xml_load_file(
1302 1302
         $urldefaultconfig,
@@ -1316,9 +1316,9 @@  discard block
 block discarded – undo
1316 1316
  * @return string
1317 1317
  */
1318 1318
 function bigbluebuttonbn_set_config_xml_params($meetingid, $configxml) {
1319
-    $params = 'configXML=' . urlencode($configxml) . '&meetingID=' . urlencode($meetingid);
1319
+    $params = 'configXML='.urlencode($configxml).'&meetingID='.urlencode($meetingid);
1320 1320
     $sharedsecret = \mod_bigbluebuttonbn\locallib\config::get('shared_secret');
1321
-    $configxmlparams = $params . '&checksum=' . sha1('setConfigXML' . $params . $sharedsecret);
1321
+    $configxmlparams = $params.'&checksum='.sha1('setConfigXML'.$params.$sharedsecret);
1322 1322
     return $configxmlparams;
1323 1323
 }
1324 1324
 
@@ -1426,7 +1426,7 @@  discard block
 block discarded – undo
1426 1426
     global $USER;
1427 1427
     $starttime = $starttime - ($starttime % 1000);
1428 1428
     // Set formatted date.
1429
-    $dateformat = get_string('strftimerecentfull', 'langconfig') . ' %Z';
1429
+    $dateformat = get_string('strftimerecentfull', 'langconfig').' %Z';
1430 1430
     return userdate($starttime / 1000, $dateformat, usertimezone($USER->timezone));
1431 1431
 }
1432 1432
 
@@ -1474,11 +1474,11 @@  discard block
 block discarded – undo
1474 1474
         $actionbar .= bigbluebuttonbn_actionbar_render_button($recording, $buttonpayload);
1475 1475
     }
1476 1476
     $head = html_writer::start_tag('div', array(
1477
-        'id' => 'recording-actionbar-' . $recording['recordID'],
1477
+        'id' => 'recording-actionbar-'.$recording['recordID'],
1478 1478
         'data-recordingid' => $recording['recordID'],
1479 1479
         'data-meetingid' => $recording['meetingID']));
1480 1480
     $tail = html_writer::end_tag('div');
1481
-    return $head . $actionbar . $tail;
1481
+    return $head.$actionbar.$tail;
1482 1482
 }
1483 1483
 
1484 1484
 /**
@@ -1542,7 +1542,7 @@  discard block
 block discarded – undo
1542 1542
  * @return string
1543 1543
  */
1544 1544
 function bigbluebuttonbn_get_recording_data_row_preview($recording) {
1545
-    $options = array('id' => 'preview-' . $recording['recordID']);
1545
+    $options = array('id' => 'preview-'.$recording['recordID']);
1546 1546
     if ($recording['published'] === 'false') {
1547 1547
         $options['hidden'] = 'hidden';
1548 1548
     }
@@ -1574,7 +1574,7 @@  discard block
 block discarded – undo
1574 1574
         $recordingpreview .= html_writer::start_tag('div', array('class' => ''));
1575 1575
         $recordingpreview .= html_writer::empty_tag(
1576 1576
             'img',
1577
-            array('src' => trim($image['url']) . '?' . time(), 'class' => 'recording-thumbnail pull-left')
1577
+            array('src' => trim($image['url']).'?'.time(), 'class' => 'recording-thumbnail pull-left')
1578 1578
         );
1579 1579
         $recordingpreview .= html_writer::end_tag('div');
1580 1580
     }
@@ -1609,7 +1609,7 @@  discard block
 block discarded – undo
1609 1609
     if ($recording['published'] === 'false') {
1610 1610
         $visibility = 'hidden ';
1611 1611
     }
1612
-    $id = 'playbacks-' . $recording['recordID'];
1612
+    $id = 'playbacks-'.$recording['recordID'];
1613 1613
     $recordingtypes = html_writer::start_tag('div', array('id' => $id, 'data-imported' => $dataimported,
1614 1614
         'data-meetingid' => $recording['meetingID'], 'data-recordingid' => $recording['recordID'],
1615 1615
         'title' => $title, $visibility => $visibility));
@@ -1635,13 +1635,13 @@  discard block
 block discarded – undo
1635 1635
         return '';
1636 1636
     }
1637 1637
     $text = bigbluebuttonbn_get_recording_type_text($playback['type']);
1638
-    $href = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_view.php?action=play&bn=' . $bbbsession['bigbluebuttonbn']->id .
1639
-        '&mid=' . $recording['meetingID'] . '&rid=' . $recording['recordID'] . '&rtype=' . $playback['type'];
1638
+    $href = $CFG->wwwroot.'/mod/bigbluebuttonbn/bbb_view.php?action=play&bn='.$bbbsession['bigbluebuttonbn']->id.
1639
+        '&mid='.$recording['meetingID'].'&rid='.$recording['recordID'].'&rtype='.$playback['type'];
1640 1640
     if (!isset($recording['imported']) || !isset($recording['protected']) || $recording['protected'] === 'false') {
1641
-        $href .= '&href=' . urlencode(trim($playback['url']));
1641
+        $href .= '&href='.urlencode(trim($playback['url']));
1642 1642
     }
1643 1643
     $linkattributes = array(
1644
-        'id' => 'recording-play-' . $playback['type'] . '-' . $recording['recordID'],
1644
+        'id' => 'recording-play-'.$playback['type'].'-'.$recording['recordID'],
1645 1645
         'class' => 'btn btn-sm btn-default',
1646 1646
         'onclick' => 'M.mod_bigbluebuttonbn.recordings.recordingPlay(this);',
1647 1647
         'data-action' => 'play',
@@ -1653,7 +1653,7 @@  discard block
 block discarded – undo
1653 1653
         $linkattributes['title'] = get_string('view_recording_format_errror_unreachable', 'bigbluebuttonbn');
1654 1654
         unset($linkattributes['data-href']);
1655 1655
     }
1656
-    return $OUTPUT->action_link('#', $text, null, $linkattributes) . '&#32;';
1656
+    return $OUTPUT->action_link('#', $text, null, $linkattributes).'&#32;';
1657 1657
 }
1658 1658
 
1659 1659
 /**
@@ -1666,7 +1666,7 @@  discard block
 block discarded – undo
1666 1666
 function bigbluebuttonbn_get_recording_type_text($playbacktype) {
1667 1667
     // Check first if string exists, and if it does'nt just default to the capitalised version of the string.
1668 1668
     $text = ucwords($playbacktype);
1669
-    $typestringid = 'view_recording_format_' . $playbacktype;
1669
+    $typestringid = 'view_recording_format_'.$playbacktype;
1670 1670
     if (get_string_manager()->string_exists($typestringid, 'bigbluebuttonbn')) {
1671 1671
         $text = get_string($typestringid, 'bigbluebuttonbn');
1672 1672
     }
@@ -1696,7 +1696,7 @@  discard block
 block discarded – undo
1696 1696
     $validatedurls[$urlhost] = true;
1697 1697
     $curlinfo = bigbluebuttonbn_wrap_xml_load_file_curl_request($url, 'HEAD');
1698 1698
     if (!isset($curlinfo['http_code']) || $curlinfo['http_code'] != 200) {
1699
-        $error = "Resources hosted by " . $urlhost . " are unreachable. Server responded with code " . $curlinfo['http_code'];
1699
+        $error = "Resources hosted by ".$urlhost." are unreachable. Server responded with code ".$curlinfo['http_code'];
1700 1700
         debugging($error, DEBUG_DEVELOPER);
1701 1701
         $validatedurls[$urlhost] = false;
1702 1702
     }
@@ -1787,12 +1787,12 @@  discard block
 block discarded – undo
1787 1787
  * @return string
1788 1788
  */
1789 1789
 function bigbluebuttonbn_get_recording_data_row_text($recording, $text, $source, $data) {
1790
-    $htmltext = '<span>' . htmlentities($text) . '</span>';
1790
+    $htmltext = '<span>'.htmlentities($text).'</span>';
1791 1791
     if (empty($data)) {
1792 1792
         return $htmltext;
1793 1793
     }
1794
-    $target = $data['action'] . '-' . $data['target'];
1795
-    $id = 'recording-' . $target . '-' . $data['recordingid'];
1794
+    $target = $data['action'].'-'.$data['target'];
1795
+    $id = 'recording-'.$target.'-'.$data['recordingid'];
1796 1796
     $attributes = array('id' => $id, 'class' => 'quickeditlink col-md-20',
1797 1797
         'data-recordingid' => $data['recordingid'], 'data-meetingid' => $data['meetingid'],
1798 1798
         'data-target' => $data['target'], 'data-source' => $source);
@@ -1800,7 +1800,7 @@  discard block
 block discarded – undo
1800 1800
     $tail = html_writer::end_tag('div');
1801 1801
     $payload = array('action' => $data['action'], 'tag' => $data['tag'], 'target' => $data['target']);
1802 1802
     $htmllink = bigbluebuttonbn_actionbar_render_button($recording, $payload);
1803
-    return $head . $htmltext . $htmllink . $tail;
1803
+    return $head.$htmltext.$htmllink.$tail;
1804 1804
 }
1805 1805
 
1806 1806
 /**
@@ -1818,10 +1818,10 @@  discard block
 block discarded – undo
1818 1818
     }
1819 1819
     $target = $data['action'];
1820 1820
     if (isset($data['target'])) {
1821
-        $target .= '-' . $data['target'];
1821
+        $target .= '-'.$data['target'];
1822 1822
     }
1823
-    $id = 'recording-' . $target . '-' . $recording['recordID'];
1824
-    $onclick = 'M.mod_bigbluebuttonbn.recordings.recording' . ucfirst($data['action']) . '(this);';
1823
+    $id = 'recording-'.$target.'-'.$recording['recordID'];
1824
+    $onclick = 'M.mod_bigbluebuttonbn.recordings.recording'.ucfirst($data['action']).'(this);';
1825 1825
     if ((boolean) \mod_bigbluebuttonbn\locallib\config::get('recording_icons_enabled')) {
1826 1826
         // With icon for $manageaction.
1827 1827
         $iconattributes = array('id' => $id, 'class' => 'iconsmall');
@@ -1836,13 +1836,13 @@  discard block
 block discarded – undo
1836 1836
             );
1837 1837
         }
1838 1838
         if (isset($data['disabled'])) {
1839
-            $iconattributes['class'] .= ' fa-' . $data['disabled'];
1839
+            $iconattributes['class'] .= ' fa-'.$data['disabled'];
1840 1840
             $linkattributes['class'] = 'disabled';
1841 1841
             unset($linkattributes['onclick']);
1842 1842
         }
1843 1843
         $icon = new pix_icon(
1844
-            'i/' . $data['tag'],
1845
-            get_string('view_recording_list_actionbar_' . $data['action'], 'bigbluebuttonbn'),
1844
+            'i/'.$data['tag'],
1845
+            get_string('view_recording_list_actionbar_'.$data['action'], 'bigbluebuttonbn'),
1846 1846
             'moodle',
1847 1847
             $iconattributes
1848 1848
         );
@@ -1940,7 +1940,7 @@  discard block
 block discarded – undo
1940 1940
     if ($bbbsession['managerecordings']) {
1941 1941
         $table->head[] = get_string('view_recording_actionbar', 'bigbluebuttonbn');
1942 1942
         $table->align[] = 'left';
1943
-        $table->size[] = (count($tools) * 40) . 'px';
1943
+        $table->size[] = (count($tools) * 40).'px';
1944 1944
     }
1945 1945
     // Get the groups of the user.
1946 1946
     $usergroups = groups_get_all_groups($bbbsession['course']->id, $bbbsession['userID']);
@@ -2005,7 +2005,7 @@  discard block
 block discarded – undo
2005 2005
  */
2006 2006
 function bigbluebuttonbn_get_recording_table_row($bbbsession, $recording, $rowdata) {
2007 2007
     $row = new html_table_row();
2008
-    $row->id = 'recording-tr-' . $recording['recordID'];
2008
+    $row->id = 'recording-tr-'.$recording['recordID'];
2009 2009
     $row->attributes['data-imported'] = 'false';
2010 2010
     $texthead = '';
2011 2011
     $texttail = '';
@@ -2017,15 +2017,15 @@  discard block
 block discarded – undo
2017 2017
     }
2018 2018
     $rowdata->date_formatted = str_replace(' ', '&nbsp;', $rowdata->date_formatted);
2019 2019
     $row->cells = array();
2020
-    $row->cells[] = $texthead . $rowdata->recording . $texttail;
2021
-    $row->cells[] = $texthead . $rowdata->meeting . $texttail;
2020
+    $row->cells[] = $texthead.$rowdata->recording.$texttail;
2021
+    $row->cells[] = $texthead.$rowdata->meeting.$texttail;
2022 2022
 
2023
-    $row->cells[] = $texthead . $rowdata->activity . $texttail;
2024
-    $row->cells[] = $texthead . $rowdata->description . $texttail;
2023
+    $row->cells[] = $texthead.$rowdata->activity.$texttail;
2024
+    $row->cells[] = $texthead.$rowdata->description.$texttail;
2025 2025
     if (bigbluebuttonbn_get_recording_data_preview_enabled($bbbsession)) {
2026 2026
         $row->cells[] = $rowdata->preview;
2027 2027
     }
2028
-    $row->cells[] = $texthead . $rowdata->date_formatted . $texttail;
2028
+    $row->cells[] = $texthead.$rowdata->date_formatted.$texttail;
2029 2029
     $row->cells[] = $rowdata->duration_formatted;
2030 2030
     if ($bbbsession['managerecordings']) {
2031 2031
         $row->cells[] = $rowdata->actionbar;
@@ -2116,7 +2116,7 @@  discard block
 block discarded – undo
2116 2116
         // Enqueue it.
2117 2117
         \core\task\manager::queue_adhoc_task($task);
2118 2118
     } catch (Exception $e) {
2119
-        mtrace("Error while enqueuing completion_update_state task. " . (string) $e);
2119
+        mtrace("Error while enqueuing completion_update_state task. ".(string) $e);
2120 2120
     }
2121 2121
 }
2122 2122
 
@@ -2282,17 +2282,17 @@  discard block
 block discarded – undo
2282 2282
  * @return string containing the sql used for getting the target bigbluebuttonbn instances
2283 2283
  */
2284 2284
 function bigbluebuttonbn_get_recordings_deleted_sql_select($courseid = 0, $bigbluebuttonbnid = null, $subset = true) {
2285
-    $sql = "log = '" . BIGBLUEBUTTONBN_LOG_EVENT_DELETE . "' AND meta like '%has_recordings%' AND meta like '%true%'";
2285
+    $sql = "log = '".BIGBLUEBUTTONBN_LOG_EVENT_DELETE."' AND meta like '%has_recordings%' AND meta like '%true%'";
2286 2286
     if (empty($courseid)) {
2287 2287
         $courseid = 0;
2288 2288
     }
2289 2289
     if (empty($bigbluebuttonbnid)) {
2290
-        return $sql . " AND courseid = {$courseid}";
2290
+        return $sql." AND courseid = {$courseid}";
2291 2291
     }
2292 2292
     if ($subset) {
2293
-        return $sql . " AND bigbluebuttonbnid = '{$bigbluebuttonbnid}'";
2293
+        return $sql." AND bigbluebuttonbnid = '{$bigbluebuttonbnid}'";
2294 2294
     }
2295
-    return $sql . " AND courseid = {$courseid} AND bigbluebuttonbnid <> '{$bigbluebuttonbnid}'";
2295
+    return $sql." AND courseid = {$courseid} AND bigbluebuttonbnid <> '{$bigbluebuttonbnid}'";
2296 2296
 }
2297 2297
 
2298 2298
 /**
@@ -2306,17 +2306,17 @@  discard block
 block discarded – undo
2306 2306
  * @return string containing the sql used for getting the target bigbluebuttonbn instances
2307 2307
  */
2308 2308
 function bigbluebuttonbn_get_recordings_imported_sql_select($courseid = 0, $bigbluebuttonbnid = null, $subset = true) {
2309
-    $sql = "log = '" . BIGBLUEBUTTONBN_LOG_EVENT_IMPORT . "'";
2309
+    $sql = "log = '".BIGBLUEBUTTONBN_LOG_EVENT_IMPORT."'";
2310 2310
     if (empty($courseid)) {
2311 2311
         $courseid = 0;
2312 2312
     }
2313 2313
     if (empty($bigbluebuttonbnid)) {
2314
-        return $sql . " AND courseid = '{$courseid}'";
2314
+        return $sql." AND courseid = '{$courseid}'";
2315 2315
     }
2316 2316
     if ($subset) {
2317
-        return $sql . " AND bigbluebuttonbnid = '{$bigbluebuttonbnid}'";
2317
+        return $sql." AND bigbluebuttonbnid = '{$bigbluebuttonbnid}'";
2318 2318
     }
2319
-    return $sql . " AND courseid = '{$courseid}' AND bigbluebuttonbnid <> '{$bigbluebuttonbnid}'";
2319
+    return $sql." AND courseid = '{$courseid}' AND bigbluebuttonbnid <> '{$bigbluebuttonbnid}'";
2320 2320
 }
2321 2321
 
2322 2322
 /**
@@ -2375,7 +2375,7 @@  discard block
 block discarded – undo
2375 2375
     }
2376 2376
     // Prepare select for loading records based on existent bigbluebuttonbns.
2377 2377
     $sql = 'SELECT DISTINCT meetingid, bigbluebuttonbnid FROM {bigbluebuttonbn_logs} WHERE ';
2378
-    $sql .= '(bigbluebuttonbnid=' . implode(' OR bigbluebuttonbnid=', array_keys($bigbluebuttonbns)) . ')';
2378
+    $sql .= '(bigbluebuttonbnid='.implode(' OR bigbluebuttonbnid=', array_keys($bigbluebuttonbns)).')';
2379 2379
     // Include only Create events and exclude those with record not true.
2380 2380
     $sql .= ' AND log = ? AND meta LIKE ? AND meta LIKE ?';
2381 2381
     // Execute select for loading records based on existent bigbluebuttonbns.
@@ -2558,8 +2558,8 @@  discard block
 block discarded – undo
2558 2558
 function bigbluebuttonbn_format_activity_time($time) {
2559 2559
     $activitytime = '';
2560 2560
     if ($time) {
2561
-        $activitytime = calendar_day_representation($time) . ' ' .
2562
-        get_string('mod_form_field_notification_msg_at', 'bigbluebuttonbn') . ' ' .
2561
+        $activitytime = calendar_day_representation($time).' '.
2562
+        get_string('mod_form_field_notification_msg_at', 'bigbluebuttonbn').' '.
2563 2563
         calendar_time_representation($time);
2564 2564
     }
2565 2565
     return $activitytime;
@@ -3108,16 +3108,16 @@  discard block
 block discarded – undo
3108 3108
         return $output;
3109 3109
     }
3110 3110
     $output .= $OUTPUT->box_start(
3111
-        'box boxalignleft adminerror alert alert-' . $type . ' alert-block fade in',
3111
+        'box boxalignleft adminerror alert alert-'.$type.' alert-block fade in',
3112 3112
         'bigbluebuttonbn_view_general_warning'
3113
-    ) . "\n";
3114
-    $output .= '    ' . $message . "\n";
3115
-    $output .= '  <div class="singlebutton pull-right">' . "\n";
3113
+    )."\n";
3114
+    $output .= '    '.$message."\n";
3115
+    $output .= '  <div class="singlebutton pull-right">'."\n";
3116 3116
     if (!empty($href)) {
3117 3117
         $output .= bigbluebuttonbn_render_warning_button($href, $text, $class);
3118 3118
     }
3119
-    $output .= '  </div>' . "\n";
3120
-    $output .= $OUTPUT->box_end() . "\n";
3119
+    $output .= '  </div>'."\n";
3120
+    $output .= $OUTPUT->box_end()."\n";
3121 3121
     return $output;
3122 3122
 }
3123 3123
 
@@ -3141,11 +3141,11 @@  discard block
 block discarded – undo
3141 3141
     if ($class == '') {
3142 3142
         $class = 'btn btn-secondary';
3143 3143
     }
3144
-    $output = '  <form method="post" action="' . $href . '" class="form-inline">' . "\n";
3145
-    $output .= '      <button type="submit" class="' . $class . '"' . "\n";
3146
-    $output .= '          title="' . $title . '"' . "\n";
3147
-    $output .= '          >' . $text . '</button>' . "\n";
3148
-    $output .= '  </form>' . "\n";
3144
+    $output = '  <form method="post" action="'.$href.'" class="form-inline">'."\n";
3145
+    $output .= '      <button type="submit" class="'.$class.'"'."\n";
3146
+    $output .= '          title="'.$title.'"'."\n";
3147
+    $output .= '          >'.$text.'</button>'."\n";
3148
+    $output .= '  </form>'."\n";
3149 3149
     return $output;
3150 3150
 }
3151 3151
 
@@ -3209,7 +3209,7 @@  discard block
 block discarded – undo
3209 3209
 function bigbluebuttonbn_user_can_join_meeting($bigbluebuttonbn, $mid = null, $userid = null) {
3210 3210
     // By default, use a meetingid without groups.
3211 3211
     if (empty($mid)) {
3212
-        $mid = $bigbluebuttonbn->meetingid . '-' . $bigbluebuttonbn->course . '-' . $bigbluebuttonbn->id;
3212
+        $mid = $bigbluebuttonbn->meetingid.'-'.$bigbluebuttonbn->course.'-'.$bigbluebuttonbn->id;
3213 3213
     }
3214 3214
     // When meeting is running, all authorized users can join right in.
3215 3215
     if (bigbluebuttonbn_is_meeting_running($mid)) {
@@ -3278,7 +3278,7 @@  discard block
 block discarded – undo
3278 3278
  * @return boolean
3279 3279
  */
3280 3280
 function bigbluebuttonbn_has_html5_client() {
3281
-    $checkurl = \mod_bigbluebuttonbn\locallib\bigbluebutton::root() . "html5client/check";
3281
+    $checkurl = \mod_bigbluebuttonbn\locallib\bigbluebutton::root()."html5client/check";
3282 3282
     $curlinfo = bigbluebuttonbn_wrap_xml_load_file_curl_request($checkurl, 'HEAD');
3283 3283
     return (isset($curlinfo['http_code']) && $curlinfo['http_code'] == 200);
3284 3284
 }
@@ -3306,7 +3306,7 @@  discard block
 block discarded – undo
3306 3306
     $bbbsession['modPW'] = $bbbsession['bigbluebuttonbn']->moderatorpass;
3307 3307
     $bbbsession['viewerPW'] = $bbbsession['bigbluebuttonbn']->viewerpass;
3308 3308
     // Database info related to the activity.
3309
-    $bbbsession['meetingid'] = $bbbsession['bigbluebuttonbn']->meetingid . '-' . $bbbsession['course']->id . '-' .
3309
+    $bbbsession['meetingid'] = $bbbsession['bigbluebuttonbn']->meetingid.'-'.$bbbsession['course']->id.'-'.
3310 3310
     $bbbsession['bigbluebuttonbn']->id;
3311 3311
     $bbbsession['meetingname'] = $bbbsession['bigbluebuttonbn']->name;
3312 3312
     $bbbsession['meetingdescription'] = $bbbsession['bigbluebuttonbn']->intro;
@@ -3338,12 +3338,12 @@  discard block
 block discarded – undo
3338 3338
     if ($bbbsession['bigbluebuttonbn']->record) {
3339 3339
         // Check if is enable record all from start.
3340 3340
         if ($bbbsession['recordallfromstart']) {
3341
-            $bbbsession['welcome'] .= '<br><br>' . get_string(
3341
+            $bbbsession['welcome'] .= '<br><br>'.get_string(
3342 3342
                 'bbbrecordallfromstartwarning',
3343 3343
                 'bigbluebuttonbn'
3344 3344
             );
3345 3345
         } else {
3346
-            $bbbsession['welcome'] .= '<br><br>' . get_string('bbbrecordwarning', 'bigbluebuttonbn');
3346
+            $bbbsession['welcome'] .= '<br><br>'.get_string('bbbrecordwarning', 'bigbluebuttonbn');
3347 3347
         }
3348 3348
     }
3349 3349
     $bbbsession['openingtime'] = $bbbsession['bigbluebuttonbn']->openingtime;
@@ -3358,7 +3358,7 @@  discard block
 block discarded – undo
3358 3358
     $bbbsession['originServerName'] = $parsedurl['host'];
3359 3359
     $bbbsession['originServerUrl'] = $CFG->wwwroot;
3360 3360
     $bbbsession['originServerCommonName'] = '';
3361
-    $bbbsession['originTag'] = 'moodle-mod_bigbluebuttonbn (' . get_config('mod_bigbluebuttonbn', 'version') . ')';
3361
+    $bbbsession['originTag'] = 'moodle-mod_bigbluebuttonbn ('.get_config('mod_bigbluebuttonbn', 'version').')';
3362 3362
     $bbbsession['bnserver'] = bigbluebuttonbn_is_bn_server();
3363 3363
     // Setting for clienttype, assign flash if not enabled, or default if not editable.
3364 3364
     $bbbsession['clienttype'] = BIGBLUEBUTTON_CLIENTTYPE_FLASH;
@@ -3465,7 +3465,7 @@  discard block
 block discarded – undo
3465 3465
     if ((boolean) \mod_bigbluebuttonbn\locallib\config::get('recordingstatus_enabled')) {
3466 3466
         $metadata["bn-recording-status"] = json_encode(
3467 3467
             array(
3468
-                'email' => array('"' . fullname($USER) . '" <' . $USER->email . '>'),
3468
+                'email' => array('"'.fullname($USER).'" <'.$USER->email.'>'),
3469 3469
                 'context' => $bbbsession['bigbluebuttonbnURL'],
3470 3470
             )
3471 3471
         );
Please login to merge, or discard this patch.