Completed
Push — master ( 711720...864c5a )
by Jesus
02:41
created
classes/event/bigbluebuttonbn_activity_viewed.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
      * @return string
39 39
      */
40 40
     public function get_description() {
41
-        $a = (object) array('userid' => $this->userid, 'bigbluebuttonbnid' => $this->objectid, 'courseid' => $this->contextinstanceid);
41
+        $a = (object)array('userid' => $this->userid, 'bigbluebuttonbnid' => $this->objectid, 'courseid' => $this->contextinstanceid);
42 42
         return "The user with id '$a->userid' viewed the bigbluebuttonbn activity with id '$a->bigbluebuttonbnid' for " .
43 43
         "the course id '$a->courseid'.";
44 44
     }
Please login to merge, or discard this patch.
classes/event/bigbluebuttonbn_meeting_joined.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
      * @return string
39 39
      */
40 40
     public function get_description() {
41
-        $a = (object) array('userid' => $this->userid, 'bigbluebuttonbnid' => $this->objectid, 'courseid' => $this->contextinstanceid);
41
+        $a = (object)array('userid' => $this->userid, 'bigbluebuttonbnid' => $this->objectid, 'courseid' => $this->contextinstanceid);
42 42
         return "The user with id '$a->userid' has joined a bigbluebutton meeting for the bigbluebuttonbn activity with id '$a->bigbluebuttonbnid' for the course id '$a->courseid'.";
43 43
     }
44 44
 
Please login to merge, or discard this patch.
classes/event/bigbluebuttonbn_meeting_created.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
      * @return string
39 39
      */
40 40
     public function get_description() {
41
-        $a = (object) array('userid' => $this->userid, 'bigbluebuttonbnid' => $this->objectid, 'courseid' => $this->contextinstanceid);
41
+        $a = (object)array('userid' => $this->userid, 'bigbluebuttonbnid' => $this->objectid, 'courseid' => $this->contextinstanceid);
42 42
         return "The user with id '$a->userid' created a bigbluebutton meeting for the bigbluebuttonbn activity with id '$a->bigbluebuttonbnid' for the course id '$a->courseid'.";
43 43
     }
44 44
 
Please login to merge, or discard this patch.
classes/event/bigbluebuttonbn_meeting_ended.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
      * @return string
39 39
      */
40 40
     public function get_description() {
41
-        $a = (object) array('userid' => $this->userid, 'bigbluebuttonbnid' => $this->objectid, 'courseid' => $this->contextinstanceid);
41
+        $a = (object)array('userid' => $this->userid, 'bigbluebuttonbnid' => $this->objectid, 'courseid' => $this->contextinstanceid);
42 42
         return "A bigbluebutton meeting for the bigbluebuttonbn activity with id '$a->bigbluebuttonbnid' for the course id '$a->courseid' has been forcibly ended by the user with id '$a->userid'.";
43 43
     }
44 44
 
Please login to merge, or discard this patch.
classes/event/bigbluebuttonbn_meeting_left.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
      * @return string
39 39
      */
40 40
     public function get_description() {
41
-        $a = (object) array('userid' => $this->userid, 'bigbluebuttonbnid' => $this->objectid, 'courseid' => $this->contextinstanceid);
41
+        $a = (object)array('userid' => $this->userid, 'bigbluebuttonbnid' => $this->objectid, 'courseid' => $this->contextinstanceid);
42 42
         return "The user with id '$a->userid' has left a bigbluebutton meeting for the bigbluebuttonbn activity with id '$a->bigbluebuttonbnid' for the course id '$a->courseid'.";
43 43
     }
44 44
 
Please login to merge, or discard this patch.
locallib.php 2 patches
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -120,6 +120,10 @@  discard block
 block discarded – undo
120 120
     return $url;
121 121
 }
122 122
 
123
+/**
124
+ * @param string $URL
125
+ * @param string $SALT
126
+ */
123 127
 function bigbluebuttonbn_getMeetingsURL($URL, $SALT) {
124 128
     $base_url = $URL."api/getMeetings?";
125 129
     $url = $base_url.'&checksum='.sha1("getMeetings".$SALT);
@@ -1112,6 +1116,10 @@  discard block
 block discarded – undo
1112 1116
     return $error;
1113 1117
 }
1114 1118
 
1119
+/**
1120
+ * @param string $URL
1121
+ * @param string $SALT
1122
+ */
1115 1123
 function bigbluebuttonbn_setConfigXMLParams( $meetingID, $configXML, $URL, $SALT) {
1116 1124
     $params = 'configXML='.urlencode($configXML).'&meetingID='.urlencode($meetingID);
1117 1125
     $config_xml_params = $params.'&checksum='.sha1("setConfigXML".$params.$SALT);
Please login to merge, or discard this patch.
Spacing   +64 added lines, -64 removed lines patch added patch discarded remove patch
@@ -61,68 +61,68 @@  discard block
 block discarded – undo
61 61
     ////////////////////////////
62 62
 //  BigBlueButton API Calls  //
63 63
     ////////////////////////////
64
-function bigbluebuttonbn_getJoinURL( $meetingID, $userName, $PW, $SALT, $URL, $logoutURL, $configToken=NULL, $userId=NULL) {
65
-    $url_join = $URL."api/join?";
66
-    $params = 'meetingID='.urlencode($meetingID).'&fullName='.urlencode($userName).'&password='.urlencode($PW).'&logoutURL='.urlencode($logoutURL);
64
+function bigbluebuttonbn_getJoinURL($meetingID, $userName, $PW, $SALT, $URL, $logoutURL, $configToken = NULL, $userId = NULL) {
65
+    $url_join = $URL . "api/join?";
66
+    $params = 'meetingID=' . urlencode($meetingID) . '&fullName=' . urlencode($userName) . '&password=' . urlencode($PW) . '&logoutURL=' . urlencode($logoutURL);
67 67
     if (!is_null($userId)) {
68
-        $params .= "&userID=".urlencode($userId);
68
+        $params .= "&userID=" . urlencode($userId);
69 69
     }
70 70
     if (!is_null($configToken)) {
71
-        $params .= '&configToken='.$configToken;
71
+        $params .= '&configToken=' . $configToken;
72 72
     }
73
-    $url = $url_join.$params.'&checksum='.sha1("join".$params.$SALT);
73
+    $url = $url_join . $params . '&checksum=' . sha1("join" . $params . $SALT);
74 74
     return $url;
75 75
 }
76 76
 
77
-function bigbluebuttonbn_getCreateMeetingURL($name, $meetingID, $attendeePW, $moderatorPW, $welcome, $logoutURL, $SALT, $URL, $record = 'false', $duration=0, $voiceBridge=0, $maxParticipants=0, $metadata=array()) {
78
-    $url_create = $URL."api/create?";
77
+function bigbluebuttonbn_getCreateMeetingURL($name, $meetingID, $attendeePW, $moderatorPW, $welcome, $logoutURL, $SALT, $URL, $record = 'false', $duration = 0, $voiceBridge = 0, $maxParticipants = 0, $metadata = array()) {
78
+    $url_create = $URL . "api/create?";
79 79
 
80
-    $params = 'name='.urlencode($name).'&meetingID='.urlencode($meetingID).'&attendeePW='.urlencode($attendeePW).'&moderatorPW='.urlencode($moderatorPW).'&logoutURL='.urlencode($logoutURL).'&record='.$record;
80
+    $params = 'name=' . urlencode($name) . '&meetingID=' . urlencode($meetingID) . '&attendeePW=' . urlencode($attendeePW) . '&moderatorPW=' . urlencode($moderatorPW) . '&logoutURL=' . urlencode($logoutURL) . '&record=' . $record;
81 81
 
82 82
     $voiceBridge = intval($voiceBridge);
83 83
     if ($voiceBridge > 0 && $voiceBridge < 79999) {
84
-        $params .= '&voiceBridge='.$voiceBridge;
84
+        $params .= '&voiceBridge=' . $voiceBridge;
85 85
     }
86 86
 
87 87
     $duration = intval($duration);
88 88
     if ($duration > 0) {
89
-        $params .= '&duration='.$duration;
89
+        $params .= '&duration=' . $duration;
90 90
     }
91 91
 
92 92
     $maxParticipants = intval($maxParticipants);
93 93
     if ($maxParticipants > 0) {
94
-        $params .= '&maxParticipants='.$maxParticipants;
94
+        $params .= '&maxParticipants=' . $maxParticipants;
95 95
     }
96 96
 
97
-    if (trim( $welcome )) {
98
-        $params .= '&welcome='.urlencode($welcome);
97
+    if (trim($welcome)) {
98
+        $params .= '&welcome=' . urlencode($welcome);
99 99
     }
100 100
 
101 101
     foreach ($metadata as $key => $value) {
102
-        $params .= '&'.$key.'='.urlencode($value);
102
+        $params .= '&' . $key . '=' . urlencode($value);
103 103
     }
104 104
 
105
-    $url = $url_create.$params.'&checksum='.sha1("create".$params.$SALT);
105
+    $url = $url_create . $params . '&checksum=' . sha1("create" . $params . $SALT);
106 106
     return $url;
107 107
 }
108 108
 
109 109
 function bigbluebuttonbn_getIsMeetingRunningURL($meetingID, $URL, $SALT) {
110
-    $base_url = $URL."api/isMeetingRunning?";
111
-    $params = 'meetingID='.urlencode($meetingID);
112
-    $url = $base_url.$params.'&checksum='.sha1("isMeetingRunning".$params.$SALT);
110
+    $base_url = $URL . "api/isMeetingRunning?";
111
+    $params = 'meetingID=' . urlencode($meetingID);
112
+    $url = $base_url . $params . '&checksum=' . sha1("isMeetingRunning" . $params . $SALT);
113 113
     return $url;
114 114
 }
115 115
 
116 116
 function bigbluebuttonbn_getMeetingInfoURL($meetingID, $modPW, $URL, $SALT) {
117
-    $base_url = $URL."api/getMeetingInfo?";
118
-    $params = 'meetingID='.urlencode($meetingID).'&password='.urlencode($modPW);
119
-    $url = $base_url.$params.'&checksum='.sha1("getMeetingInfo".$params.$SALT);
117
+    $base_url = $URL . "api/getMeetingInfo?";
118
+    $params = 'meetingID=' . urlencode($meetingID) . '&password=' . urlencode($modPW);
119
+    $url = $base_url . $params . '&checksum=' . sha1("getMeetingInfo" . $params . $SALT);
120 120
     return $url;
121 121
 }
122 122
 
123 123
 function bigbluebuttonbn_getMeetingsURL($URL, $SALT) {
124
-    $base_url = $URL."api/getMeetings?";
125
-    $url = $base_url.'&checksum='.sha1("getMeetings".$SALT);
124
+    $base_url = $URL . "api/getMeetings?";
125
+    $url = $base_url . '&checksum=' . sha1("getMeetings" . $SALT);
126 126
     return $url;
127 127
 }
128 128
 
@@ -131,9 +131,9 @@  discard block
 block discarded – undo
131 131
  * @param string $SALT
132 132
  */
133 133
 function bigbluebuttonbn_getEndMeetingURL($meetingID, $modPW, $URL, $SALT) {
134
-    $base_url = $URL."api/end?";
135
-    $params = 'meetingID='.urlencode($meetingID).'&password='.urlencode($modPW);
136
-    $url = $base_url.$params.'&checksum='.sha1("end".$params.$SALT);
134
+    $base_url = $URL . "api/end?";
135
+    $params = 'meetingID=' . urlencode($meetingID) . '&password=' . urlencode($modPW);
136
+    $url = $base_url . $params . '&checksum=' . sha1("end" . $params . $SALT);
137 137
     return $url;
138 138
 }
139 139
 
@@ -143,9 +143,9 @@  discard block
 block discarded – undo
143 143
  * @param string $SALT
144 144
  */
145 145
 function bigbluebuttonbn_getRecordingsURL($meetingID, $URL, $SALT) {
146
-    $base_url_record = $URL."api/getRecordings?";
147
-    $params = "meetingID=".urlencode($meetingID);
148
-    $url = $base_url_record.$params."&checksum=".sha1("getRecordings".$params.$SALT);
146
+    $base_url_record = $URL . "api/getRecordings?";
147
+    $params = "meetingID=" . urlencode($meetingID);
148
+    $url = $base_url_record . $params . "&checksum=" . sha1("getRecordings" . $params . $SALT);
149 149
     return $url;
150 150
 }
151 151
 
@@ -154,9 +154,9 @@  discard block
 block discarded – undo
154 154
  * @param string $SALT
155 155
  */
156 156
 function bigbluebuttonbn_getDeleteRecordingsURL($recordID, $URL, $SALT) {
157
-    $url_delete = $URL."api/deleteRecordings?";
158
-    $params = 'recordID='.urlencode($recordID);
159
-    $url = $url_delete.$params.'&checksum='.sha1("deleteRecordings".$params.$SALT);
157
+    $url_delete = $URL . "api/deleteRecordings?";
158
+    $params = 'recordID=' . urlencode($recordID);
159
+    $url = $url_delete . $params . '&checksum=' . sha1("deleteRecordings" . $params . $SALT);
160 160
     return $url;
161 161
 }
162 162
 
@@ -166,45 +166,45 @@  discard block
 block discarded – undo
166 166
  * @param string $SALT
167 167
  */
168 168
 function bigbluebuttonbn_getPublishRecordingsURL($recordID, $set, $URL, $SALT) {
169
-    $url_publish = $URL."api/publishRecordings?";
170
-    $params = 'recordID='.$recordID."&publish=".$set;
171
-    $url = $url_publish.$params.'&checksum='.sha1("publishRecordings".$params.$SALT);
169
+    $url_publish = $URL . "api/publishRecordings?";
170
+    $params = 'recordID=' . $recordID . "&publish=" . $set;
171
+    $url = $url_publish . $params . '&checksum=' . sha1("publishRecordings" . $params . $SALT);
172 172
     return $url;
173 173
 }
174 174
 
175
-function bigbluebuttonbn_getUpdateRecordingsURL($recordID, $URL, $SALT, $metadata=array()) {
176
-    $url_update = $URL."api/updateRecordings?";
177
-    $params = 'recordID='.$recordID.$meta;
175
+function bigbluebuttonbn_getUpdateRecordingsURL($recordID, $URL, $SALT, $metadata = array()) {
176
+    $url_update = $URL . "api/updateRecordings?";
177
+    $params = 'recordID=' . $recordID . $meta;
178 178
     foreach ($metadata as $key => $value) {
179
-        $params .= '&'.$key.'='.urlencode($value);
179
+        $params .= '&' . $key . '=' . urlencode($value);
180 180
     }
181
-    $url = $url_update.$params.'&checksum='.sha1("updateRecordings".$params.$SALT);
181
+    $url = $url_update . $params . '&checksum=' . sha1("updateRecordings" . $params . $SALT);
182 182
     return $url;
183 183
 }
184 184
 
185 185
 function bigbluebuttonbn_getDefaultConfigXMLURL($URL, $SALT) {
186
-    $url_default_config = $URL."api/getDefaultConfigXML?";
186
+    $url_default_config = $URL . "api/getDefaultConfigXML?";
187 187
     $params = '';
188
-    $url = $url_default_config.$params.'&checksum='.sha1("getDefaultConfigXML".$params.$SALT);
188
+    $url = $url_default_config . $params . '&checksum=' . sha1("getDefaultConfigXML" . $params . $SALT);
189 189
     return $url;
190 190
 }
191 191
 
192
-function bigbluebuttonbn_getCreateMeetingArray($username, $meetingID, $welcomeString, $mPW, $aPW, $SALT, $URL, $logoutURL, $record='false', $duration=0, $voiceBridge=0, $maxParticipants=0, $metadata=array(), $presentation_name=NULL, $presentation_url=NULL) {
192
+function bigbluebuttonbn_getCreateMeetingArray($username, $meetingID, $welcomeString, $mPW, $aPW, $SALT, $URL, $logoutURL, $record = 'false', $duration = 0, $voiceBridge = 0, $maxParticipants = 0, $metadata = array(), $presentation_name = NULL, $presentation_url = NULL) {
193 193
     $create_meeting_url = bigbluebuttonbn_getCreateMeetingURL($username, $meetingID, $aPW, $mPW, $welcomeString, $logoutURL, $SALT, $URL, $record, $duration, $voiceBridge, $maxParticipants, $metadata);
194 194
     if (!is_null($presentation_name) && !is_null($presentation_url)) {
195
-        $xml = bigbluebuttonbn_wrap_xml_load_file( $create_meeting_url,
195
+        $xml = bigbluebuttonbn_wrap_xml_load_file($create_meeting_url,
196 196
                 BIGBLUEBUTTONBN_METHOD_POST,
197
-                "<?xml version='1.0' encoding='UTF-8'?><modules><module name='presentation'><document url='".$presentation_url."' /></module></modules>"
197
+                "<?xml version='1.0' encoding='UTF-8'?><modules><module name='presentation'><document url='" . $presentation_url . "' /></module></modules>"
198 198
                 );
199 199
     } else {
200
-        $xml = bigbluebuttonbn_wrap_xml_load_file( $create_meeting_url );
200
+        $xml = bigbluebuttonbn_wrap_xml_load_file($create_meeting_url);
201 201
     }
202 202
 
203 203
     if ($xml) {
204 204
         if ($xml->meetingID) {
205
-            return array('returncode' => $xml->returncode, 'message' => $xml->message, 'messageKey' => $xml->messageKey, 'meetingID' => $xml->meetingID, 'attendeePW' => $xml->attendeePW, 'moderatorPW' => $xml->moderatorPW, 'hasBeenForciblyEnded' => $xml->hasBeenForciblyEnded );
205
+            return array('returncode' => $xml->returncode, 'message' => $xml->message, 'messageKey' => $xml->messageKey, 'meetingID' => $xml->meetingID, 'attendeePW' => $xml->attendeePW, 'moderatorPW' => $xml->moderatorPW, 'hasBeenForciblyEnded' => $xml->hasBeenForciblyEnded);
206 206
         } else {
207
-            return array('returncode' => $xml->returncode, 'message' => $xml->message, 'messageKey' => $xml->messageKey );
207
+            return array('returncode' => $xml->returncode, 'message' => $xml->message, 'messageKey' => $xml->messageKey);
208 208
         }
209 209
     } else {
210 210
         return null;
@@ -383,7 +383,7 @@  discard block
 block discarded – undo
383 383
 
384 384
 function bigbluebuttonbn_getDefaultConfigXMLArray($URL, $SALT) {
385 385
     $default_config_xml = bigbluebuttonbn_getDefaultConfigXML($URL, $SALT);
386
-    $default_config_xml_array = (array) $default_config_xml;
386
+    $default_config_xml_array = (array)$default_config_xml;
387 387
     return $default_config_xml_array;
388 388
 }
389 389
 
@@ -392,18 +392,18 @@  discard block
 block discarded – undo
392 392
     //Add formats
393 393
     $playbackArray = array();
394 394
     foreach ($recording->playback->format as $format) {
395
-        $playbackArray[(string) $format->type] = array('type' => (string) $format->type, 'url' => (string) $format->url, 'length' => (string) $format->length);
395
+        $playbackArray[(string)$format->type] = array('type' => (string)$format->type, 'url' => (string)$format->url, 'length' => (string)$format->length);
396 396
         //Add preview per format when existing
397 397
         if ($format->preview) {
398 398
             $imagesArray = array();
399 399
             foreach ($format->preview->images->image as $image) {
400
-                $imageArray = array('url' => (string) $image);
400
+                $imageArray = array('url' => (string)$image);
401 401
                 foreach ($image->attributes() as $attKey => $attValue) {
402
-                    $imageArray[$attKey] = (string) $attValue;
402
+                    $imageArray[$attKey] = (string)$attValue;
403 403
                 }
404 404
                 array_push($imagesArray, $imageArray);
405 405
             }
406
-            $playbackArray[(string) $format->type]['preview'] = $imagesArray;
406
+            $playbackArray[(string)$format->type]['preview'] = $imagesArray;
407 407
         }
408 408
     }
409 409
 
@@ -417,7 +417,7 @@  discard block
 block discarded – undo
417 417
         $metadataArray['meta_' . $key] = $value;
418 418
     }
419 419
 
420
-    $recordingArrayValue = array('recordID' => (string) $recording->recordID, 'meetingID' => (string) $recording->meetingID, 'meetingName' => (string) $recording->name, 'published' => (string) $recording->published, 'startTime' => (string) $recording->startTime, 'endTime' => (string) $recording->endTime, 'playbacks' => $playbackArray) + $metadataArray;
420
+    $recordingArrayValue = array('recordID' => (string)$recording->recordID, 'meetingID' => (string)$recording->meetingID, 'meetingName' => (string)$recording->name, 'published' => (string)$recording->published, 'startTime' => (string)$recording->startTime, 'endTime' => (string)$recording->endTime, 'playbacks' => $playbackArray) + $metadataArray;
421 421
 
422 422
     return $recordingArrayValue;
423 423
 }
@@ -985,7 +985,7 @@  discard block
 block discarded – undo
985 985
             $moderatorPW = $password;
986 986
         }
987 987
         //Ping again and refresh the cache
988
-        $meeting_info = (array) bigbluebuttonbn_getMeetingInfo($meetingid, $moderatorPW, $endpoint, $shared_secret);
988
+        $meeting_info = (array)bigbluebuttonbn_getMeetingInfo($meetingid, $moderatorPW, $endpoint, $shared_secret);
989 989
         $cache->set($meetingid, array('creation_time' => time(), 'meeting_info' => json_encode($meeting_info)));
990 990
     }
991 991
 
@@ -1112,9 +1112,9 @@  discard block
 block discarded – undo
1112 1112
     return $error;
1113 1113
 }
1114 1114
 
1115
-function bigbluebuttonbn_setConfigXMLParams( $meetingID, $configXML, $URL, $SALT) {
1116
-    $params = 'configXML='.urlencode($configXML).'&meetingID='.urlencode($meetingID);
1117
-    $config_xml_params = $params.'&checksum='.sha1("setConfigXML".$params.$SALT);
1115
+function bigbluebuttonbn_setConfigXMLParams($meetingID, $configXML, $URL, $SALT) {
1116
+    $params = 'configXML=' . urlencode($configXML) . '&meetingID=' . urlencode($meetingID);
1117
+    $config_xml_params = $params . '&checksum=' . sha1("setConfigXML" . $params . $SALT);
1118 1118
     return $config_xml_params;
1119 1119
 }
1120 1120
 
@@ -1122,9 +1122,9 @@  discard block
 block discarded – undo
1122 1122
  * @param string $URL
1123 1123
  * @param string $SALT
1124 1124
  */
1125
-function bigbluebuttonbn_setConfigXML( $meetingID, $configXML, $URL, $SALT) {
1126
-    $url_default_config = $URL."api/setConfigXML?";
1127
-    $config_xml_params = bigbluebuttonbn_setConfigXMLParams( $meetingID, $configXML, $URL, $SALT );
1125
+function bigbluebuttonbn_setConfigXML($meetingID, $configXML, $URL, $SALT) {
1126
+    $url_default_config = $URL . "api/setConfigXML?";
1127
+    $config_xml_params = bigbluebuttonbn_setConfigXMLParams($meetingID, $configXML, $URL, $SALT);
1128 1128
     $xml = bigbluebuttonbn_wrap_xml_load_file($url_default_config, BIGBLUEBUTTONBN_METHOD_POST, $config_xml_params, 'application/x-www-form-urlencoded');
1129 1129
     return $xml;
1130 1130
 }
@@ -1135,7 +1135,7 @@  discard block
 block discarded – undo
1135 1135
  */
1136 1136
 function bigbluebuttonbn_setConfigXMLArray($meetingID, $configXML, $URL, $SALT) {
1137 1137
     $config_xml = bigbluebuttonbn_setConfigXML($meetingID, $configXML, $URL, $SALT);
1138
-    $config_xml_array = (array) $config_xml;
1138
+    $config_xml_array = (array)$config_xml;
1139 1139
     return $config_xml_array;
1140 1140
 }
1141 1141
 
@@ -1782,7 +1782,7 @@  discard block
 block discarded – undo
1782 1782
 function bigbluebuttonbn_debugdisplay() {
1783 1783
     global $CFG;
1784 1784
 
1785
-    return (bool) $CFG->debugdisplay;
1785
+    return (bool)$CFG->debugdisplay;
1786 1786
 }
1787 1787
 
1788 1788
 function bigbluebuttonbn_html2text($html, $len) {
Please login to merge, or discard this patch.
lib.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
 if (file_exists(dirname(__FILE__) . '/config.php')) {
30 30
     require_once(dirname(__FILE__) . '/config.php');
31 31
     if (isset($BIGBLUEBUTTONBN_CFG)) {
32
-        $CFG = (object) array_merge((array) $CFG, (array) $BIGBLUEBUTTONBN_CFG);
32
+        $CFG = (object)array_merge((array)$CFG, (array)$BIGBLUEBUTTONBN_CFG);
33 33
     }
34 34
 } else {
35 35
     $BIGBLUEBUTTONBN_CFG = new stdClass();
Please login to merge, or discard this patch.
index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
     $administrator = has_capability('moodle/category:manage', $context);
112 112
 
113 113
     if (groups_get_activity_groupmode($cm) > 0) {
114
-        $table->data[] = displayBigBlueButtonRooms($endpoint, $shared_secret, ($administrator || $moderator), $course, $bigbluebuttonbn, (object) array('id'=>0, 'name'=>get_string('allparticipants')));
114
+        $table->data[] = displayBigBlueButtonRooms($endpoint, $shared_secret, ($administrator || $moderator), $course, $bigbluebuttonbn, (object)array('id'=>0, 'name'=>get_string('allparticipants')));
115 115
         $groups = groups_get_activity_allowed_groups($cm);
116 116
         if (isset($groups)) {
117 117
             foreach ($groups as $group) {
Please login to merge, or discard this patch.
vendor/firebase/php-jwt/src/JWT.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -270,7 +270,7 @@
 block discarded – undo
270 270
              * manually detect large ints in the JSON string and quote them (thus converting
271 271
              *them to strings) before decoding, hence the preg_replace() call.
272 272
              */
273
-            $max_int_length = strlen((string) PHP_INT_MAX) - 1;
273
+            $max_int_length = strlen((string)PHP_INT_MAX) - 1;
274 274
             $json_without_bigints = preg_replace('/:\s*(-?\d{' . $max_int_length . ',})/', ': "$1"', $input);
275 275
             $obj = json_decode($json_without_bigints);
276 276
         }
Please login to merge, or discard this patch.