| @@ -653,7 +653,7 @@ discard block | ||
| 653 | 653 | // Pull the Bearer from the headers. | 
| 654 | 654 |          if (!array_key_exists('Authorization', $headers)) { | 
| 655 | 655 | $msg = 'Authorization failed'; | 
| 656 | -            header('HTTP/1.0 400 Bad Request. ' . $msg); | |
| 656 | +            header('HTTP/1.0 400 Bad Request. '.$msg); | |
| 657 | 657 | return; | 
| 658 | 658 | } | 
| 659 | 659 |          $authorization = explode(" ", $headers['Authorization']); | 
| @@ -671,8 +671,8 @@ discard block | ||
| 671 | 671 | // Convert JSON string to a JSON object. | 
| 672 | 672 | $jsonobj = json_decode($jsonstr); | 
| 673 | 673 |      } catch (Exception $e) { | 
| 674 | - $msg = 'Caught exception: ' . $e->getMessage(); | |
| 675 | -        header('HTTP/1.0 400 Bad Request. ' . $msg); | |
| 674 | + $msg = 'Caught exception: '.$e->getMessage(); | |
| 675 | +        header('HTTP/1.0 400 Bad Request. '.$msg); | |
| 676 | 676 | return; | 
| 677 | 677 | } | 
| 678 | 678 | |
| @@ -681,7 +681,7 @@ discard block | ||
| 681 | 681 |      $meetingidelements = explode('-', $meetingidelements[0]); | 
| 682 | 682 |      if (!isset($bigbluebuttonbn) || $bigbluebuttonbn->meetingid != $meetingidelements[0]) { | 
| 683 | 683 | $msg = 'The activity may have been deleted'; | 
| 684 | -        header('HTTP/1.0 410 Gone. ' . $msg); | |
| 684 | +        header('HTTP/1.0 410 Gone. '.$msg); | |
| 685 | 685 | return; | 
| 686 | 686 | } | 
| 687 | 687 | |
| @@ -99,8 +99,8 @@ discard block | ||
| 99 | 99 | $PAGE->requires->strings_for_js(array_keys(bigbluebuttonbn_get_strings_for_js()), 'bigbluebuttonbn'); | 
| 100 | 100 | $jsvars['participantData'] = bigbluebuttonbn_get_participant_data($context, $bigbluebuttonbn); | 
| 101 | 101 | $jsvars['participantList'] = $participantlist; | 
| 102 | - $jsvars['iconsEnabled'] = (boolean)$cfg['recording_icons_enabled']; | |
| 103 | -        $jsvars['pixIconDelete'] = (string)$OUTPUT->pix_icon('t/delete', get_string('delete'), 'moodle'); | |
| 102 | + $jsvars['iconsEnabled'] = (boolean) $cfg['recording_icons_enabled']; | |
| 103 | +        $jsvars['pixIconDelete'] = (string) $OUTPUT->pix_icon('t/delete', get_string('delete'), 'moodle'); | |
| 104 | 104 |          $PAGE->requires->yui_module('moodle-mod_bigbluebuttonbn-modform', | 
| 105 | 105 | 'M.mod_bigbluebuttonbn.modform.init', array($jsvars)); | 
| 106 | 106 | } | 
| @@ -171,7 +171,7 @@ discard block | ||
| 171 | 171 | */ | 
| 172 | 172 |      public function add_completion_rules() { | 
| 173 | 173 | $mform = $this->_form; | 
| 174 | -        if (!(boolean)\mod_bigbluebuttonbn\locallib\config::get('meetingevents_enabled')) { | |
| 174 | +        if (!(boolean) \mod_bigbluebuttonbn\locallib\config::get('meetingevents_enabled')) { | |
| 175 | 175 | return []; | 
| 176 | 176 | } | 
| 177 | 177 | |
| @@ -179,7 +179,7 @@ discard block | ||
| 179 | 179 |          $attendance['grouplabel'] = get_string('completionattendancegroup', 'bigbluebuttonbn'); | 
| 180 | 180 |          $attendance['rulelabel'] = get_string('completionattendance', 'bigbluebuttonbn'); | 
| 181 | 181 | $attendance['group'] = [ | 
| 182 | -            $mform->createElement('checkbox', 'completionattendanceenabled', '', $attendance['rulelabel'] . ' '), | |
| 182 | +            $mform->createElement('checkbox', 'completionattendanceenabled', '', $attendance['rulelabel'].' '), | |
| 183 | 183 |              $mform->createElement('text', 'completionattendance', '', ['size' => 3]), | 
| 184 | 184 |              $mform->createElement('static', 'completionattendanceunit', ' ', get_string('minutes', 'bigbluebuttonbn')) | 
| 185 | 185 | ]; | 
| @@ -197,11 +197,11 @@ discard block | ||
| 197 | 197 |          $engagement['pollvotes'] = get_string('completionengagementpollvotes', 'bigbluebuttonbn'); | 
| 198 | 198 |          $engagement['emojis'] = get_string('completionengagementemojis', 'bigbluebuttonbn'); | 
| 199 | 199 | $engagement['group'] = [ | 
| 200 | -            $mform->createElement('checkbox', 'completionengagementchats', '', $engagement['chatlabel'] . '  '), | |
| 201 | -            $mform->createElement('checkbox', 'completionengagementtalks', '', $engagement['talklabel'] . '  '), | |
| 202 | -            $mform->createElement('checkbox', 'completionengagementraisehand', '', $engagement['raisehand'] . '  '), | |
| 203 | -            $mform->createElement('checkbox', 'completionengagementpollvotes', '', $engagement['pollvotes'] . '  '), | |
| 204 | -            $mform->createElement('checkbox', 'completionengagementemojis', '', $engagement['emojis'] . '  '), | |
| 200 | +            $mform->createElement('checkbox', 'completionengagementchats', '', $engagement['chatlabel'].'  '), | |
| 201 | +            $mform->createElement('checkbox', 'completionengagementtalks', '', $engagement['talklabel'].'  '), | |
| 202 | +            $mform->createElement('checkbox', 'completionengagementraisehand', '', $engagement['raisehand'].'  '), | |
| 203 | +            $mform->createElement('checkbox', 'completionengagementpollvotes', '', $engagement['pollvotes'].'  '), | |
| 204 | +            $mform->createElement('checkbox', 'completionengagementemojis', '', $engagement['emojis'].'  '), | |
| 205 | 205 | ]; | 
| 206 | 206 | $mform->addGroup($engagement['group'], 'completionengagementgroup', $engagement['grouplabel'], [' '], false); | 
| 207 | 207 |          $mform->addHelpButton('completionengagementgroup', 'completionengagementgroup', 'bigbluebuttonbn'); | 
| @@ -248,7 +248,7 @@ discard block | ||
| 248 | 248 | * @return void | 
| 249 | 249 | */ | 
| 250 | 250 |      private function bigbluebuttonbn_mform_add_block_profiles(&$mform, $profiles) { | 
| 251 | -        if ((boolean)\mod_bigbluebuttonbn\locallib\config::recordings_enabled()) { | |
| 251 | +        if ((boolean) \mod_bigbluebuttonbn\locallib\config::recordings_enabled()) { | |
| 252 | 252 |              $mform->addElement('select', 'type', get_string('mod_form_field_instanceprofiles', 'bigbluebuttonbn'), | 
| 253 | 253 | bigbluebuttonbn_get_instance_profiles_array($profiles), | 
| 254 | 254 |                  array('onchange' => 'M.mod_bigbluebuttonbn.modform.updateInstanceTypeProfile(this);')); | 
| @@ -487,7 +487,7 @@ discard block | ||
| 487 | 487 | 'onclick' => 'M.mod_bigbluebuttonbn.modform.participantAdd(); return 0;' | 
| 488 | 488 | )); | 
| 489 | 489 |          $htmladdparticipant = html_writer::tag('div', | 
| 490 | - $htmlselectiontype . '  ' . $htmlselectionoptions . '  ' . $htmlselectioninput, null); | |
| 490 | + $htmlselectiontype.'  '.$htmlselectionoptions.'  '.$htmlselectioninput, null); | |
| 491 | 491 |          $mform->addElement('html', "\n\n"); | 
| 492 | 492 |          $mform->addElement('static', 'static_add_participant', | 
| 493 | 493 |              get_string('mod_form_field_participant_add', 'bigbluebuttonbn'), $htmladdparticipant); |