Completed
Pull Request — master (#53)
by
unknown
21:15
created
locallib.php 1 patch
Indentation   +49 added lines, -49 removed lines patch added patch discarded remove patch
@@ -89,9 +89,9 @@  discard block
 block discarded – undo
89 89
  */
90 90
 function bigbluebuttonbn_get_join_url($meetingid, $username, $pw, $logouturl, $configtoken = null, $userid = null) {
91 91
     $data = ['meetingID' => $meetingid,
92
-              'fullName' => $username,
93
-              'password' => $pw,
94
-              'logoutURL' => $logouturl,
92
+                'fullName' => $username,
93
+                'password' => $pw,
94
+                'logoutURL' => $logouturl,
95 95
             ];
96 96
     if (!is_null($configtoken)) {
97 97
         $data['configToken'] = $configtoken;
@@ -143,23 +143,23 @@  discard block
 block discarded – undo
143 143
 function bigbluebuttonbn_get_meeting_info_array($meetingid) {
144 144
     $xml = bigbluebuttonbn_wrap_xml_load_file(
145 145
         \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getMeetingInfo', ['meetingID' => $meetingid])
146
-      );
146
+        );
147 147
     if ($xml && $xml->returncode == 'SUCCESS' && empty($xml->messageKey)) {
148 148
         // Meeting info was returned.
149 149
         return array('returncode' => $xml->returncode,
150
-                     'meetingID' => $xml->meetingID,
151
-                     'moderatorPW' => $xml->moderatorPW,
152
-                     'attendeePW' => $xml->attendeePW,
153
-                     'hasBeenForciblyEnded' => $xml->hasBeenForciblyEnded,
154
-                     'running' => $xml->running,
155
-                     'recording' => $xml->recording,
156
-                     'startTime' => $xml->startTime,
157
-                     'endTime' => $xml->endTime,
158
-                     'participantCount' => $xml->participantCount,
159
-                     'moderatorCount' => $xml->moderatorCount,
160
-                     'attendees' => $xml->attendees,
161
-                     'metadata' => $xml->metadata,
162
-                   );
150
+                        'meetingID' => $xml->meetingID,
151
+                        'moderatorPW' => $xml->moderatorPW,
152
+                        'attendeePW' => $xml->attendeePW,
153
+                        'hasBeenForciblyEnded' => $xml->hasBeenForciblyEnded,
154
+                        'running' => $xml->running,
155
+                        'recording' => $xml->recording,
156
+                        'startTime' => $xml->startTime,
157
+                        'endTime' => $xml->endTime,
158
+                        'participantCount' => $xml->participantCount,
159
+                        'moderatorCount' => $xml->moderatorCount,
160
+                        'attendees' => $xml->attendees,
161
+                        'metadata' => $xml->metadata,
162
+                    );
163 163
     }
164 164
     if ($xml) {
165 165
         // Either failure or success without meeting info.
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
 function bigbluebuttonbn_get_default_config_xml() {
296 296
     $xml = bigbluebuttonbn_wrap_xml_load_file(
297 297
         \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getDefaultConfigXML')
298
-      );
298
+        );
299 299
     return $xml;
300 300
 }
301 301
 
@@ -396,7 +396,7 @@  discard block
 block discarded – undo
396 396
     foreach ($ids as $id) {
397 397
         $xml = bigbluebuttonbn_wrap_xml_load_file(
398 398
             \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('deleteRecordings', ['recordID' => $id])
399
-          );
399
+            );
400 400
         if ($xml && $xml->returncode != 'SUCCESS') {
401 401
             return false;
402 402
         }
@@ -415,7 +415,7 @@  discard block
 block discarded – undo
415 415
     foreach ($ids as $id) {
416 416
         $xml = bigbluebuttonbn_wrap_xml_load_file(
417 417
             \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('publishRecordings', ['recordID' => $id, 'publish' => $publish])
418
-          );
418
+            );
419 419
         if ($xml && $xml->returncode != 'SUCCESS') {
420 420
             return false;
421 421
         }
@@ -434,7 +434,7 @@  discard block
 block discarded – undo
434 434
     foreach ($ids as $id) {
435 435
         $xml = bigbluebuttonbn_wrap_xml_load_file(
436 436
             \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('updateRecordings', ['recordID' => $id] + (array) $params)
437
-          );
437
+            );
438 438
         if ($xml && $xml->returncode != 'SUCCESS') {
439 439
             return false;
440 440
         }
@@ -451,7 +451,7 @@  discard block
 block discarded – undo
451 451
 function bigbluebuttonbn_end_meeting($meetingid, $modpw) {
452 452
     $xml = bigbluebuttonbn_wrap_xml_load_file(
453 453
         \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('end', ['meetingID' => $meetingid, 'password' => $modpw])
454
-      );
454
+        );
455 455
     if ($xml) {
456 456
         // If the xml packet returned failure it displays the message to the user.
457 457
         return array('returncode' => $xml->returncode, 'message' => $xml->message, 'messageKey' => $xml->messageKey);
@@ -471,7 +471,7 @@  discard block
 block discarded – undo
471 471
      */
472 472
     $xml = bigbluebuttonbn_wrap_xml_load_file(
473 473
         \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getMeetingInfo', ['meetingID' => $meetingid])
474
-      );
474
+        );
475 475
     return ($xml && $xml->returncode == 'SUCCESS');
476 476
 }
477 477
 
@@ -483,7 +483,7 @@  discard block
 block discarded – undo
483 483
 function bigbluebuttonbn_get_server_version() {
484 484
     $xml = bigbluebuttonbn_wrap_xml_load_file(
485 485
         \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url()
486
-      );
486
+        );
487 487
     if ($xml && $xml->returncode == 'SUCCESS') {
488 488
         return $xml->version;
489 489
     }
@@ -551,10 +551,10 @@  discard block
 block discarded – undo
551 551
 
552 552
         $options = array();
553 553
         $options['CURLOPT_HTTPHEADER'] = array(
554
-                 'Content-Type: '.$contenttype,
555
-                 'Content-Length: '.strlen($data),
556
-                 'Content-Language: en-US',
557
-               );
554
+                    'Content-Type: '.$contenttype,
555
+                    'Content-Length: '.strlen($data),
556
+                    'Content-Language: en-US',
557
+                );
558 558
 
559 559
         return $c->post($url, $data, $options);
560 560
     }
@@ -697,16 +697,16 @@  discard block
 block discarded – undo
697 697
         'all' => array(
698 698
             'name' => get_string('mod_form_field_participant_list_type_all', 'bigbluebuttonbn'),
699 699
             'children' => []
700
-          )
701
-      );
700
+            )
701
+        );
702 702
     $data['role'] = array(
703 703
         'name' => get_string('mod_form_field_participant_list_type_role', 'bigbluebuttonbn'),
704 704
         'children' => bigbluebuttonbn_get_roles_select($context)
705
-      );
705
+        );
706 706
     $data['user'] = array(
707 707
         'name' => get_string('mod_form_field_participant_list_type_user', 'bigbluebuttonbn'),
708 708
         'children' => bigbluebuttonbn_get_users_select($context)
709
-      );
709
+        );
710 710
     return $data;
711 711
 }
712 712
 
@@ -751,9 +751,9 @@  discard block
 block discarded – undo
751 751
             continue;
752 752
         }
753 753
         $participantlistarray[] = array(
754
-              'selectiontype' => 'role',
755
-              'selectionid' => $moderatordefault,
756
-              'role' => BIGBLUEBUTTONBN_ROLE_MODERATOR);
754
+                'selectiontype' => 'role',
755
+                'selectionid' => $moderatordefault,
756
+                'role' => BIGBLUEBUTTONBN_ROLE_MODERATOR);
757 757
     }
758 758
     return $participantlistarray;
759 759
 }
@@ -796,11 +796,11 @@  discard block
 block discarded – undo
796 796
             'all' => get_string('mod_form_field_participant_list_type_all', 'bigbluebuttonbn'),
797 797
             'role' => get_string('mod_form_field_participant_list_type_role', 'bigbluebuttonbn'),
798 798
             'user' => get_string('mod_form_field_participant_list_type_user', 'bigbluebuttonbn'),
799
-          ],
799
+            ],
800 800
         'type_selected' => 'all',
801 801
         'options' => ['all' => '---------------'],
802 802
         'selected' => 'all',
803
-      ];
803
+        ];
804 804
 }
805 805
 
806 806
 /**
@@ -1080,7 +1080,7 @@  discard block
 block discarded – undo
1080 1080
     // Ping again and refresh the cache.
1081 1081
     $meetinginfo = (array) bigbluebuttonbn_wrap_xml_load_file(
1082 1082
         \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getMeetingInfo', ['meetingID' => $meetingid])
1083
-      );
1083
+        );
1084 1084
     $cache->set($meetingid, array('creation_time' => time(), 'meeting_info' => json_encode($meetinginfo)));
1085 1085
     return $meetinginfo;
1086 1086
 }
@@ -1450,8 +1450,8 @@  discard block
 block discarded – undo
1450 1450
     }
1451 1451
     $id = 'playbacks-'.$recording['recordID'];
1452 1452
     $recordingtypes = html_writer::start_tag('div', array('id' => $id, 'data-imported' => $dataimported,
1453
-          'data-meetingid' => $recording['meetingID'], 'data-recordingid' => $recording['recordID'],
1454
-          'title' => $title, $visibility => $visibility));
1453
+            'data-meetingid' => $recording['meetingID'], 'data-recordingid' => $recording['recordID'],
1454
+            'title' => $title, $visibility => $visibility));
1455 1455
     foreach ($recording['playbacks'] as $playback) {
1456 1456
         $recordingtypes .= bigbluebuttonbn_get_recording_data_row_type($recording, $bbbsession, $playback);
1457 1457
     }
@@ -1476,7 +1476,7 @@  discard block
 block discarded – undo
1476 1476
     $title = get_string('view_recording_format_'.$playback['type'], 'bigbluebuttonbn');
1477 1477
     $onclick = 'M.mod_bigbluebuttonbn.recordings.recordingPlay(this);';
1478 1478
     $href = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_view.php?action=play&bn=' . $bbbsession['bigbluebuttonbn']->id .
1479
-      '&mid='.$recording['meetingID'] . '&rid=' . $recording['recordID'] . '&rtype=' . $playback['type'];
1479
+        '&mid='.$recording['meetingID'] . '&rid=' . $recording['recordID'] . '&rtype=' . $playback['type'];
1480 1480
     if (!isset($recording['imported']) || !isset($recording['protected']) || $recording['protected'] === 'false') {
1481 1481
         $href .= '&href='.urlencode(trim($playback['url']));
1482 1482
     }
@@ -1488,7 +1488,7 @@  discard block
 block discarded – undo
1488 1488
         'data-target' => $playback['type'],
1489 1489
         'data-href' => $href,
1490 1490
         'class' => 'btn btn-sm btn-default'
1491
-      );
1491
+        );
1492 1492
     return $OUTPUT->action_link('#', $title, null, $linkattributes) . ' ';
1493 1493
 }
1494 1494
 
@@ -1602,10 +1602,10 @@  discard block
 block discarded – undo
1602 1602
             'id' => $id,
1603 1603
             'onclick' => $onclick,
1604 1604
             'data-action' => $data['action']
1605
-          );
1605
+            );
1606 1606
         if (!isset($recording['imported'])) {
1607 1607
             $linkattributes['data-links'] = bigbluebuttonbn_count_recording_imported_instances(
1608
-              $recording['recordID']);
1608
+                $recording['recordID']);
1609 1609
         }
1610 1610
         if (isset($data['disabled'])) {
1611 1611
             $iconattributes['class'] .= ' fa-' . $data['disabled'];
@@ -2146,8 +2146,8 @@  discard block
 block discarded – undo
2146 2146
     $activitytime = '';
2147 2147
     if ($time) {
2148 2148
         $activitytime = calendar_day_representation($time).' '.
2149
-          get_string('mod_form_field_notification_msg_at', 'bigbluebuttonbn').' '.
2150
-          calendar_time_representation($time);
2149
+            get_string('mod_form_field_notification_msg_at', 'bigbluebuttonbn').' '.
2150
+            calendar_time_representation($time);
2151 2151
     }
2152 2152
     return $activitytime;
2153 2153
 }
@@ -2258,7 +2258,7 @@  discard block
 block discarded – undo
2258 2258
             $renderer->render_group_element_text('server_url', BIGBLUEBUTTONBN_DEFAULT_SERVER_URL));
2259 2259
         $renderer->render_group_element('shared_secret',
2260 2260
             $renderer->render_group_element_text('shared_secret', BIGBLUEBUTTONBN_DEFAULT_SHARED_SECRET));
2261
-		$renderer->render_group_element('enable_html5',
2261
+        $renderer->render_group_element('enable_html5',
2262 2262
             $renderer->render_group_element_checkbox('enable_html5', 0));
2263 2263
     }
2264 2264
 }
@@ -2449,7 +2449,7 @@  discard block
 block discarded – undo
2449 2449
         $renderer->render_group_element('participant_moderator_default',
2450 2450
             $renderer->render_group_element_configmultiselect('participant_moderator_default',
2451 2451
                 array_keys($owner), array_merge($owner, $roles))
2452
-          );
2452
+            );
2453 2453
     }
2454 2454
 }
2455 2455
 
@@ -2549,7 +2549,7 @@  discard block
 block discarded – undo
2549 2549
         return $output;
2550 2550
     }
2551 2551
     $output .= $OUTPUT->box_start('box boxalignleft adminerror alert alert-' . $type . ' alert-block fade in',
2552
-      'bigbluebuttonbn_view_general_warning') . "\n";
2552
+        'bigbluebuttonbn_view_general_warning') . "\n";
2553 2553
     $output .= '    ' . $message . "\n";
2554 2554
     $output .= '  <div class="singlebutton pull-right">' . "\n";
2555 2555
     if (!empty($href)) {
Please login to merge, or discard this patch.
lang/en/bigbluebuttonbn.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -390,5 +390,5 @@
 block discarded – undo
390 390
 $string['view_error_action_not_completed'] = 'Action could not be completed';
391 391
 $string['view_warning_default_server'] = 'This Moodle server is making use of the BigBlueButton testing server that comes pre-configured by default. It should be replaced for production.';
392 392
 
393
-$string['config_enable_html5'] =  'Default HTML5 Client';
393
+$string['config_enable_html5'] = 'Default HTML5 Client';
394 394
 $string['config_enable_html5_description'] = 'This settings will enable HTML5 client by default instead of Flash client but it will check whether HTML5 is running or not. If running then it will redirect to HTML5 client otherwise fallback to Flash.';
395 395
\ No newline at end of file
Please login to merge, or discard this patch.
classes/locallib/config.php 2 patches
Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
         return array(
58 58
             'server_url' => (string) BIGBLUEBUTTONBN_DEFAULT_SERVER_URL,
59 59
             'shared_secret' => (string) BIGBLUEBUTTONBN_DEFAULT_SHARED_SECRET,
60
-			'enable_html5' => 'false',
60
+            'enable_html5' => 'false',
61 61
             'voicebridge_editable' => 'false',
62 62
             'importrecordings_enabled' => 'false',
63 63
             'importrecordings_from_deleted_enabled' => 'false',
@@ -153,32 +153,32 @@  discard block
 block discarded – undo
153 153
      */
154 154
     public static function get_options() {
155 155
         return array(
156
-               'version_major' => self::get_moodle_version_major(),
157
-               'voicebridge_editable' => self::get('voicebridge_editable'),
158
-               'waitformoderator_default' => self::get('waitformoderator_default'),
159
-               'waitformoderator_editable' => self::get('waitformoderator_editable'),
160
-               'userlimit_default' => self::get('userlimit_default'),
161
-               'userlimit_editable' => self::get('userlimit_editable'),
162
-               'preuploadpresentation_enabled' => self::get('preuploadpresentation_enabled'),
163
-               'sendnotifications_enabled' => self::get('sendnotifications_enabled'),
164
-               'recordings_enabled' => self::get('recordings_enabled'),
165
-			   'enable_html5' => self::get('enable_html5'),
166
-               'recordings_html_default' => self::get('recordings_html_default'),
167
-               'recordings_html_editable' => self::get('recordings_html_editable'),
168
-               'recordings_deleted_default' => self::get('recordings_deleted_default'),
169
-               'recordings_deleted_editable' => self::get('recordings_deleted_editable'),
170
-               'recordings_imported_default' => self::get('recordings_imported_default'),
171
-               'recordings_imported_editable' => self::get('recordings_imported_editable'),
172
-               'recordings_preview_default' => self::get('recordings_preview_default'),
173
-               'recordings_preview_editable' => self::get('recordings_preview_editable'),
174
-               'recording_default' => self::get('recording_default'),
175
-               'recording_editable' => self::get('recording_editable'),
176
-               'recording_icons_enabled' => self::get('recording_icons_enabled'),
177
-               'general_warning_message' => self::get('general_warning_message'),
178
-               'general_warning_box_type' => self::get('general_warning_box_type'),
179
-               'general_warning_button_text' => self::get('general_warning_button_text'),
180
-               'general_warning_button_href' => self::get('general_warning_button_href'),
181
-               'general_warning_button_class' => self::get('general_warning_button_class'),
182
-          );
156
+                'version_major' => self::get_moodle_version_major(),
157
+                'voicebridge_editable' => self::get('voicebridge_editable'),
158
+                'waitformoderator_default' => self::get('waitformoderator_default'),
159
+                'waitformoderator_editable' => self::get('waitformoderator_editable'),
160
+                'userlimit_default' => self::get('userlimit_default'),
161
+                'userlimit_editable' => self::get('userlimit_editable'),
162
+                'preuploadpresentation_enabled' => self::get('preuploadpresentation_enabled'),
163
+                'sendnotifications_enabled' => self::get('sendnotifications_enabled'),
164
+                'recordings_enabled' => self::get('recordings_enabled'),
165
+                'enable_html5' => self::get('enable_html5'),
166
+                'recordings_html_default' => self::get('recordings_html_default'),
167
+                'recordings_html_editable' => self::get('recordings_html_editable'),
168
+                'recordings_deleted_default' => self::get('recordings_deleted_default'),
169
+                'recordings_deleted_editable' => self::get('recordings_deleted_editable'),
170
+                'recordings_imported_default' => self::get('recordings_imported_default'),
171
+                'recordings_imported_editable' => self::get('recordings_imported_editable'),
172
+                'recordings_preview_default' => self::get('recordings_preview_default'),
173
+                'recordings_preview_editable' => self::get('recordings_preview_editable'),
174
+                'recording_default' => self::get('recording_default'),
175
+                'recording_editable' => self::get('recording_editable'),
176
+                'recording_icons_enabled' => self::get('recording_icons_enabled'),
177
+                'general_warning_message' => self::get('general_warning_message'),
178
+                'general_warning_box_type' => self::get('general_warning_box_type'),
179
+                'general_warning_button_text' => self::get('general_warning_button_text'),
180
+                'general_warning_button_href' => self::get('general_warning_button_href'),
181
+                'general_warning_button_class' => self::get('general_warning_button_class'),
182
+            );
183 183
     }
184 184
 }
Please login to merge, or discard this 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
 			'enable_html5' => 'false',
61 61
             'voicebridge_editable' => 'false',
62 62
             'importrecordings_enabled' => 'false',
@@ -122,8 +122,8 @@  discard block
 block discarded – undo
122 122
         if (isset($CFG->bigbluebuttonbn[$setting])) {
123 123
             return (string)$CFG->bigbluebuttonbn[$setting];
124 124
         }
125
-        if (isset($CFG->{'bigbluebuttonbn_'.$setting})) {
126
-            return (string)$CFG->{'bigbluebuttonbn_'.$setting};
125
+        if (isset($CFG->{'bigbluebuttonbn_' . $setting})) {
126
+            return (string)$CFG->{'bigbluebuttonbn_' . $setting};
127 127
         }
128 128
         return  self::defaultvalue($setting);
129 129
     }
Please login to merge, or discard this patch.
classes/locallib/bigbluebutton.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -55,20 +55,20 @@
 block discarded – undo
55 55
             $params .= '&' . 'meta_' . $key.'=' . urlencode($value);
56 56
         }
57 57
 		
58
-		$enable_html5 = trim(\mod_bigbluebuttonbn\locallib\config::get('enable_html5'));
58
+        $enable_html5 = trim(\mod_bigbluebuttonbn\locallib\config::get('enable_html5'));
59 59
 		
60
-		if($enable_html5){
61
-			// from https://github.com/blindsidenetworks/moodle-mod_bigbluebuttonbn/pull/37
62
-			$parsed_url = parse_url($baseurl);
63
-			$statusHTML5 = file_get_contents($parsed_url["scheme"]."://".$parsed_url["host"]."/html5client/check");
60
+        if($enable_html5){
61
+            // from https://github.com/blindsidenetworks/moodle-mod_bigbluebuttonbn/pull/37
62
+            $parsed_url = parse_url($baseurl);
63
+            $statusHTML5 = file_get_contents($parsed_url["scheme"]."://".$parsed_url["host"]."/html5client/check");
64 64
 			
65
-			if($statusHTML5 == '{"html5clientStatus":"running"}') {
66
-				// HTML5 client is running => joining HTML5 client
67
-				$clientURL = $parsed_url["scheme"]."://".$parsed_url["host"]."/html5client/join";
68
-				$params = $params.'&clientURL='.urlencode($clientURL);
69
-			}
65
+            if($statusHTML5 == '{"html5clientStatus":"running"}') {
66
+                // HTML5 client is running => joining HTML5 client
67
+                $clientURL = $parsed_url["scheme"]."://".$parsed_url["host"]."/html5client/join";
68
+                $params = $params.'&clientURL='.urlencode($clientURL);
69
+            }
70 70
 			
71
-		}
71
+        }
72 72
 		
73 73
         return $baseurl . $params . '&checksum=' . sha1($action . $params . self::sanitized_secret());
74 74
     }
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -52,20 +52,20 @@
 block discarded – undo
52 52
             $params .= '&' . $key . '=' . urlencode($value);
53 53
         }
54 54
         foreach ($metadata as $key => $value) {
55
-            $params .= '&' . 'meta_' . $key.'=' . urlencode($value);
55
+            $params .= '&' . 'meta_' . $key . '=' . urlencode($value);
56 56
         }
57 57
 		
58 58
 		$enable_html5 = trim(\mod_bigbluebuttonbn\locallib\config::get('enable_html5'));
59 59
 		
60
-		if($enable_html5){
60
+		if ($enable_html5) {
61 61
 			// from https://github.com/blindsidenetworks/moodle-mod_bigbluebuttonbn/pull/37
62 62
 			$parsed_url = parse_url($baseurl);
63
-			$statusHTML5 = file_get_contents($parsed_url["scheme"]."://".$parsed_url["host"]."/html5client/check");
63
+			$statusHTML5 = file_get_contents($parsed_url["scheme"] . "://" . $parsed_url["host"] . "/html5client/check");
64 64
 			
65
-			if($statusHTML5 == '{"html5clientStatus":"running"}') {
65
+			if ($statusHTML5 == '{"html5clientStatus":"running"}') {
66 66
 				// HTML5 client is running => joining HTML5 client
67
-				$clientURL = $parsed_url["scheme"]."://".$parsed_url["host"]."/html5client/join";
68
-				$params = $params.'&clientURL='.urlencode($clientURL);
67
+				$clientURL = $parsed_url["scheme"] . "://" . $parsed_url["host"] . "/html5client/join";
68
+				$params = $params . '&clientURL=' . urlencode($clientURL);
69 69
 			}
70 70
 			
71 71
 		}
Please login to merge, or discard this patch.
classes/settings/validator.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         global $CFG;
48 48
         return (!isset($CFG->bigbluebuttonbn['server_url']) ||
49 49
                 !isset($CFG->bigbluebuttonbn['shared_secret'])||
50
-				!isset($CFG->bigbluebuttonbn['enable_html5']));
50
+                !isset($CFG->bigbluebuttonbn['enable_html5']));
51 51
     }
52 52
 
53 53
     /**
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
                 !isset($CFG->bigbluebuttonbn['recordings_imported_editable']) ||
89 89
                 !isset($CFG->bigbluebuttonbn['recordings_preview_default']) ||
90 90
                 !isset($CFG->bigbluebuttonbn['recordings_preview_editable'])
91
-              );
91
+                );
92 92
     }
93 93
 
94 94
     /**
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 defined('MOODLE_INTERNAL') || die();
29 29
 
30 30
 require_once($CFG->dirroot . '/mod/bigbluebuttonbn/locallib.php');
31
-require_once($CFG->libdir.'/adminlib.php');
31
+require_once($CFG->libdir . '/adminlib.php');
32 32
 
33 33
 /**
34 34
  * Helper class for validating settings used HTML for settings.php.
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     public static function section_general_shown() {
47 47
         global $CFG;
48 48
         return (!isset($CFG->bigbluebuttonbn['server_url']) ||
49
-                !isset($CFG->bigbluebuttonbn['shared_secret'])||
49
+                !isset($CFG->bigbluebuttonbn['shared_secret']) ||
50 50
 				!isset($CFG->bigbluebuttonbn['enable_html5']));
51 51
     }
52 52
 
Please login to merge, or discard this patch.