Completed
Push — master ( 1b8539...ab9e22 )
by Jesus
10s
created
classes/event/bigbluebuttonbn_activity_management_viewed.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
      */
41 41
     protected function init() {
42 42
         parent::init();
43
-        $this->description = "The user with id '##userid' viewed the bigbluebuttonbn activity management page for ".
43
+        $this->description = "The user with id '##userid' viewed the bigbluebuttonbn activity management page for " .
44 44
         "the course module id '##contextinstanceid'.";
45 45
     }
46 46
 
Please login to merge, or discard this patch.
classes/privacy/provider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -212,7 +212,7 @@
 block discarded – undo
212 212
             function($instanceid, $data) use ($user, $instanceidstocmids) {
213 213
                 $context = \context_module::instance($instanceidstocmids[$instanceid]);
214 214
                 $contextdata = helper::get_context_data($context, $user);
215
-                $finaldata = (object) array_merge((array) $contextdata, ['logs' => $data]);
215
+                $finaldata = (object)array_merge((array)$contextdata, ['logs' => $data]);
216 216
                 helper::export_context_files($context, $user);
217 217
                 writer::with_context($context)->export_data([], $finaldata);
218 218
             }
Please login to merge, or discard this patch.
classes/locallib/config.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -55,8 +55,8 @@  discard block
 block discarded – undo
55 55
      */
56 56
     public static function defaultvalues() {
57 57
         return array(
58
-            'server_url' => (string) BIGBLUEBUTTONBN_DEFAULT_SERVER_URL,
59
-            'shared_secret' => (string) BIGBLUEBUTTONBN_DEFAULT_SHARED_SECRET,
58
+            'server_url' => (string)BIGBLUEBUTTONBN_DEFAULT_SERVER_URL,
59
+            'shared_secret' => (string)BIGBLUEBUTTONBN_DEFAULT_SHARED_SECRET,
60 60
             'voicebridge_editable' => 'false',
61 61
             'importrecordings_enabled' => 'false',
62 62
             'importrecordings_from_deleted_enabled' => 'false',
@@ -121,8 +121,8 @@  discard block
 block discarded – undo
121 121
         if (isset($CFG->bigbluebuttonbn[$setting])) {
122 122
             return (string)$CFG->bigbluebuttonbn[$setting];
123 123
         }
124
-        if (isset($CFG->{'bigbluebuttonbn_'.$setting})) {
125
-            return (string)$CFG->{'bigbluebuttonbn_'.$setting};
124
+        if (isset($CFG->{'bigbluebuttonbn_' . $setting})) {
125
+            return (string)$CFG->{'bigbluebuttonbn_' . $setting};
126 126
         }
127 127
         return self::defaultvalue($setting);
128 128
     }
Please login to merge, or discard this patch.
locallib.php 1 patch
Spacing   +57 added lines, -57 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 
29 29
 global $CFG;
30 30
 
31
-require_once(dirname(__FILE__).'/lib.php');
31
+require_once(dirname(__FILE__) . '/lib.php');
32 32
 
33 33
 /** @var BIGBLUEBUTTONBN_UPDATE_CACHE boolean set to true indicates that cache has to be updated */
34 34
 const BIGBLUEBUTTONBN_UPDATE_CACHE = true;
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
     if (isset($meta)) {
103 103
         $log->meta = $meta;
104 104
     } else if ($event == BIGBLUEBUTTONBN_LOG_EVENT_CREATE) {
105
-        $log->meta = '{"record":'.($bbbsession['record'] ? 'true' : 'false').'}';
105
+        $log->meta = '{"record":' . ($bbbsession['record'] ? 'true' : 'false') . '}';
106 106
     }
107 107
     $DB->insert_record('bigbluebuttonbn_logs', $log);
108 108
 }
@@ -150,8 +150,8 @@  discard block
 block discarded – undo
150 150
     $data = null;
151 151
     if (!is_null($pname) && !is_null($purl)) {
152 152
         $method = 'POST';
153
-        $data = "<?xml version='1.0' encoding='UTF-8'?><modules><module name='presentation'><document url='".
154
-            $purl."' /></module></modules>";
153
+        $data = "<?xml version='1.0' encoding='UTF-8'?><modules><module name='presentation'><document url='" .
154
+            $purl . "' /></module></modules>";
155 155
     }
156 156
     $xml = bigbluebuttonbn_wrap_xml_load_file($createmeetingurl, $method, $data);
157 157
     if ($xml) {
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
         // Override imported flag with actual ID.
313 313
         $recording['imported'] = $recordimported->id;
314 314
         if (isset($recordimported->protected)) {
315
-            $recording['protected'] = (string) $recordimported->protected;
315
+            $recording['protected'] = (string)$recordimported->protected;
316 316
         }
317 317
         $recordsimportedarray[$recording['recordID']] = $recording;
318 318
     }
@@ -342,21 +342,21 @@  discard block
 block discarded – undo
342 342
     // Add formats.
343 343
     $playbackarray = array();
344 344
     foreach ($recording->playback->format as $format) {
345
-        $playbackarray[(string) $format->type] = array('type' => (string) $format->type,
346
-            'url' => trim((string) $format->url), 'length' => (string) $format->length);
345
+        $playbackarray[(string)$format->type] = array('type' => (string)$format->type,
346
+            'url' => trim((string)$format->url), 'length' => (string)$format->length);
347 347
         // Add preview per format when existing.
348 348
         if ($format->preview) {
349
-            $playbackarray[(string) $format->type]['preview'] = bigbluebuttonbn_get_recording_preview_images($format->preview);
349
+            $playbackarray[(string)$format->type]['preview'] = bigbluebuttonbn_get_recording_preview_images($format->preview);
350 350
         }
351 351
     }
352 352
     // Add the metadata to the recordings array.
353 353
     $metadataarray = bigbluebuttonbn_get_recording_array_meta(get_object_vars($recording->metadata));
354
-    $recordingarray = array('recordID' => (string) $recording->recordID,
355
-        'meetingID' => (string) $recording->meetingID, 'meetingName' => (string) $recording->name,
356
-        'published' => (string) $recording->published, 'startTime' => (string) $recording->startTime,
357
-        'endTime' => (string) $recording->endTime, 'playbacks' => $playbackarray);
354
+    $recordingarray = array('recordID' => (string)$recording->recordID,
355
+        'meetingID' => (string)$recording->meetingID, 'meetingName' => (string)$recording->name,
356
+        'published' => (string)$recording->published, 'startTime' => (string)$recording->startTime,
357
+        'endTime' => (string)$recording->endTime, 'playbacks' => $playbackarray);
358 358
     if (isset($recording->protected)) {
359
-        $recordingarray['protected'] = (string) $recording->protected;
359
+        $recordingarray['protected'] = (string)$recording->protected;
360 360
     }
361 361
     return $recordingarray + $metadataarray;
362 362
 }
@@ -371,9 +371,9 @@  discard block
 block discarded – undo
371 371
 function bigbluebuttonbn_get_recording_preview_images($preview) {
372 372
     $imagesarray = array();
373 373
     foreach ($preview->images->image as $image) {
374
-        $imagearray = array('url' => trim((string) $image));
374
+        $imagearray = array('url' => trim((string)$image));
375 375
         foreach ($image->attributes() as $attkey => $attvalue) {
376
-            $imagearray[$attkey] = (string) $attvalue;
376
+            $imagearray[$attkey] = (string)$attvalue;
377 377
         }
378 378
         array_push($imagesarray, $imagearray);
379 379
     }
@@ -393,7 +393,7 @@  discard block
 block discarded – undo
393 393
         if (is_object($value)) {
394 394
             $value = '';
395 395
         }
396
-        $metadataarray['meta_'.$key] = $value;
396
+        $metadataarray['meta_' . $key] = $value;
397 397
     }
398 398
     return $metadataarray;
399 399
 }
@@ -465,7 +465,7 @@  discard block
 block discarded – undo
465 465
     $ids = explode(',', $recordids);
466 466
     foreach ($ids as $id) {
467 467
         $xml = bigbluebuttonbn_wrap_xml_load_file(
468
-            \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('updateRecordings', ['recordID' => $id] + (array) $params)
468
+            \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('updateRecordings', ['recordID' => $id] + (array)$params)
469 469
           );
470 470
         if ($xml && $xml->returncode != 'SUCCESS') {
471 471
             return false;
@@ -530,7 +530,7 @@  discard block
 block discarded – undo
530 530
             return $xml;
531 531
         } catch (Exception $e) {
532 532
             libxml_use_internal_errors($previous);
533
-            $error = 'Caught exception: '.$e->getMessage();
533
+            $error = 'Caught exception: ' . $e->getMessage();
534 534
             debugging($error, DEBUG_DEVELOPER);
535 535
             return null;
536 536
         }
@@ -541,7 +541,7 @@  discard block
 block discarded – undo
541 541
         $response = simplexml_load_file($url, 'SimpleXMLElement', LIBXML_NOCDATA | LIBXML_NOBLANKS);
542 542
         return $response;
543 543
     } catch (Exception $e) {
544
-        $error = 'Caught exception: '.$e->getMessage();
544
+        $error = 'Caught exception: ' . $e->getMessage();
545 545
         debugging($error, DEBUG_DEVELOPER);
546 546
         libxml_use_internal_errors($previous);
547 547
         return null;
@@ -567,8 +567,8 @@  discard block
 block discarded – undo
567 567
         }
568 568
         $options = array();
569 569
         $options['CURLOPT_HTTPHEADER'] = array(
570
-                 'Content-Type: '.$contenttype,
571
-                 'Content-Length: '.strlen($data),
570
+                 'Content-Type: ' . $contenttype,
571
+                 'Content-Length: ' . strlen($data),
572 572
                  'Content-Language: en-US',
573 573
                );
574 574
 
@@ -589,7 +589,7 @@  discard block
 block discarded – undo
589 589
  * @return void
590 590
  */
591 591
 function bigbluebuttonbn_end_meeting_if_running($bigbluebuttonbn) {
592
-    $meetingid = $bigbluebuttonbn->meetingid.'-'.$bigbluebuttonbn->course.'-'.$bigbluebuttonbn->id;
592
+    $meetingid = $bigbluebuttonbn->meetingid . '-' . $bigbluebuttonbn->course . '-' . $bigbluebuttonbn->id;
593 593
     if (bigbluebuttonbn_is_meeting_running($meetingid)) {
594 594
         bigbluebuttonbn_end_meeting($meetingid, $bigbluebuttonbn->moderatorpass);
595 595
     }
@@ -609,9 +609,9 @@  discard block
 block discarded – undo
609 609
     if ($userroles) {
610 610
         $where = '';
611 611
         foreach ($userroles as $userrole) {
612
-            $where .= (empty($where) ? ' WHERE' : ' OR').' id=' . $userrole->roleid;
612
+            $where .= (empty($where) ? ' WHERE' : ' OR') . ' id=' . $userrole->roleid;
613 613
         }
614
-        $userroles = $DB->get_records_sql('SELECT * FROM {role}'.$where);
614
+        $userroles = $DB->get_records_sql('SELECT * FROM {role}' . $where);
615 615
     }
616 616
     return $userroles;
617 617
 }
@@ -634,7 +634,7 @@  discard block
 block discarded – undo
634 634
  * @return array $users
635 635
  */
636 636
 function bigbluebuttonbn_get_users(context $context = null) {
637
-    $users = (array) get_enrolled_users($context, '', 0, 'u.*', null, 0, 0, true);
637
+    $users = (array)get_enrolled_users($context, '', 0, 'u.*', null, 0, 0, true);
638 638
     foreach ($users as $key => $value) {
639 639
         $users[$key] = fullname($value);
640 640
     }
@@ -649,7 +649,7 @@  discard block
 block discarded – undo
649 649
  * @return array $users
650 650
  */
651 651
 function bigbluebuttonbn_get_users_select(context $context = null) {
652
-    $users = (array) get_enrolled_users($context, '', 0, 'u.*', null, 0, 0, true);
652
+    $users = (array)get_enrolled_users($context, '', 0, 'u.*', null, 0, 0, true);
653 653
     foreach ($users as $key => $value) {
654 654
         $users[$key] = array('id' => $value->id, 'name' => fullname($value));
655 655
     }
@@ -664,7 +664,7 @@  discard block
 block discarded – undo
664 664
  * @return array $roles
665 665
  */
666 666
 function bigbluebuttonbn_get_roles(context $context = null) {
667
-    $roles = (array) role_get_names($context);
667
+    $roles = (array)role_get_names($context);
668 668
     foreach ($roles as $key => $value) {
669 669
         $roles[$key] = $value->localname;
670 670
     }
@@ -679,7 +679,7 @@  discard block
 block discarded – undo
679 679
  * @return array $users
680 680
  */
681 681
 function bigbluebuttonbn_get_roles_select(context $context = null) {
682
-    $roles = (array) role_get_names($context);
682
+    $roles = (array)role_get_names($context);
683 683
     foreach ($roles as $key => $value) {
684 684
         $roles[$key] = array('id' => $value->id, 'name' => $value->localname);
685 685
     }
@@ -694,7 +694,7 @@  discard block
 block discarded – undo
694 694
  * @return object $role
695 695
  */
696 696
 function bigbluebuttonbn_get_role($id) {
697
-    $roles = (array) role_get_names();
697
+    $roles = (array)role_get_names();
698 698
     if (is_numeric($id) && isset($roles[$id])) {
699 699
         return (object)$roles[$id];
700 700
     }
@@ -849,7 +849,7 @@  discard block
 block discarded – undo
849 849
     if (!isguestuser()) {
850 850
         $userroles = bigbluebuttonbn_get_user_roles($context, $userid);
851 851
     }
852
-    return bigbluebuttonbn_is_moderator_validator($participantlist, $userid , $userroles);
852
+    return bigbluebuttonbn_is_moderator_validator($participantlist, $userid, $userroles);
853 853
 }
854 854
 
855 855
 /**
@@ -1005,7 +1005,7 @@  discard block
 block discarded – undo
1005 1005
 function bigbluebuttonbn_generate_nonce() {
1006 1006
     $mt = microtime();
1007 1007
     $rand = mt_rand();
1008
-    return md5($mt.$rand);
1008
+    return md5($mt . $rand);
1009 1009
 }
1010 1010
 
1011 1011
 /**
@@ -1095,10 +1095,10 @@  discard block
 block discarded – undo
1095 1095
     $now = time();
1096 1096
     if (!$updatecache && isset($result) && $now < ($result['creation_time'] + $cachettl)) {
1097 1097
         // Use the value in the cache.
1098
-        return (array) json_decode($result['meeting_info']);
1098
+        return (array)json_decode($result['meeting_info']);
1099 1099
     }
1100 1100
     // Ping again and refresh the cache.
1101
-    $meetinginfo = (array) bigbluebuttonbn_wrap_xml_load_file(
1101
+    $meetinginfo = (array)bigbluebuttonbn_wrap_xml_load_file(
1102 1102
         \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getMeetingInfo', ['meetingID' => $meetingid])
1103 1103
       );
1104 1104
     $cache->set($meetingid, array('creation_time' => time(), 'meeting_info' => json_encode($meetinginfo)));
@@ -1209,7 +1209,7 @@  discard block
 block discarded – undo
1209 1209
  * @return object
1210 1210
  */
1211 1211
 function bigbluebuttonbn_set_config_xml($meetingid, $configxml) {
1212
-    $urldefaultconfig = \mod_bigbluebuttonbn\locallib\config::get('server_url').'api/setConfigXML?';
1212
+    $urldefaultconfig = \mod_bigbluebuttonbn\locallib\config::get('server_url') . 'api/setConfigXML?';
1213 1213
     $configxmlparams = bigbluebuttonbn_set_config_xml_params($meetingid, $configxml);
1214 1214
     $xml = bigbluebuttonbn_wrap_xml_load_file($urldefaultconfig, 'POST',
1215 1215
         $configxmlparams, 'application/x-www-form-urlencoded');
@@ -1225,8 +1225,8 @@  discard block
 block discarded – undo
1225 1225
  * @return string
1226 1226
  */
1227 1227
 function bigbluebuttonbn_set_config_xml_params($meetingid, $configxml) {
1228
-    $params = 'configXML='.urlencode($configxml).'&meetingID='.urlencode($meetingid);
1229
-    $configxmlparams = $params.'&checksum='.sha1('setConfigXML'.$params.\mod_bigbluebuttonbn\locallib\config::get('shared_secret'));
1228
+    $params = 'configXML=' . urlencode($configxml) . '&meetingID=' . urlencode($meetingid);
1229
+    $configxmlparams = $params . '&checksum=' . sha1('setConfigXML' . $params . \mod_bigbluebuttonbn\locallib\config::get('shared_secret'));
1230 1230
     return $configxmlparams;
1231 1231
 }
1232 1232
 
@@ -1240,7 +1240,7 @@  discard block
 block discarded – undo
1240 1240
  */
1241 1241
 function bigbluebuttonbn_set_config_xml_array($meetingid, $configxml) {
1242 1242
     $configxml = bigbluebuttonbn_setConfigXML($meetingid, $configxml);
1243
-    $configxmlarray = (array) $configxml;
1243
+    $configxmlarray = (array)$configxml;
1244 1244
     if ($configxmlarray['returncode'] != 'SUCCESS') {
1245 1245
         debugging('BigBlueButton was not able to set the custom config.xml file', DEBUG_DEVELOPER);
1246 1246
         return '';
@@ -1332,7 +1332,7 @@  discard block
 block discarded – undo
1332 1332
     global $USER;
1333 1333
     $starttime = $starttime - ($starttime % 1000);
1334 1334
     // Set formatted date.
1335
-    $dateformat = get_string('strftimerecentfull', 'langconfig').' %Z';
1335
+    $dateformat = get_string('strftimerecentfull', 'langconfig') . ' %Z';
1336 1336
     return userdate($starttime / 1000, $dateformat, usertimezone($USER->timezone));
1337 1337
 }
1338 1338
 
@@ -1448,7 +1448,7 @@  discard block
 block discarded – undo
1448 1448
  * @return string
1449 1449
  */
1450 1450
 function bigbluebuttonbn_get_recording_data_row_preview($recording) {
1451
-    $options = array('id' => 'preview-'.$recording['recordID']);
1451
+    $options = array('id' => 'preview-' . $recording['recordID']);
1452 1452
     if ($recording['published'] === 'false') {
1453 1453
         $options['hidden'] = 'hidden';
1454 1454
     }
@@ -1510,7 +1510,7 @@  discard block
 block discarded – undo
1510 1510
     if ($recording['published'] === 'false') {
1511 1511
         $visibility = 'hidden ';
1512 1512
     }
1513
-    $id = 'playbacks-'.$recording['recordID'];
1513
+    $id = 'playbacks-' . $recording['recordID'];
1514 1514
     $recordingtypes = html_writer::start_tag('div', array('id' => $id, 'data-imported' => $dataimported,
1515 1515
           'data-meetingid' => $recording['meetingID'], 'data-recordingid' => $recording['recordID'],
1516 1516
           'title' => $title, $visibility => $visibility));
@@ -1535,11 +1535,11 @@  discard block
 block discarded – undo
1535 1535
     if (!bigbluebuttonbn_include_recording_data_row_type($recording, $bbbsession, $playback)) {
1536 1536
         return '';
1537 1537
     }
1538
-    $text = get_string('view_recording_format_'.$playback['type'], 'bigbluebuttonbn');
1538
+    $text = get_string('view_recording_format_' . $playback['type'], 'bigbluebuttonbn');
1539 1539
     $href = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_view.php?action=play&bn=' . $bbbsession['bigbluebuttonbn']->id .
1540
-      '&mid='.$recording['meetingID'] . '&rid=' . $recording['recordID'] . '&rtype=' . $playback['type'];
1540
+      '&mid=' . $recording['meetingID'] . '&rid=' . $recording['recordID'] . '&rtype=' . $playback['type'];
1541 1541
     if (!isset($recording['imported']) || !isset($recording['protected']) || $recording['protected'] === 'false') {
1542
-        $href .= '&href='.urlencode(trim($playback['url']));
1542
+        $href .= '&href=' . urlencode(trim($playback['url']));
1543 1543
     }
1544 1544
     $linkattributes = array(
1545 1545
         'id' => 'recording-play-' . $playback['type'] . '-' . $recording['recordID'],
@@ -1694,7 +1694,7 @@  discard block
 block discarded – undo
1694 1694
             $linkattributes['class'] = 'disabled';
1695 1695
             unset($linkattributes['onclick']);
1696 1696
         }
1697
-        $icon = new pix_icon('i/'.$data['tag'],
1697
+        $icon = new pix_icon('i/' . $data['tag'],
1698 1698
             get_string('view_recording_list_actionbar_' . $data['action'], 'bigbluebuttonbn'),
1699 1699
             'moodle', $iconattributes);
1700 1700
         return $OUTPUT->action_icon('#', $icon, null, $linkattributes, false);
@@ -1811,7 +1811,7 @@  discard block
 block discarded – undo
1811 1811
  */
1812 1812
 function bigbluebuttonbn_get_recording_table_row($bbbsession, $recording, $rowdata) {
1813 1813
     $row = new html_table_row();
1814
-    $row->id = 'recording-tr-'.$recording['recordID'];
1814
+    $row->id = 'recording-tr-' . $recording['recordID'];
1815 1815
     $row->attributes['data-imported'] = 'false';
1816 1816
     $texthead = '';
1817 1817
     $texttail = '';
@@ -1871,9 +1871,9 @@  discard block
 block discarded – undo
1871 1871
 function bigbluebuttonbn_send_notification_recording_ready($bigbluebuttonbn) {
1872 1872
     $sender = get_admin();
1873 1873
     // Prepare message.
1874
-    $messagetext = '<p>'.get_string('email_body_recording_ready_for', 'bigbluebuttonbn').
1875
-        ' &quot;' . $bigbluebuttonbn->name . '&quot; '.
1876
-        get_string('email_body_recording_ready_is_ready', 'bigbluebuttonbn').'.</p>';
1874
+    $messagetext = '<p>' . get_string('email_body_recording_ready_for', 'bigbluebuttonbn') .
1875
+        ' &quot;' . $bigbluebuttonbn->name . '&quot; ' .
1876
+        get_string('email_body_recording_ready_is_ready', 'bigbluebuttonbn') . '.</p>';
1877 1877
     $context = context_course::instance($bigbluebuttonbn->course);
1878 1878
     \mod_bigbluebuttonbn\locallib\notifier::notification_send($context, $sender, $bigbluebuttonbn, $messagetext);
1879 1879
 }
@@ -2095,7 +2095,7 @@  discard block
 block discarded – undo
2095 2095
     }
2096 2096
     // Prepare select for loading records based on existent bigbluebuttonbns.
2097 2097
     $sql = 'SELECT DISTINCT meetingid, bigbluebuttonbnid FROM {bigbluebuttonbn_logs} WHERE ';
2098
-    $sql .= '(bigbluebuttonbnid='.implode(' OR bigbluebuttonbnid=', array_keys($bigbluebuttonbns)).')';
2098
+    $sql .= '(bigbluebuttonbnid=' . implode(' OR bigbluebuttonbnid=', array_keys($bigbluebuttonbns)) . ')';
2099 2099
     // Include only Create events and exclude those with record not true.
2100 2100
     $sql .= ' AND log = ? AND meta LIKE ? AND meta LIKE ?';
2101 2101
     // Execute select for loading records based on existent bigbluebuttonbns.
@@ -2227,8 +2227,8 @@  discard block
 block discarded – undo
2227 2227
 function bigbluebuttonbn_format_activity_time($time) {
2228 2228
     $activitytime = '';
2229 2229
     if ($time) {
2230
-        $activitytime = calendar_day_representation($time).' '.
2231
-          get_string('mod_form_field_notification_msg_at', 'bigbluebuttonbn').' '.
2230
+        $activitytime = calendar_day_representation($time) . ' ' .
2231
+          get_string('mod_form_field_notification_msg_at', 'bigbluebuttonbn') . ' ' .
2232 2232
           calendar_time_representation($time);
2233 2233
     }
2234 2234
     return $activitytime;
@@ -2625,7 +2625,7 @@  discard block
 block discarded – undo
2625 2625
  *
2626 2626
  * @return string
2627 2627
  */
2628
-function bigbluebuttonbn_render_warning($message, $type='info', $href='', $text='', $class='') {
2628
+function bigbluebuttonbn_render_warning($message, $type = 'info', $href = '', $text = '', $class = '') {
2629 2629
     global $OUTPUT;
2630 2630
     $output = "\n";
2631 2631
     // Evaluates if config_warning is enabled.
@@ -2664,11 +2664,11 @@  discard block
 block discarded – undo
2664 2664
     if ($class == '') {
2665 2665
         $class = 'btn btn-secondary';
2666 2666
     }
2667
-    $output  = '  <form method="post" action="' . $href . '" class="form-inline">'."\n";
2668
-    $output .= '      <button type="submit" class="' . $class . '"'."\n";
2669
-    $output .= '          title="' . $title . '"'."\n";
2670
-    $output .= '          >' . $text . '</button>'."\n";
2671
-    $output .= '  </form>'."\n";
2667
+    $output  = '  <form method="post" action="' . $href . '" class="form-inline">' . "\n";
2668
+    $output .= '      <button type="submit" class="' . $class . '"' . "\n";
2669
+    $output .= '          title="' . $title . '"' . "\n";
2670
+    $output .= '          >' . $text . '</button>' . "\n";
2671
+    $output .= '  </form>' . "\n";
2672 2672
     return $output;
2673 2673
 }
2674 2674
 
Please login to merge, or discard this patch.