Completed
Push — v2.3-stable ( af3f38...a39ba1 )
by Jesus
03:44 queued 01:40
created
backup/moodle2/backup_bigbluebuttonbn_stepslib.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
         $logs = new backup_nested_element('logs');
60 60
 
61 61
         $log = new backup_nested_element('log', array('id'), array(
62
-                'courseid', 'bigbluebuttonbnid', 'userid', 'timecreated', 'meetingid', 'log', 'meta', ));
62
+                'courseid', 'bigbluebuttonbnid', 'userid', 'timecreated', 'meetingid', 'log', 'meta',));
63 63
 
64 64
         // Build the tree.
65 65
         $bigbluebuttonbn->add_child($logs);
Please login to merge, or discard this patch.
import_view.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
     print_error('view_error_invalid_session', plugin::COMPONENT);
48 48
 }
49 49
 
50
-if (!(boolean)\mod_bigbluebuttonbn\locallib\config::importrecordings_enabled()) {
50
+if (!(boolean) \mod_bigbluebuttonbn\locallib\config::importrecordings_enabled()) {
51 51
     print_error('view_message_importrecordings_disabled', plugin::COMPONENT);
52 52
 }
53 53
 
Please login to merge, or discard this patch.
view.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
 bigbluebuttonbn_view_bbbsession_set($PAGE->context, $bbbsession);
59 59
 
60 60
 // Validates if the BigBlueButton server is working.
61
-$serverversion = bigbluebuttonbn_get_server_version();  // In locallib.
61
+$serverversion = bigbluebuttonbn_get_server_version(); // In locallib.
62 62
 if ($serverversion === null) {
63 63
     $errmsg = 'view_error_unable_join_student';
64 64
     $errurl = '/course/view.php';
Please login to merge, or discard this patch.
db/mobile.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
             'coursebigbluebuttonbn' => array( // Handler unique name (can be anything).
32 32
                 'displaydata' => array(
33 33
                     'title' => 'pluginname',
34
-                    'icon' => $CFG->wwwroot . '/mod/bigbluebuttonbn/pix/icon.gif',
34
+                    'icon' => $CFG->wwwroot.'/mod/bigbluebuttonbn/pix/icon.gif',
35 35
                     'class' => '',
36 36
                 ),
37 37
                 'delegate' => 'CoreCourseModuleDelegate', // Delegate (where to display the link to the add-on).
Please login to merge, or discard this patch.
classes/locallib/notifier.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
  * Helper class for sending notifications.
Please login to merge, or discard this patch.
classes/locallib/config.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 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
  * Handles the global configuration based on config.php.
@@ -128,10 +128,10 @@  discard block
 block discarded – undo
128 128
     public static function get($setting) {
129 129
         global $CFG;
130 130
         if (isset($CFG->bigbluebuttonbn[$setting])) {
131
-            return (string)$CFG->bigbluebuttonbn[$setting];
131
+            return (string) $CFG->bigbluebuttonbn[$setting];
132 132
         }
133 133
         if (isset($CFG->{'bigbluebuttonbn_'.$setting})) {
134
-            return (string)$CFG->{'bigbluebuttonbn_'.$setting};
134
+            return (string) $CFG->{'bigbluebuttonbn_'.$setting};
135 135
         }
136 136
         return self::defaultvalue($setting);
137 137
     }
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
      * @return boolean
143 143
      */
144 144
     public static function recordings_enabled() {
145
-        return (boolean)self::get('recordings_enabled');
145
+        return (boolean) self::get('recordings_enabled');
146 146
     }
147 147
 
148 148
     /**
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
      * @return boolean
152 152
      */
153 153
     public static function importrecordings_enabled() {
154
-        return (boolean)self::get('importrecordings_enabled');
154
+        return (boolean) self::get('importrecordings_enabled');
155 155
     }
156 156
 
157 157
     /**
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
      * @return boolean
161 161
      */
162 162
     public static function clienttype_enabled() {
163
-        return (boolean)self::get('clienttype_enabled');
163
+        return (boolean) self::get('clienttype_enabled');
164 164
     }
165 165
 
166 166
     /**
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 1 patch
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.