@@ -145,8 +145,8 @@ discard block |
||
145 | 145 | $payload = null; |
146 | 146 | if (!is_null($pname) && !is_null($purl)) { |
147 | 147 | $method = 'POST'; |
148 | - $payload = "<?xml version='1.0' encoding='UTF-8'?><modules><module name='presentation'><document url='". |
|
149 | - $purl."' /></module></modules>"; |
|
148 | + $payload = "<?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, $payload); |
152 | 152 | if ($xml) { |
@@ -190,7 +190,7 @@ discard block |
||
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'); |
@@ -283,7 +283,7 @@ discard block |
||
283 | 283 | foreach ($recordingxml->breakoutRooms->breakoutRoom as $breakoutroom) { |
284 | 284 | $url = \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url( |
285 | 285 | 'getRecordings', |
286 | - ['recordID' => implode(',', (array) $breakoutroom)] |
|
286 | + ['recordID' => implode(',', (array)$breakoutroom)] |
|
287 | 287 | ); |
288 | 288 | $xml = bigbluebuttonbn_wrap_xml_load_file($url); |
289 | 289 | if ($xml && $xml->returncode == 'SUCCESS' && isset($xml->recordings)) { |
@@ -339,7 +339,7 @@ discard block |
||
339 | 339 | // Override imported flag with actual ID. |
340 | 340 | $recording['imported'] = $recordimported->id; |
341 | 341 | if (isset($recordimported->protected)) { |
342 | - $recording['protected'] = (string) $recordimported->protected; |
|
342 | + $recording['protected'] = (string)$recordimported->protected; |
|
343 | 343 | } |
344 | 344 | $recordsimportedarray[$recording['recordID']] = $recording; |
345 | 345 | } |
@@ -369,21 +369,21 @@ discard block |
||
369 | 369 | // Add formats. |
370 | 370 | $playbackarray = array(); |
371 | 371 | foreach ($recording->playback->format as $format) { |
372 | - $playbackarray[(string) $format->type] = array('type' => (string) $format->type, |
|
373 | - 'url' => trim((string) $format->url), 'length' => (string) $format->length); |
|
372 | + $playbackarray[(string)$format->type] = array('type' => (string)$format->type, |
|
373 | + 'url' => trim((string)$format->url), 'length' => (string)$format->length); |
|
374 | 374 | // Add preview per format when existing. |
375 | 375 | if ($format->preview) { |
376 | - $playbackarray[(string) $format->type]['preview'] = bigbluebuttonbn_get_recording_preview_images($format->preview); |
|
376 | + $playbackarray[(string)$format->type]['preview'] = bigbluebuttonbn_get_recording_preview_images($format->preview); |
|
377 | 377 | } |
378 | 378 | } |
379 | 379 | // Add the metadata to the recordings array. |
380 | 380 | $metadataarray = bigbluebuttonbn_get_recording_array_meta(get_object_vars($recording->metadata)); |
381 | - $recordingarray = array('recordID' => (string) $recording->recordID, |
|
382 | - 'meetingID' => (string) $recording->meetingID, 'meetingName' => (string) $recording->name, |
|
383 | - 'published' => (string) $recording->published, 'startTime' => (string) $recording->startTime, |
|
384 | - 'endTime' => (string) $recording->endTime, 'playbacks' => $playbackarray); |
|
381 | + $recordingarray = array('recordID' => (string)$recording->recordID, |
|
382 | + 'meetingID' => (string)$recording->meetingID, 'meetingName' => (string)$recording->name, |
|
383 | + 'published' => (string)$recording->published, 'startTime' => (string)$recording->startTime, |
|
384 | + 'endTime' => (string)$recording->endTime, 'playbacks' => $playbackarray); |
|
385 | 385 | if (isset($recording->protected)) { |
386 | - $recordingarray['protected'] = (string) $recording->protected; |
|
386 | + $recordingarray['protected'] = (string)$recording->protected; |
|
387 | 387 | } |
388 | 388 | return $recordingarray + $metadataarray; |
389 | 389 | } |
@@ -398,9 +398,9 @@ discard block |
||
398 | 398 | function bigbluebuttonbn_get_recording_preview_images($preview) { |
399 | 399 | $imagesarray = array(); |
400 | 400 | foreach ($preview->images->image as $image) { |
401 | - $imagearray = array('url' => trim((string) $image)); |
|
401 | + $imagearray = array('url' => trim((string)$image)); |
|
402 | 402 | foreach ($image->attributes() as $attkey => $attvalue) { |
403 | - $imagearray[$attkey] = (string) $attvalue; |
|
403 | + $imagearray[$attkey] = (string)$attvalue; |
|
404 | 404 | } |
405 | 405 | array_push($imagesarray, $imagearray); |
406 | 406 | } |
@@ -495,7 +495,7 @@ discard block |
||
495 | 495 | $ids = explode(',', $recordids); |
496 | 496 | foreach ($ids as $id) { |
497 | 497 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
498 | - \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('updateRecordings', ['recordID' => $id] + (array) $params) |
|
498 | + \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('updateRecordings', ['recordID' => $id] + (array)$params) |
|
499 | 499 | ); |
500 | 500 | if ($xml && $xml->returncode != 'SUCCESS') { |
501 | 501 | return false; |
@@ -666,7 +666,7 @@ discard block |
||
666 | 666 | * @return array $users |
667 | 667 | */ |
668 | 668 | function bigbluebuttonbn_get_users(context $context = null) { |
669 | - $users = (array) get_enrolled_users($context, '', 0, 'u.*', null, 0, 0, true); |
|
669 | + $users = (array)get_enrolled_users($context, '', 0, 'u.*', null, 0, 0, true); |
|
670 | 670 | foreach ($users as $key => $value) { |
671 | 671 | $users[$key] = fullname($value); |
672 | 672 | } |
@@ -685,7 +685,7 @@ discard block |
||
685 | 685 | function bigbluebuttonbn_get_users_select(context_course $context, $bbactivity = null) { |
686 | 686 | // CONTRIB-7972, check the group of current user and course group mode. |
687 | 687 | $groups = null; |
688 | - $users = (array) get_enrolled_users($context, '', 0, 'u.*', null, 0, 0, true); |
|
688 | + $users = (array)get_enrolled_users($context, '', 0, 'u.*', null, 0, 0, true); |
|
689 | 689 | $course = get_course($context->instanceid); |
690 | 690 | $groupmode = groups_get_course_groupmode($course); |
691 | 691 | if ($bbactivity) { |
@@ -698,7 +698,7 @@ discard block |
||
698 | 698 | $groups = groups_get_all_groups($course->id, $USER->id); |
699 | 699 | $users = []; |
700 | 700 | foreach ($groups as $g) { |
701 | - $users += (array) get_enrolled_users($context, '', $g->id, 'u.*', null, 0, 0, true); |
|
701 | + $users += (array)get_enrolled_users($context, '', $g->id, 'u.*', null, 0, 0, true); |
|
702 | 702 | } |
703 | 703 | } |
704 | 704 | $userselect = array_map( |
@@ -724,12 +724,12 @@ discard block |
||
724 | 724 | global $CFG; |
725 | 725 | |
726 | 726 | if ($onlyviewableroles == true && $CFG->branch >= 35) { |
727 | - $roles = (array) get_viewable_roles($context); |
|
727 | + $roles = (array)get_viewable_roles($context); |
|
728 | 728 | foreach ($roles as $key => $value) { |
729 | 729 | $roles[$key] = $value; |
730 | 730 | } |
731 | 731 | } else { |
732 | - $roles = (array) role_get_names($context); |
|
732 | + $roles = (array)role_get_names($context); |
|
733 | 733 | foreach ($roles as $key => $value) { |
734 | 734 | $roles[$key] = $value->localname; |
735 | 735 | } |
@@ -750,12 +750,12 @@ discard block |
||
750 | 750 | global $CFG; |
751 | 751 | |
752 | 752 | if ($onlyviewableroles == true && $CFG->branch >= 35) { |
753 | - $roles = (array) get_viewable_roles($context); |
|
753 | + $roles = (array)get_viewable_roles($context); |
|
754 | 754 | foreach ($roles as $key => $value) { |
755 | 755 | $roles[$key] = array('id' => $key, 'name' => $value); |
756 | 756 | } |
757 | 757 | } else { |
758 | - $roles = (array) role_get_names($context); |
|
758 | + $roles = (array)role_get_names($context); |
|
759 | 759 | foreach ($roles as $key => $value) { |
760 | 760 | $roles[$key] = array('id' => $value->id, 'name' => $value->localname); |
761 | 761 | } |
@@ -774,9 +774,9 @@ discard block |
||
774 | 774 | * @return object $role |
775 | 775 | */ |
776 | 776 | function bigbluebuttonbn_get_role($id) { |
777 | - $roles = (array) role_get_names(); |
|
777 | + $roles = (array)role_get_names(); |
|
778 | 778 | if (is_numeric($id) && isset($roles[$id])) { |
779 | - return (object) $roles[$id]; |
|
779 | + return (object)$roles[$id]; |
|
780 | 780 | } |
781 | 781 | foreach ($roles as $role) { |
782 | 782 | if ($role->shortname == $id) { |
@@ -856,7 +856,7 @@ discard block |
||
856 | 856 | if (!empty($ownerid) && is_enrolled($context, $ownerid)) { |
857 | 857 | $participantlist[] = array( |
858 | 858 | 'selectiontype' => 'user', |
859 | - 'selectionid' => (string) $ownerid, |
|
859 | + 'selectionid' => (string)$ownerid, |
|
860 | 860 | 'role' => BIGBLUEBUTTONBN_ROLE_MODERATOR); |
861 | 861 | } |
862 | 862 | continue; |
@@ -1038,7 +1038,7 @@ discard block |
||
1038 | 1038 | $now = time(); |
1039 | 1039 | if ($closingtime > 0 && $now < $closingtime) { |
1040 | 1040 | $duration = ceil(($closingtime - $now) / 60); |
1041 | - $compensationtime = intval((int) \mod_bigbluebuttonbn\locallib\config::get('scheduled_duration_compensation')); |
|
1041 | + $compensationtime = intval((int)\mod_bigbluebuttonbn\locallib\config::get('scheduled_duration_compensation')); |
|
1042 | 1042 | $duration = intval($duration) + $compensationtime; |
1043 | 1043 | } |
1044 | 1044 | return $duration; |
@@ -1240,16 +1240,16 @@ discard block |
||
1240 | 1240 | * @return array |
1241 | 1241 | */ |
1242 | 1242 | function bigbluebuttonbn_get_meeting_info($meetingid, $updatecache = false) { |
1243 | - $cachettl = (int) \mod_bigbluebuttonbn\locallib\config::get('waitformoderator_cache_ttl'); |
|
1243 | + $cachettl = (int)\mod_bigbluebuttonbn\locallib\config::get('waitformoderator_cache_ttl'); |
|
1244 | 1244 | $cache = cache::make_from_params(cache_store::MODE_APPLICATION, 'mod_bigbluebuttonbn', 'meetings_cache'); |
1245 | 1245 | $result = $cache->get($meetingid); |
1246 | 1246 | $now = time(); |
1247 | 1247 | if (!$updatecache && !empty($result) && $now < ($result['creation_time'] + $cachettl)) { |
1248 | 1248 | // Use the value in the cache. |
1249 | - return (array) json_decode($result['meeting_info']); |
|
1249 | + return (array)json_decode($result['meeting_info']); |
|
1250 | 1250 | } |
1251 | 1251 | // Ping again and refresh the cache. |
1252 | - $meetinginfo = (array) bigbluebuttonbn_wrap_xml_load_file( |
|
1252 | + $meetinginfo = (array)bigbluebuttonbn_wrap_xml_load_file( |
|
1253 | 1253 | \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getMeetingInfo', ['meetingID' => $meetingid]) |
1254 | 1254 | ); |
1255 | 1255 | $cache->set($meetingid, array('creation_time' => time(), 'meeting_info' => json_encode($meetinginfo))); |
@@ -1396,7 +1396,7 @@ discard block |
||
1396 | 1396 | */ |
1397 | 1397 | function bigbluebuttonbn_set_config_xml_array($meetingid, $configxml) { |
1398 | 1398 | $configxml = bigbluebuttonbn_set_config_xml($meetingid, $configxml); |
1399 | - $configxmlarray = (array) $configxml; |
|
1399 | + $configxmlarray = (array)$configxml; |
|
1400 | 1400 | if ($configxmlarray['returncode'] != 'SUCCESS') { |
1401 | 1401 | debugging('BigBlueButton was not able to set the custom config.xml file', DEBUG_DEVELOPER); |
1402 | 1402 | return ''; |
@@ -1449,7 +1449,7 @@ discard block |
||
1449 | 1449 | * @return boolean |
1450 | 1450 | */ |
1451 | 1451 | function bigbluebuttonbn_get_recording_data_row_editable($bbbsession) { |
1452 | - return ($bbbsession['managerecordings'] && ((double) $bbbsession['serverversion'] >= 1.0 || $bbbsession['bnserver'])); |
|
1452 | + return ($bbbsession['managerecordings'] && ((double)$bbbsession['serverversion'] >= 1.0 || $bbbsession['bnserver'])); |
|
1453 | 1453 | } |
1454 | 1454 | |
1455 | 1455 | /** |
@@ -1460,7 +1460,7 @@ discard block |
||
1460 | 1460 | * @return boolean |
1461 | 1461 | */ |
1462 | 1462 | function bigbluebuttonbn_get_recording_data_preview_enabled($bbbsession) { |
1463 | - return ((double) $bbbsession['serverversion'] >= 1.0 && $bbbsession['bigbluebuttonbn']->recordings_preview == '1'); |
|
1463 | + return ((double)$bbbsession['serverversion'] >= 1.0 && $bbbsession['bigbluebuttonbn']->recordings_preview == '1'); |
|
1464 | 1464 | } |
1465 | 1465 | |
1466 | 1466 | /** |
@@ -1886,7 +1886,7 @@ discard block |
||
1886 | 1886 | } |
1887 | 1887 | $id = 'recording-' . $target . '-' . $recording['recordID']; |
1888 | 1888 | $onclick = 'M.mod_bigbluebuttonbn.recordings.recording' . ucfirst($data['action']) . '(this); return false;'; |
1889 | - if ((boolean) \mod_bigbluebuttonbn\locallib\config::get('recording_icons_enabled')) { |
|
1889 | + if ((boolean)\mod_bigbluebuttonbn\locallib\config::get('recording_icons_enabled')) { |
|
1890 | 1890 | // With icon for $manageaction. |
1891 | 1891 | $iconattributes = array('id' => $id, 'class' => 'iconsmall'); |
1892 | 1892 | $linkattributes = array( |
@@ -2149,7 +2149,7 @@ discard block |
||
2149 | 2149 | // Enqueue it. |
2150 | 2150 | \core\task\manager::queue_adhoc_task($task); |
2151 | 2151 | } catch (Exception $e) { |
2152 | - mtrace("Error while enqueuing completion_update_state task. " . (string) $e); |
|
2152 | + mtrace("Error while enqueuing completion_update_state task. " . (string)$e); |
|
2153 | 2153 | } |
2154 | 2154 | } |
2155 | 2155 | |
@@ -2163,7 +2163,7 @@ discard block |
||
2163 | 2163 | */ |
2164 | 2164 | function bigbluebuttonbn_completion_update_state($bigbluebuttonbn, $userid) { |
2165 | 2165 | global $CFG; |
2166 | - require_once($CFG->libdir.'/completionlib.php'); |
|
2166 | + require_once($CFG->libdir . '/completionlib.php'); |
|
2167 | 2167 | list($course, $cm) = get_course_and_cm_from_instance($bigbluebuttonbn, 'bigbluebuttonbn'); |
2168 | 2168 | $completion = new completion_info($course); |
2169 | 2169 | if (!$completion->is_enabled($cm)) { |
@@ -2588,7 +2588,7 @@ discard block |
||
2588 | 2588 | */ |
2589 | 2589 | function bigbluebuttonbn_format_activity_time($time) { |
2590 | 2590 | global $CFG; |
2591 | - require_once($CFG->dirroot.'/calendar/lib.php'); |
|
2591 | + require_once($CFG->dirroot . '/calendar/lib.php'); |
|
2592 | 2592 | $activitytime = ''; |
2593 | 2593 | if ($time) { |
2594 | 2594 | $activitytime = calendar_day_representation($time) . ' ' . |
@@ -2686,7 +2686,7 @@ discard block |
||
2686 | 2686 | */ |
2687 | 2687 | function bigbluebuttonbn_settings_general(&$renderer) { |
2688 | 2688 | // Configuration for BigBlueButton. |
2689 | - if ((boolean) \mod_bigbluebuttonbn\settings\validator::section_general_shown()) { |
|
2689 | + if ((boolean)\mod_bigbluebuttonbn\settings\validator::section_general_shown()) { |
|
2690 | 2690 | $renderer->render_group_header('general'); |
2691 | 2691 | $renderer->render_group_element( |
2692 | 2692 | 'server_url', |
@@ -2708,7 +2708,7 @@ discard block |
||
2708 | 2708 | */ |
2709 | 2709 | function bigbluebuttonbn_settings_record(&$renderer) { |
2710 | 2710 | // Configuration for 'recording' feature. |
2711 | - if ((boolean) \mod_bigbluebuttonbn\settings\validator::section_record_meeting_shown()) { |
|
2711 | + if ((boolean)\mod_bigbluebuttonbn\settings\validator::section_record_meeting_shown()) { |
|
2712 | 2712 | $renderer->render_group_header('recording'); |
2713 | 2713 | $renderer->render_group_element( |
2714 | 2714 | 'recording_default', |
@@ -2752,7 +2752,7 @@ discard block |
||
2752 | 2752 | */ |
2753 | 2753 | function bigbluebuttonbn_settings_importrecordings(&$renderer) { |
2754 | 2754 | // Configuration for 'import recordings' feature. |
2755 | - if ((boolean) \mod_bigbluebuttonbn\settings\validator::section_import_recordings_shown()) { |
|
2755 | + if ((boolean)\mod_bigbluebuttonbn\settings\validator::section_import_recordings_shown()) { |
|
2756 | 2756 | $renderer->render_group_header('importrecordings'); |
2757 | 2757 | $renderer->render_group_element( |
2758 | 2758 | 'importrecordings_enabled', |
@@ -2774,7 +2774,7 @@ discard block |
||
2774 | 2774 | */ |
2775 | 2775 | function bigbluebuttonbn_settings_showrecordings(&$renderer) { |
2776 | 2776 | // Configuration for 'show recordings' feature. |
2777 | - if ((boolean) \mod_bigbluebuttonbn\settings\validator::section_show_recordings_shown()) { |
|
2777 | + if ((boolean)\mod_bigbluebuttonbn\settings\validator::section_show_recordings_shown()) { |
|
2778 | 2778 | $renderer->render_group_header('recordings'); |
2779 | 2779 | $renderer->render_group_element( |
2780 | 2780 | 'recordings_html_default', |
@@ -2828,7 +2828,7 @@ discard block |
||
2828 | 2828 | */ |
2829 | 2829 | function bigbluebuttonbn_settings_waitmoderator(&$renderer) { |
2830 | 2830 | // Configuration for wait for moderator feature. |
2831 | - if ((boolean) \mod_bigbluebuttonbn\settings\validator::section_wait_moderator_shown()) { |
|
2831 | + if ((boolean)\mod_bigbluebuttonbn\settings\validator::section_wait_moderator_shown()) { |
|
2832 | 2832 | $renderer->render_group_header('waitformoderator'); |
2833 | 2833 | $renderer->render_group_element( |
2834 | 2834 | 'waitformoderator_default', |
@@ -2858,7 +2858,7 @@ discard block |
||
2858 | 2858 | */ |
2859 | 2859 | function bigbluebuttonbn_settings_voicebridge(&$renderer) { |
2860 | 2860 | // Configuration for "static voice bridge" feature. |
2861 | - if ((boolean) \mod_bigbluebuttonbn\settings\validator::section_static_voice_bridge_shown()) { |
|
2861 | + if ((boolean)\mod_bigbluebuttonbn\settings\validator::section_static_voice_bridge_shown()) { |
|
2862 | 2862 | $renderer->render_group_header('voicebridge'); |
2863 | 2863 | $renderer->render_group_element( |
2864 | 2864 | 'voicebridge_editable', |
@@ -2876,7 +2876,7 @@ discard block |
||
2876 | 2876 | */ |
2877 | 2877 | function bigbluebuttonbn_settings_preupload(&$renderer) { |
2878 | 2878 | // Configuration for "preupload presentation" feature. |
2879 | - if ((boolean) \mod_bigbluebuttonbn\settings\validator::section_preupload_presentation_shown()) { |
|
2879 | + if ((boolean)\mod_bigbluebuttonbn\settings\validator::section_preupload_presentation_shown()) { |
|
2880 | 2880 | // This feature only works if curl is installed. |
2881 | 2881 | $preuploaddescripion = get_string('config_preuploadpresentation_description', 'bigbluebuttonbn'); |
2882 | 2882 | if (!extension_loaded('curl')) { |
@@ -2904,7 +2904,7 @@ discard block |
||
2904 | 2904 | */ |
2905 | 2905 | function bigbluebuttonbn_settings_preupload_manage_default_file(&$renderer) { |
2906 | 2906 | // Configuration for "preupload presentation" feature. |
2907 | - if ((boolean) \mod_bigbluebuttonbn\settings\validator::section_preupload_presentation_shown()) { |
|
2907 | + if ((boolean)\mod_bigbluebuttonbn\settings\validator::section_preupload_presentation_shown()) { |
|
2908 | 2908 | if (extension_loaded('curl')) { |
2909 | 2909 | // This feature only works if curl is installed. |
2910 | 2910 | $renderer->render_filemanager_default_file_presentation("presentation_default"); |
@@ -2921,7 +2921,7 @@ discard block |
||
2921 | 2921 | */ |
2922 | 2922 | function bigbluebuttonbn_settings_userlimit(&$renderer) { |
2923 | 2923 | // Configuration for "user limit" feature. |
2924 | - if ((boolean) \mod_bigbluebuttonbn\settings\validator::section_user_limit_shown()) { |
|
2924 | + if ((boolean)\mod_bigbluebuttonbn\settings\validator::section_user_limit_shown()) { |
|
2925 | 2925 | $renderer->render_group_header('userlimit'); |
2926 | 2926 | $renderer->render_group_element( |
2927 | 2927 | 'userlimit_default', |
@@ -2943,7 +2943,7 @@ discard block |
||
2943 | 2943 | */ |
2944 | 2944 | function bigbluebuttonbn_settings_duration(&$renderer) { |
2945 | 2945 | // Configuration for "scheduled duration" feature. |
2946 | - if ((boolean) \mod_bigbluebuttonbn\settings\validator::section_scheduled_duration_shown()) { |
|
2946 | + if ((boolean)\mod_bigbluebuttonbn\settings\validator::section_scheduled_duration_shown()) { |
|
2947 | 2947 | $renderer->render_group_header('scheduled'); |
2948 | 2948 | $renderer->render_group_element( |
2949 | 2949 | 'scheduled_duration_enabled', |
@@ -2969,7 +2969,7 @@ discard block |
||
2969 | 2969 | */ |
2970 | 2970 | function bigbluebuttonbn_settings_participants(&$renderer) { |
2971 | 2971 | // Configuration for defining the default role/user that will be moderator on new activities. |
2972 | - if ((boolean) \mod_bigbluebuttonbn\settings\validator::section_moderator_default_shown()) { |
|
2972 | + if ((boolean)\mod_bigbluebuttonbn\settings\validator::section_moderator_default_shown()) { |
|
2973 | 2973 | $renderer->render_group_header('participant'); |
2974 | 2974 | // UI for 'participants' feature. |
2975 | 2975 | $roles = bigbluebuttonbn_get_roles(null, false); |
@@ -2994,7 +2994,7 @@ discard block |
||
2994 | 2994 | */ |
2995 | 2995 | function bigbluebuttonbn_settings_notifications(&$renderer) { |
2996 | 2996 | // Configuration for "send notifications" feature. |
2997 | - if ((boolean) \mod_bigbluebuttonbn\settings\validator::section_send_notifications_shown()) { |
|
2997 | + if ((boolean)\mod_bigbluebuttonbn\settings\validator::section_send_notifications_shown()) { |
|
2998 | 2998 | $renderer->render_group_header('sendnotifications'); |
2999 | 2999 | $renderer->render_group_element( |
3000 | 3000 | 'sendnotifications_enabled', |
@@ -3012,14 +3012,14 @@ discard block |
||
3012 | 3012 | */ |
3013 | 3013 | function bigbluebuttonbn_settings_clienttype(&$renderer) { |
3014 | 3014 | // Configuration for "clienttype" feature. |
3015 | - if ((boolean) \mod_bigbluebuttonbn\settings\validator::section_clienttype_shown()) { |
|
3015 | + if ((boolean)\mod_bigbluebuttonbn\settings\validator::section_clienttype_shown()) { |
|
3016 | 3016 | $renderer->render_group_header('clienttype'); |
3017 | 3017 | $renderer->render_group_element( |
3018 | 3018 | 'clienttype_editable', |
3019 | 3019 | $renderer->render_group_element_checkbox('clienttype_editable', 0) |
3020 | 3020 | ); |
3021 | 3021 | // Web Client default. |
3022 | - $default = intval((int) \mod_bigbluebuttonbn\locallib\config::get('clienttype_default')); |
|
3022 | + $default = intval((int)\mod_bigbluebuttonbn\locallib\config::get('clienttype_default')); |
|
3023 | 3023 | $choices = array(BIGBLUEBUTTON_CLIENTTYPE_FLASH => get_string('mod_form_block_clienttype_flash', 'bigbluebuttonbn'), |
3024 | 3024 | BIGBLUEBUTTON_CLIENTTYPE_HTML5 => get_string('mod_form_block_clienttype_html5', 'bigbluebuttonbn')); |
3025 | 3025 | $renderer->render_group_element( |
@@ -3042,7 +3042,7 @@ discard block |
||
3042 | 3042 | */ |
3043 | 3043 | function bigbluebuttonbn_settings_muteonstart(&$renderer) { |
3044 | 3044 | // Configuration for BigBlueButton. |
3045 | - if ((boolean) \mod_bigbluebuttonbn\settings\validator::section_muteonstart_shown()) { |
|
3045 | + if ((boolean)\mod_bigbluebuttonbn\settings\validator::section_muteonstart_shown()) { |
|
3046 | 3046 | $renderer->render_group_header('muteonstart'); |
3047 | 3047 | $renderer->render_group_element( |
3048 | 3048 | 'muteonstart_default', |
@@ -3064,7 +3064,7 @@ discard block |
||
3064 | 3064 | */ |
3065 | 3065 | function bigbluebuttonbn_settings_extended(&$renderer) { |
3066 | 3066 | // Configuration for 'notify users when recording ready' feature. |
3067 | - if (!(boolean) \mod_bigbluebuttonbn\settings\validator::section_settings_extended_shown()) { |
|
3067 | + if (!(boolean)\mod_bigbluebuttonbn\settings\validator::section_settings_extended_shown()) { |
|
3068 | 3068 | return; |
3069 | 3069 | } |
3070 | 3070 | $renderer->render_group_header('extended_capabilities'); |
@@ -3090,7 +3090,7 @@ discard block |
||
3090 | 3090 | global $DB; |
3091 | 3091 | do { |
3092 | 3092 | $encodedseed = sha1(bigbluebuttonbn_random_password(12)); |
3093 | - $meetingid = (string) $DB->get_field('bigbluebuttonbn', 'meetingid', array('meetingid' => $encodedseed)); |
|
3093 | + $meetingid = (string)$DB->get_field('bigbluebuttonbn', 'meetingid', array('meetingid' => $encodedseed)); |
|
3094 | 3094 | } while ($meetingid == $encodedseed); |
3095 | 3095 | return $encodedseed; |
3096 | 3096 | } |
@@ -3303,7 +3303,7 @@ discard block |
||
3303 | 3303 | function bigbluebuttonbn_instance_ownerid($bigbluebuttonbn) { |
3304 | 3304 | global $DB; |
3305 | 3305 | $filters = array('bigbluebuttonbnid' => $bigbluebuttonbn->id, 'log' => 'Add'); |
3306 | - $ownerid = (integer) $DB->get_field('bigbluebuttonbn_logs', 'userid', $filters); |
|
3306 | + $ownerid = (integer)$DB->get_field('bigbluebuttonbn_logs', 'userid', $filters); |
|
3307 | 3307 | return $ownerid; |
3308 | 3308 | } |
3309 | 3309 | |
@@ -3346,8 +3346,8 @@ discard block |
||
3346 | 3346 | $bbbsession['meetingname'] = $bbbsession['bigbluebuttonbn']->name; |
3347 | 3347 | $bbbsession['meetingdescription'] = $bbbsession['bigbluebuttonbn']->intro; |
3348 | 3348 | // Extra data for setting up the Meeting. |
3349 | - $bbbsession['userlimit'] = intval((int) \mod_bigbluebuttonbn\locallib\config::get('userlimit_default')); |
|
3350 | - if ((boolean) \mod_bigbluebuttonbn\locallib\config::get('userlimit_editable')) { |
|
3349 | + $bbbsession['userlimit'] = intval((int)\mod_bigbluebuttonbn\locallib\config::get('userlimit_default')); |
|
3350 | + if ((boolean)\mod_bigbluebuttonbn\locallib\config::get('userlimit_editable')) { |
|
3351 | 3351 | $bbbsession['userlimit'] = intval($bbbsession['bigbluebuttonbn']->userlimit); |
3352 | 3352 | } |
3353 | 3353 | $bbbsession['voicebridge'] = $bbbsession['bigbluebuttonbn']->voicebridge; |
@@ -3495,7 +3495,7 @@ discard block |
||
3495 | 3495 | 'bbb-recording-tags' => bigbluebuttonbn_get_tags($bbbsession['cm']->id), // Same as $id. |
3496 | 3496 | ]; |
3497 | 3497 | // Special metadata for recording processing. |
3498 | - if ((boolean) \mod_bigbluebuttonbn\locallib\config::get('recordingstatus_enabled')) { |
|
3498 | + if ((boolean)\mod_bigbluebuttonbn\locallib\config::get('recordingstatus_enabled')) { |
|
3499 | 3499 | $metadata["bn-recording-status"] = json_encode( |
3500 | 3500 | array( |
3501 | 3501 | 'email' => array('"' . fullname($USER) . '" <' . $USER->email . '>'), |
@@ -3503,10 +3503,10 @@ discard block |
||
3503 | 3503 | ) |
3504 | 3504 | ); |
3505 | 3505 | } |
3506 | - if ((boolean) \mod_bigbluebuttonbn\locallib\config::get('recordingready_enabled')) { |
|
3506 | + if ((boolean)\mod_bigbluebuttonbn\locallib\config::get('recordingready_enabled')) { |
|
3507 | 3507 | $metadata['bn-recording-ready-url'] = $bbbsession['recordingReadyURL']; |
3508 | 3508 | } |
3509 | - if ((boolean) \mod_bigbluebuttonbn\locallib\config::get('meetingevents_enabled')) { |
|
3509 | + if ((boolean)\mod_bigbluebuttonbn\locallib\config::get('meetingevents_enabled')) { |
|
3510 | 3510 | $metadata['analytics-callback-url'] = $bbbsession['meetingEventsURL']; |
3511 | 3511 | } |
3512 | 3512 | return $metadata; |