Completed
Push — master ( a4199d...5f856c )
by Jesus
01:51
created
classes/event/live_session_event.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,8 +41,8 @@
 block discarded – undo
41 41
      */
42 42
     protected function init($crud = 'r', $edulevel = self::LEVEL_OTHER) {
43 43
         parent::init($crud, $edulevel);
44
-        $this->description = "The user with id '##userid' triggered action ##other in a ".
45
-            "bigbluebutton meeting for the bigbluebuttonbn activity with id ".
44
+        $this->description = "The user with id '##userid' triggered action ##other in a " .
45
+            "bigbluebutton meeting for the bigbluebuttonbn activity with id " .
46 46
             "'##objectid' for the course id '##courseid'.";
47 47
     }
48 48
 
Please login to merge, or discard this patch.
classes/event/recording_unprotected.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
      */
42 42
     protected function init($crud = 'r', $edulevel = self::LEVEL_OTHER) {
43 43
         parent::init($crud, $edulevel);
44
-        $this->description = "The user with id '##userid' has unprotected a recording with id ".
44
+        $this->description = "The user with id '##userid' has unprotected a recording with id " .
45 45
             "'##other' in the course id '##courseid'.";
46 46
     }
47 47
 
Please login to merge, or discard this patch.
classes/event/recording_imported.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
      */
42 42
     protected function init($crud = 'r', $edulevel = self::LEVEL_OTHER) {
43 43
         parent::init($crud, $edulevel);
44
-        $this->description = "The user with id '##userid' has imported a recording with id ".
44
+        $this->description = "The user with id '##userid' has imported a recording with id " .
45 45
             "'##other' in the course id '##courseid'.";
46 46
     }
47 47
 
Please login to merge, or discard this patch.
classes/event/meeting_joined.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,8 +41,8 @@
 block discarded – undo
41 41
      */
42 42
     protected function init($crud = 'r', $edulevel = self::LEVEL_PARTICIPATING) {
43 43
         parent::init($crud, $edulevel);
44
-        $this->description = "The user with id '##userid' has joined a bigbluebutton meeting for ".
45
-            "the bigbluebuttonbn activity with id '##objectid' for the course id ".
44
+        $this->description = "The user with id '##userid' has joined a bigbluebutton meeting for " .
45
+            "the bigbluebuttonbn activity with id '##objectid' for the course id " .
46 46
             "'##courseid'.";
47 47
     }
48 48
 
Please login to merge, or discard this patch.
classes/event/recording_protected.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
      */
42 42
     protected function init($crud = 'r', $edulevel = self::LEVEL_OTHER) {
43 43
         parent::init($crud, $edulevel);
44
-        $this->description = "The user with id '##userid' has protected a recording with id ".
44
+        $this->description = "The user with id '##userid' has protected a recording with id " .
45 45
             "'##other' in the course id '##courseid'.";
46 46
     }
47 47
 
Please login to merge, or discard this patch.
classes/event/recording_viewed.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
      */
42 42
     protected function init($crud = 'r', $edulevel = self::LEVEL_OTHER) {
43 43
         parent::init($crud, $edulevel);
44
-        $this->description = "The user with id '##userid' has viewed a recording with id ".
44
+        $this->description = "The user with id '##userid' has viewed a recording with id " .
45 45
             "'##other' from the course id '##courseid'.";
46 46
     }
47 47
 
Please login to merge, or discard this patch.
mod_form.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -209,8 +209,8 @@  discard block
 block discarded – undo
209 209
             $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'],
210 210
                 $field['description_key'], 0, ['maxlength' => 4, 'size' => 6],
211 211
                 ['message' => get_string('mod_form_field_voicebridge_format_error', 'bigbluebuttonbn'),
212
-                 'type' => 'numeric', 'rule' => '####', 'validator' => 'server']
213
-              );
212
+                    'type' => 'numeric', 'rule' => '####', 'validator' => 'server']
213
+                );
214 214
         } else {
215 215
             $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'],
216 216
                 $field['description_key'], 0, ['maxlength' => 4, 'size' => 6]);
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
      */
249 249
     private function bigbluebuttonbn_mform_add_block_room_recordings(&$mform, $cfg) {
250 250
         $field = ['type' => 'hidden', 'name' => 'recordings_html', 'data_type' => PARAM_INT,
251
-                  'description_key' => null];
251
+                    'description_key' => null];
252 252
         if ($cfg['recordings_html_editable']) {
253 253
             $field['type'] = 'checkbox';
254 254
             $field['description_key'] = 'mod_form_field_recordings_html';
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
         $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'],
257 257
             $field['description_key'], $cfg['recordings_html_default']);
258 258
         $field = ['type' => 'hidden', 'name' => 'recordings_deleted', 'data_type' => PARAM_INT,
259
-                  'description_key' => null];
259
+                    'description_key' => null];
260 260
         if ($cfg['recordings_deleted_editable']) {
261 261
             $field['type'] = 'checkbox';
262 262
             $field['description_key'] = 'mod_form_field_recordings_deleted';
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
         $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'],
265 265
             $field['description_key'], $cfg['recordings_deleted_default']);
266 266
         $field = ['type' => 'hidden', 'name' => 'recordings_imported', 'data_type' => PARAM_INT,
267
-                  'description_key' => null];
267
+                    'description_key' => null];
268 268
         if ($cfg['importrecordings_enabled'] && $cfg['recordings_imported_editable']) {
269 269
             $field['type'] = 'checkbox';
270 270
             $field['description_key'] = 'mod_form_field_recordings_imported';
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
         $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'],
273 273
             $field['description_key'], $cfg['recordings_imported_default']);
274 274
         $field = ['type' => 'hidden', 'name' => 'recordings_preview', 'data_type' => PARAM_INT,
275
-                  'description_key' => null];
275
+                    'description_key' => null];
276 276
         if ($cfg['recordings_preview_editable']) {
277 277
             $field['type'] = 'checkbox';
278 278
             $field['description_key'] = 'mod_form_field_recordings_preview';
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
         $htmlselectiontype = html_writer::select($participantselection['type_options'],
343 343
             'bigbluebuttonbn_participant_selection_type', $participantselection['type_selected'], array(),
344 344
             array('id' => 'bigbluebuttonbn_participant_selection_type',
345
-                  'onchange' => 'M.mod_bigbluebuttonbn.modform.participantSelectionSet(); return 0;'));
345
+                    'onchange' => 'M.mod_bigbluebuttonbn.modform.participantSelectionSet(); return 0;'));
346 346
         $htmlselectionoptions = html_writer::select($participantselection['options'], 'bigbluebuttonbn_participant_selection',
347 347
             $participantselection['selected'], array(),
348 348
             array('id' => 'bigbluebuttonbn_participant_selection', 'disabled' => 'disabled'));
@@ -350,7 +350,7 @@  discard block
 block discarded – undo
350 350
             'type' => 'button', 'class' => 'btn btn-secondary',
351 351
             'value' => get_string('mod_form_field_participant_list_action_add', 'bigbluebuttonbn'),
352 352
             'onclick' => 'M.mod_bigbluebuttonbn.modform.participantAdd(); return 0;'
353
-          ));
353
+            ));
354 354
         $htmladdparticipant = html_writer::tag('div',
355 355
             $htmlselectiontype . '  ' . $htmlselectionoptions . '  ' . $htmlselectioninput, null);
356 356
         $mform->addElement('html', "\n\n");
@@ -392,9 +392,9 @@  discard block
 block discarded – undo
392 392
             $field['type'] = 'select';
393 393
             $field['data_type'] = PARAM_TEXT;
394 394
             $field['description_key'] = 'mod_form_field_block_clienttype';
395
-             $choices = array(BIGBLUEBUTTON_CLIENTTYPE_FLASH => get_string('mod_form_block_clienttype_flash', 'bigbluebuttonbn'),
396
-                             BIGBLUEBUTTON_CLIENTTYPE_HTML5 => get_string('mod_form_block_clienttype_html5', 'bigbluebuttonbn'));
397
-             $mform->addElement('header', 'clienttypeselection', get_string('mod_form_block_clienttype', 'bigbluebuttonbn'));
395
+                $choices = array(BIGBLUEBUTTON_CLIENTTYPE_FLASH => get_string('mod_form_block_clienttype_flash', 'bigbluebuttonbn'),
396
+                                BIGBLUEBUTTON_CLIENTTYPE_HTML5 => get_string('mod_form_block_clienttype_html5', 'bigbluebuttonbn'));
397
+                $mform->addElement('header', 'clienttypeselection', get_string('mod_form_block_clienttype', 'bigbluebuttonbn'));
398 398
             $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'],
399 399
                                     $field['description_key'], $cfg['clienttype_default'], $choices);
400 400
             return;
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -26,8 +26,8 @@  discard block
 block discarded – undo
26 26
 
27 27
 defined('MOODLE_INTERNAL') || die();
28 28
 
29
-require_once(dirname(__FILE__).'/locallib.php');
30
-require_once($CFG->dirroot.'/course/moodleform_mod.php');
29
+require_once(dirname(__FILE__) . '/locallib.php');
30
+require_once($CFG->dirroot . '/course/moodleform_mod.php');
31 31
 
32 32
 /**
33 33
  * Moodle class for mod_form.
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
         $serverversion = bigbluebuttonbn_get_server_version();
49 49
         if (is_null($serverversion)) {
50 50
             print_error('general_error_unable_connect', 'bigbluebuttonbn',
51
-                $CFG->wwwroot.'/admin/settings.php?section=modsettingbigbluebuttonbn');
51
+                $CFG->wwwroot . '/admin/settings.php?section=modsettingbigbluebuttonbn');
52 52
             return;
53 53
         }
54 54
         // Context.
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
         // If none is allowed, fail and return
80 80
         if (empty($jsvars['instanceTypeProfiles'])) {
81 81
             print_error('general_error_not_allowed_to_create_instances)', 'bigbluebuttonbn',
82
-                $CFG->wwwroot.'/admin/settings.php?section=modsettingbigbluebuttonbn');
82
+                $CFG->wwwroot . '/admin/settings.php?section=modsettingbigbluebuttonbn');
83 83
             return;
84 84
         }
85 85
         $this->bigbluebuttonbn_mform_add_block_profiles($mform, $jsvars['instanceTypeProfiles']);
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
                 );
128 128
                 $defaultvalues['presentation'] = $draftitemid;
129 129
             } catch (Exception $e) {
130
-                debugging('Presentation could not be loaded: '.$e->getMessage(), DEBUG_DEVELOPER);
130
+                debugging('Presentation could not be loaded: ' . $e->getMessage(), DEBUG_DEVELOPER);
131 131
                 return;
132 132
             }
133 133
         }
@@ -453,7 +453,7 @@  discard block
 block discarded – undo
453 453
             return;
454 454
         }
455 455
         $mform->addElement($type, $name, get_string($descriptionkey, 'bigbluebuttonbn'), $options);
456
-        if (get_string_manager()->string_exists($descriptionkey.'_help', 'bigbluebuttonbn')) {
456
+        if (get_string_manager()->string_exists($descriptionkey . '_help', 'bigbluebuttonbn')) {
457 457
             $mform->addHelpButton($name, $descriptionkey, 'bigbluebuttonbn');
458 458
         }
459 459
         if (!empty($rule)) {
Please login to merge, or discard this patch.
classes/output/mobile.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,6 @@
 block discarded – undo
28 28
 defined('MOODLE_INTERNAL') || die();
29 29
 
30 30
 use context_module;
31
-use mod_bigbluebuttonbn_external;
32 31
 require_once($CFG->dirroot . '/mod/bigbluebuttonbn/locallib.php');
33 32
 
34 33
 /**
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 
55 55
         global $OUTPUT, $SESSION, $CFG;
56 56
 
57
-        $args = (object) $args;
57
+        $args = (object)$args;
58 58
         $viewinstance = bigbluebuttonbn_view_validator($args->cmid, null);
59 59
         if (!$viewinstance) {
60 60
             $error = get_string('view_error_url_missing_parameters', 'bigbluebuttonbn');
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         $bigbluebuttonbn = $viewinstance['bigbluebuttonbn'];
67 67
         $context = context_module::instance($cm->id);
68 68
 
69
-        require_login($course->id, false , $cm, true, true);
69
+        require_login($course->id, false, $cm, true, true);
70 70
         require_capability('mod/bigbluebuttonbn:join', $context);
71 71
 
72 72
         // Add view event.
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 
112 112
         // Check if the BBB server is working.
113 113
         $serverversion = bigbluebuttonbn_get_server_version();
114
-        $bbbsession['serverversion'] = (string) $serverversion;
114
+        $bbbsession['serverversion'] = (string)$serverversion;
115 115
         if (is_null($serverversion)) {
116 116
 
117 117
             if ($bbbsession['administrator']) {
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
 
139 139
         // Operation URLs.
140 140
         $bbbsession['bigbluebuttonbnURL'] = $CFG->wwwroot . '/mod/bigbluebuttonbn/view.php?id=' . $bbbsession['cm']->id;
141
-        $bbbsession['logoutURL'] = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_view.php?action=logout&id='.$args->cmid .
141
+        $bbbsession['logoutURL'] = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_view.php?action=logout&id=' . $args->cmid .
142 142
             '&bn=' . $bbbsession['bigbluebuttonbn']->id;
143 143
         $bbbsession['recordingReadyURL'] = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_broker.php?action=recording_' .
144 144
             'ready&bigbluebuttonbn=' . $bbbsession['bigbluebuttonbn']->id;
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
             }
182 182
             if ($response['returncode'] == 'FAILED') {
183 183
                 // The meeting could not be created.
184
-                $errorkey = bigbluebuttonbn_get_error_key($response['messageKey'],  'view_error_create');
184
+                $errorkey = bigbluebuttonbn_get_error_key($response['messageKey'], 'view_error_create');
185 185
                 $e = get_string($errorkey, 'bigbluebuttonbn');
186 186
                 return(self::mobile_print_error($e));
187 187
             }
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
             bigbluebuttonbn_event_log(\mod_bigbluebuttonbn\event\events::$events['meeting_create'], $bigbluebuttonbn);
195 195
             // Insert a record that meeting was created.
196 196
             $overrides = array('meetingid' => $bbbsession['meetingid']);
197
-            $meta = '{"record":'.($bbbsession['record'] ? 'true' : 'false').'}';
197
+            $meta = '{"record":' . ($bbbsession['record'] ? 'true' : 'false') . '}';
198 198
             bigbluebuttonbn_log($bbbsession['bigbluebuttonbn'], BIGBLUEBUTTONBN_LOG_EVENT_CREATE, $overrides, $meta);
199 199
         }
200 200
 
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
 
213 213
         $data = array(
214 214
             'bigbluebuttonbn' => $bigbluebuttonbn,
215
-            'bbbsession' => (object) $bbbsession,
215
+            'bbbsession' => (object)$bbbsession,
216 216
             'urltojoin' => $urltojoin,
217 217
             'cmid' => $cm->id,
218 218
             'courseid' => $args->courseid
Please login to merge, or discard this patch.
classes/locallib/mobileview.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
         $session['importrecordings'] = ($session['managerecordings']);
59 59
         $session['modPW'] = $session['bigbluebuttonbn']->moderatorpass;
60 60
         $session['viewerPW'] = $session['bigbluebuttonbn']->viewerpass;
61
-        $session['meetingid'] = $session['bigbluebuttonbn']->meetingid.'-'.$session['course']->id.'-'.
61
+        $session['meetingid'] = $session['bigbluebuttonbn']->meetingid . '-' . $session['course']->id . '-' .
62 62
             $session['bigbluebuttonbn']->id;
63 63
         $session['meetingname'] = $session['bigbluebuttonbn']->name;
64 64
         $session['meetingdescription'] = $session['bigbluebuttonbn']->intro;
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
             $session['welcome'] = get_string('mod_form_field_welcome_default', 'bigbluebuttonbn');
78 78
         }
79 79
         if ($session['bigbluebuttonbn']->record) {
80
-            $session['welcome'] .= '<br><br>'.get_string('bbbrecordwarning', 'bigbluebuttonbn');
80
+            $session['welcome'] .= '<br><br>' . get_string('bbbrecordwarning', 'bigbluebuttonbn');
81 81
         }
82 82
         $session['openingtime'] = $session['bigbluebuttonbn']->openingtime;
83 83
         $session['closingtime'] = $session['bigbluebuttonbn']->closingtime;
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
         $session['originServerName'] = $parsedurl['host'];
89 89
         $session['originServerUrl'] = $CFG->wwwroot;
90 90
         $session['originServerCommonName'] = '';
91
-        $session['originTag'] = 'moodle-mod_bigbluebuttonbn ('.get_config('mod_bigbluebuttonbn', 'version').')';
91
+        $session['originTag'] = 'moodle-mod_bigbluebuttonbn (' . get_config('mod_bigbluebuttonbn', 'version') . ')';
92 92
         $session['bnserver'] = bigbluebuttonbn_is_bn_server();
93 93
         $session['clienttype'] = \mod_bigbluebuttonbn\locallib\config::get('clienttype_default');
94 94
 
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
             $data['welcome'] .= '<br><br>';
202 202
             $data['welcome'] .= str_replace(
203 203
                 '%duration%',
204
-                (string) $durationtime,
204
+                (string)$durationtime,
205 205
                 get_string('bbbdurationwarning', 'bigbluebuttonbn')
206 206
             );
207 207
         }
Please login to merge, or discard this patch.