Completed
Push — v2.3-stable ( cd79c3...8dc849 )
by Jesus
02:30 queued 42s
created
classes/privacy/provider.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -59,11 +59,11 @@  discard block
 block discarded – undo
59 59
      */
60 60
     public static function _get_metadata(collection $collection) {
61 61
 
62
-         // The table bigbluebuttonbn stores only the room properties.
63
-         // However, there is a chance that some personal information is stored as metadata.
64
-         // This would be done in the column 'participants' where rules can be set to define BBB roles.
65
-         // It is fair to say that only the userid is stored, which is useless if user is removed.
66
-         // But if this is a concern a refactoring on the way the rules are stored will be required.
62
+            // The table bigbluebuttonbn stores only the room properties.
63
+            // However, there is a chance that some personal information is stored as metadata.
64
+            // This would be done in the column 'participants' where rules can be set to define BBB roles.
65
+            // It is fair to say that only the userid is stored, which is useless if user is removed.
66
+            // But if this is a concern a refactoring on the way the rules are stored will be required.
67 67
         $collection->add_database_table('bigbluebuttonbn', [
68 68
             'participants' => 'privacy:metadata:bigbluebuttonbn:participants',
69 69
         ], 'privacy:metadata:bigbluebuttonbn');
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
                     'meetingid' => $record->meetingid,
208 208
                     'log' => $record->log,
209 209
                     'meta' => $record->meta,
210
-                  ];
210
+                    ];
211 211
                 return $carry;
212 212
             },
213 213
             function($instanceid, $data) use ($user, $instanceidstocmids) {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
 
37 37
 defined('MOODLE_INTERNAL') || die();
38 38
 
39
-require_once($CFG->dirroot . '/mod/bigbluebuttonbn/locallib.php');
39
+require_once($CFG->dirroot.'/mod/bigbluebuttonbn/locallib.php');
40 40
 
41 41
 /**
42 42
  * Privacy class for requesting user data.
Please login to merge, or discard this patch.
classes/output/import_view.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
             }
87 87
             $recordings = bigbluebuttonbn_get_allrecordings(
88 88
                 $selected, $bigbluebuttonbnid, false,
89
-                (boolean)\mod_bigbluebuttonbn\locallib\config::get('importrecordings_from_deleted_enabled')
89
+                (boolean) \mod_bigbluebuttonbn\locallib\config::get('importrecordings_from_deleted_enabled')
90 90
             );
91 91
             // Exclude the ones that are already imported.
92 92
             if (!empty($recordings)) {
Please login to merge, or discard this patch.
classes/output/index.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -221,10 +221,10 @@
 block discarded – undo
221 221
             if ($groupobj != null) {
222 222
                 $actions .= '  <INPUT type="hidden" name="g" value="'.$groupobj->id.'">'."\n";
223 223
             }
224
-            $actions .= '  <INPUT type="submit" name="submit" value="' .
225
-                get_string('view_conference_action_end', 'bigbluebuttonbn') .
226
-                '" class="btn btn-primary btn-sm" onclick="return confirm(\'' .
227
-                get_string('index_confirm_end', 'bigbluebuttonbn') . '\')">' . "\n";
224
+            $actions .= '  <INPUT type="submit" name="submit" value="'.
225
+                get_string('view_conference_action_end', 'bigbluebuttonbn').
226
+                '" class="btn btn-primary btn-sm" onclick="return confirm(\''.
227
+                get_string('index_confirm_end', 'bigbluebuttonbn').'\')">'."\n";
228 228
             $actions .= '</form>'."\n";
229 229
         }
230 230
         return $actions;
Please login to merge, or discard this patch.
classes/output/mobile.php 2 patches
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -29,8 +29,8 @@  discard block
 block discarded – undo
29 29
 
30 30
 use context_module;
31 31
 use mod_bigbluebuttonbn_external;
32
-require_once($CFG->dirroot . '/mod/bigbluebuttonbn/locallib.php');
33
-require_once($CFG->dirroot . '/lib/grouplib.php');
32
+require_once($CFG->dirroot.'/mod/bigbluebuttonbn/locallib.php');
33
+require_once($CFG->dirroot.'/lib/grouplib.php');
34 34
 
35 35
 /**
36 36
  * Mobile output class for bigbluebuttonbn
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
         $bigbluebuttonbn = $viewinstance['bigbluebuttonbn'];
68 68
         $context = context_module::instance($cm->id);
69 69
 
70
-        require_login($course->id, false , $cm, true, true);
70
+        require_login($course->id, false, $cm, true, true);
71 71
         require_capability('mod/bigbluebuttonbn:join', $context);
72 72
 
73 73
         // Add view event.
@@ -138,15 +138,15 @@  discard block
 block discarded – undo
138 138
         }
139 139
 
140 140
         // Operation URLs.
141
-        $bbbsession['bigbluebuttonbnURL'] = $CFG->wwwroot . '/mod/bigbluebuttonbn/view.php?id=' . $bbbsession['cm']->id;
142
-        $bbbsession['logoutURL'] = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_view.php?action=logout&id='.$args->cmid .
143
-            '&bn=' . $bbbsession['bigbluebuttonbn']->id;
144
-        $bbbsession['recordingReadyURL'] = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_broker.php?action=recording_' .
145
-            'ready&bigbluebuttonbn=' . $bbbsession['bigbluebuttonbn']->id;
146
-        $bbbsession['meetingEventsURL'] = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_broker.php?action=meeting' .
147
-            '_events&bigbluebuttonbn=' . $bbbsession['bigbluebuttonbn']->id;
148
-        $bbbsession['joinURL'] = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_view.php?action=join&id=' . $args->cmid .
149
-            '&bn=' . $bbbsession['bigbluebuttonbn']->id;
141
+        $bbbsession['bigbluebuttonbnURL'] = $CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$bbbsession['cm']->id;
142
+        $bbbsession['logoutURL'] = $CFG->wwwroot.'/mod/bigbluebuttonbn/bbb_view.php?action=logout&id='.$args->cmid.
143
+            '&bn='.$bbbsession['bigbluebuttonbn']->id;
144
+        $bbbsession['recordingReadyURL'] = $CFG->wwwroot.'/mod/bigbluebuttonbn/bbb_broker.php?action=recording_'.
145
+            'ready&bigbluebuttonbn='.$bbbsession['bigbluebuttonbn']->id;
146
+        $bbbsession['meetingEventsURL'] = $CFG->wwwroot.'/mod/bigbluebuttonbn/bbb_broker.php?action=meeting'.
147
+            '_events&bigbluebuttonbn='.$bbbsession['bigbluebuttonbn']->id;
148
+        $bbbsession['joinURL'] = $CFG->wwwroot.'/mod/bigbluebuttonbn/bbb_view.php?action=join&id='.$args->cmid.
149
+            '&bn='.$bbbsession['bigbluebuttonbn']->id;
150 150
 
151 151
         // Initialize session variable used across views.
152 152
         $SESSION->bigbluebuttonbn_bbbsession = $bbbsession;
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
             }
183 183
             if ($response['returncode'] == 'FAILED') {
184 184
                 // The meeting could not be created.
185
-                $errorkey = bigbluebuttonbn_get_error_key($response['messageKey'],  'view_error_create');
185
+                $errorkey = bigbluebuttonbn_get_error_key($response['messageKey'], 'view_error_create');
186 186
                 $e = get_string($errorkey, 'bigbluebuttonbn');
187 187
                 return(self::mobile_print_error($e));
188 188
             }
Please login to merge, or discard this patch.
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
 require_once($CFG->dirroot . '/lib/grouplib.php');
34 33
 
Please login to merge, or discard this patch.
classes/search/tags.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -65,8 +65,8 @@  discard block
 block discarded – undo
65 65
             return null;
66 66
         }
67 67
 
68
-        $result = $DB->get_recordset_sql('SELECT modtable.* FROM {' . $this->get_module_name() .
69
-            '} modtable ' . $contextjoin, array_merge($contextparams));
68
+        $result = $DB->get_recordset_sql('SELECT modtable.* FROM {'.$this->get_module_name().
69
+            '} modtable '.$contextjoin, array_merge($contextparams));
70 70
 
71 71
         return($result);
72 72
     }
@@ -96,12 +96,12 @@  discard block
 block discarded – undo
96 96
 
97 97
         } catch (\dml_missing_record_exception $ex) {
98 98
             // Notify it as we run here as admin, we should see everything.
99
-            debugging('Error retrieving ' . $this->areaid . ' ' . $record->id . ' document, not all required data is available: ' .
99
+            debugging('Error retrieving '.$this->areaid.' '.$record->id.' document, not all required data is available: '.
100 100
                 $ex->getMessage(), DEBUG_DEVELOPER);
101 101
             return false;
102 102
         } catch (\dml_exception $ex) {
103 103
             // Notify it as we run here as admin, we should see everything.
104
-            debugging('Error retrieving ' . $this->areaid . ' ' . $record->id . ' document: ' . $ex->getMessage(), DEBUG_DEVELOPER);
104
+            debugging('Error retrieving '.$this->areaid.' '.$record->id.' document: '.$ex->getMessage(), DEBUG_DEVELOPER);
105 105
             return false;
106 106
         }
107 107
 
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,6 @@
 block discarded – undo
24 24
  */
25 25
 
26 26
 namespace mod_bigbluebuttonbn\search;
27
-use core_tag\output\tag;
28 27
 
29 28
 defined('MOODLE_INTERNAL') || die();
30 29
 
Please login to merge, or discard this patch.
classes/event/base.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
             'objectid' => $this->objectid,
84 84
             'contextinstanceid' => $this->contextinstanceid,
85 85
             'other' => $this->other
86
-          );
86
+            );
87 87
         $string = $this->description;
88 88
         foreach ($vars as $key => $value) {
89 89
             $string = str_replace("##" . $key, $value, $string);
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
           );
87 87
         $string = $this->description;
88 88
         foreach ($vars as $key => $value) {
89
-            $string = str_replace("##" . $key, $value, $string);
89
+            $string = str_replace("##".$key, $value, $string);
90 90
         }
91 91
         return $string;
92 92
     }
@@ -108,9 +108,9 @@  discard block
 block discarded – undo
108 108
      * @param string $url The url to the assign module instance.
109 109
      */
110 110
     public function set_legacy_logdata($action = '', $info = '', $url = '') {
111
-        $fullurl = 'view.php?id=' . $this->contextinstanceid;
111
+        $fullurl = 'view.php?id='.$this->contextinstanceid;
112 112
         if ($url != '') {
113
-            $fullurl .= '&' . $url;
113
+            $fullurl .= '&'.$url;
114 114
         }
115 115
 
116 116
         $this->legacylogdata = array($this->courseid, 'bigbluebuttonbn', $action, $fullurl, $info, $this->contextinstanceid);
Please login to merge, or discard this patch.
classes/event/events.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 
28 28
 defined('MOODLE_INTERNAL') || die();
29 29
 
30
-require_once($CFG->dirroot . '/mod/bigbluebuttonbn/locallib.php');
30
+require_once($CFG->dirroot.'/mod/bigbluebuttonbn/locallib.php');
31 31
 
32 32
 /**
33 33
  * The mod_bigbluebuttonbn class for event name definition.
Please login to merge, or discard this patch.
classes/event/activity_viewed.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
      */
44 44
     protected function init($crud = 'r', $edulevel = self::LEVEL_PARTICIPATING) {
45 45
         parent::init($crud, $edulevel);
46
-        $this->description = "The user with id '##userid' viewed the bigbluebuttonbn activity " .
46
+        $this->description = "The user with id '##userid' viewed the bigbluebuttonbn activity ".
47 47
             "with id '##objectid' for the course id '##courseid'.";
48 48
     }
49 49
 
Please login to merge, or discard this patch.
classes/external.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
      */
62 62
     public static function view_bigbluebuttonbn($bigbluebuttonbnid) {
63 63
         global $DB, $CFG;
64
-        require_once($CFG->dirroot . "/mod/bigbluebuttonbn/lib.php");
64
+        require_once($CFG->dirroot."/mod/bigbluebuttonbn/lib.php");
65 65
 
66 66
         $params = self::validate_parameters(self::view_bigbluebuttonbn_parameters(),
67 67
                                             array(
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
      * @since Moodle 3.3
110 110
      */
111 111
     public static function get_bigbluebuttonbns_by_courses_parameters() {
112
-        return new external_function_parameters (
112
+        return new external_function_parameters(
113 113
             array(
114 114
                 'courseids' => new external_multiple_structure(
115 115
                     new external_value(PARAM_INT, 'Course id'), 'Array of course ids', VALUE_DEFAULT, array()
Please login to merge, or discard this patch.