Completed
Push — 1.11.x ( 3ebade...c47d58 )
by José
213:48 queued 162:56
created
plugin/advanced_subscription/cron/notify_by_mail.php 1 patch
Spacing   +8 added lines, -9 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * Init
10 10
  */
11 11
 
12
-require_once __DIR__ . '/../config.php';
12
+require_once __DIR__.'/../config.php';
13 13
 $plugin = AdvancedSubscriptionPlugin::create();
14 14
 $now = api_get_utc_datetime();
15 15
 $weekAgo = api_get_utc_datetime('-1 week');
@@ -18,10 +18,10 @@  discard block
 block discarded – undo
18 18
 /**
19 19
  * Get session list
20 20
  */
21
-$joinTables = Database::get_main_table(TABLE_MAIN_SESSION) . ' s INNER JOIN ' .
22
-    Database::get_main_table(TABLE_MAIN_SESSION_USER) . ' su ON s.id = su.session_id INNER JOIN ' .
23
-    Database::get_main_table(TABLE_MAIN_USER_REL_USER) . ' uu ON su.user_id = uu.user_id INNER JOIN ' .
24
-    Database::get_main_table(TABLE_ADVANCED_SUBSCRIPTION_QUEUE) . ' asq ON su.session_id = asq.session_id AND su.user_id = asq.user_id';
21
+$joinTables = Database::get_main_table(TABLE_MAIN_SESSION).' s INNER JOIN '.
22
+    Database::get_main_table(TABLE_MAIN_SESSION_USER).' su ON s.id = su.session_id INNER JOIN '.
23
+    Database::get_main_table(TABLE_MAIN_USER_REL_USER).' uu ON su.user_id = uu.user_id INNER JOIN '.
24
+    Database::get_main_table(TABLE_ADVANCED_SUBSCRIPTION_QUEUE).' asq ON su.session_id = asq.session_id AND su.user_id = asq.user_id';
25 25
 $columns = 's.id AS session_id, uu.friend_user_id AS superior_id, uu.user_id AS student_id, asq.id AS queue_id, asq.status AS status';
26 26
 $conditions = array(
27 27
     'where' => array(
@@ -133,8 +133,7 @@  discard block
 block discarded – undo
133 133
 $isWesternNameOrder = api_is_western_name_order();
134 134
 foreach ($admins as &$admin) {
135 135
     $admin['complete_name'] = $isWesternNameOrder ?
136
-        $admin['firstname'] . ', ' . $admin['lastname'] :
137
-        $admin['lastname'] . ', ' . $admin['firstname']
136
+        $admin['firstname'].', '.$admin['lastname'] : $admin['lastname'].', '.$admin['firstname']
138 137
     ;
139 138
 }
140 139
 unset($admin);
@@ -149,8 +148,8 @@  discard block
 block discarded – undo
149 148
 );
150 149
 foreach ($queueByAdmin as $sessionId => $studentInfo) {
151 150
     $data['sessionId'] = $sessionId;
152
-    $data['admin_view_url'] = api_get_path(WEB_PLUGIN_PATH) .
153
-        'advanced_subscription/src/admin_view.php?s=' . $data['sessionId'];
151
+    $data['admin_view_url'] = api_get_path(WEB_PLUGIN_PATH).
152
+        'advanced_subscription/src/admin_view.php?s='.$data['sessionId'];
154 153
     $data['session'] = $sessionInfoList[$sessionId];
155 154
     $data['students'] = $studentInfo['students'];
156 155
     $plugin->sendMail($data, ADVANCED_SUBSCRIPTION_ACTION_REMINDER_ADMIN);
Please login to merge, or discard this patch.
plugin/resubscription/src/HookResubscription.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
 
32 32
             $resubscriptionLimit = Resubscription::create()->get('resubscription_limit');
33 33
 
34
-             // Initialize variables as a calendar year by default
34
+                // Initialize variables as a calendar year by default
35 35
             $limitDateFormat = 'Y-01-01';
36 36
             $limitDate = gmdate($limitDateFormat);
37 37
             $resubscriptionOffset = "1 year";
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
                     $resubscriptionDate = gmdate($limitDateFormat, strtotime($endDate." +$resubscriptionOffset"));
102 102
                     $icon = Display::return_icon('students.gif', get_lang('Student'));
103 103
                     $canResubscribeFrom = sprintf(get_plugin_lang('CanResubscribeFromX', 'resubscription'), $resubscriptionDate);
104
-                    throw new Exception(Display::label($icon . ' ' . $canResubscribeFrom, "info"));
104
+                    throw new Exception(Display::label($icon.' '.$canResubscribeFrom, "info"));
105 105
                 }
106 106
             }
107 107
         }
Please login to merge, or discard this patch.
plugin/share_buttons/plugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,4 +17,4 @@
 block discarded – undo
17 17
 // The plugin author.
18 18
 $plugin_info['author']      = 'Julio Montoya';
19 19
 // For bigger icons change this value to addthis_32x32_style
20
-$plugin_info['icon_class']   = '';
20
+$plugin_info['icon_class'] = '';
Please login to merge, or discard this patch.
plugin/follow_buttons/plugin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 $plugin_info['templates']   = array('template.tpl');
24 24
 
25 25
 //For bigger icons change this value to addthis_32x32_style
26
-$plugin_info['icon_class']   = ''; 
26
+$plugin_info['icon_class'] = ''; 
27 27
 
28 28
 //To use vertical alignment change this value to 
29
-$plugin_info['position']   = 'addthis_default_style'; //addthis_vertical_style
29
+$plugin_info['position'] = 'addthis_default_style'; //addthis_vertical_style
Please login to merge, or discard this patch.
plugin/add_cas_login_button/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
     // the comm
19 19
     $comm_label = api_htmlentities(
20 20
         $plugin_info['settings']['add_cas_login_button_cas_button_comment']
21
-    );;
21
+    ); ;
22 22
     // URL of the image
23 23
     $url_label = $plugin_info['settings']['add_cas_login_button_cas_image_url'];
24 24
 
Please login to merge, or discard this patch.
plugin/add_cas_login_button/plugin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
  */
11 11
 
12 12
 //the plugin title
13
-$plugin_info['title']      = 'Add a button to login using CAS';
13
+$plugin_info['title'] = 'Add a button to login using CAS';
14 14
 
15 15
 //the comments that go with the plugin
16 16
 $plugin_info['comment']     = "If CAS is activated, this plugin add a text and a button on the login page to login with CAS. Configure plugin to add title, comment and logo.";
@@ -38,4 +38,4 @@  discard block
 block discarded – undo
38 38
 $plugin_info['settings_form'] = $form;
39 39
 
40 40
 //set the templates that are going to be used
41
-$plugin_info['templates']   = array('template.tpl');
41
+$plugin_info['templates'] = array('template.tpl');
Please login to merge, or discard this patch.
plugin/openmeetings/lib/openmeetings_api.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,6 +19,6 @@
 block discarded – undo
19 19
     {
20 20
         $this->_user = CONFIG_OPENMEETINGS_USER;
21 21
         $this->_pass = CONFIG_OPENMEETINGS_PASS;
22
-        $this->_serverBaseUrl  = CONFIG_OPENMEETINGS_SERVER_URL;
22
+        $this->_serverBaseUrl = CONFIG_OPENMEETINGS_SERVER_URL;
23 23
     }
24 24
 }
Please login to merge, or discard this patch.
plugin/openmeetings/lib/room.class.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,9 +49,9 @@  discard block
 block discarded – undo
49 49
         global $_configuration;
50 50
         $this->name = 'C'.api_get_real_course_id().'-'.api_get_session_id();
51 51
         $accessUrl = api_get_access_url($_configuration['access_url']);
52
-        $this->externalRoomType = substr($accessUrl['url'], strpos($accessUrl['url'],'://')+3,-1);
52
+        $this->externalRoomType = substr($accessUrl['url'], strpos($accessUrl['url'], '://') + 3, -1);
53 53
         if (strcmp($this->externalRoomType, 'localhost') == 0) {
54
-            $this->externalRoomType = substr(api_get_path(WEB_PATH), strpos(api_get_path(WEB_PATH),'://')+3, -1);
54
+            $this->externalRoomType = substr(api_get_path(WEB_PATH), strpos(api_get_path(WEB_PATH), '://') + 3, -1);
55 55
         }
56 56
         $this->externalRoomType = 'chamilolms.'.$this->externalRoomType;
57 57
     }
@@ -110,6 +110,6 @@  discard block
 block discarded – undo
110 110
         if (!isset($this->$attribute)) {
111 111
             return $voidReturn;
112 112
         }
113
-        return $this->$attribute?'true':'false';
113
+        return $this->$attribute ? 'true' : 'false';
114 114
     }
115 115
 }
Please login to merge, or discard this patch.
plugin/openmeetings/lib/openmeetings_gateway.php 2 patches
Spacing   +86 added lines, -86 removed lines patch added patch discarded remove patch
@@ -47,8 +47,8 @@  discard block
 block discarded – undo
47 47
         $this->rest = new OpenMeetingsRestService();
48 48
         $err = $this->rest->getError();
49 49
         if ($err) {
50
-            error_log('Constructor error: ' . $err);
51
-            error_log('Debug: ' . $this->rest->getDebug());;
50
+            error_log('Constructor error: '.$err);
51
+            error_log('Debug: '.$this->rest->getDebug()); ;
52 52
             exit();
53 53
         }
54 54
     }
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      */
60 60
     public function getRestUrl($name)
61 61
     {
62
-        return $this->getUrl() . "/services/" . $name . "/";
62
+        return $this->getUrl()."/services/".$name."/";
63 63
     }
64 64
 
65 65
     /**
@@ -89,30 +89,30 @@  discard block
 block discarded – undo
89 89
     public function loginUser()
90 90
     {
91 91
         $returnValue = 0;
92
-        $response = $this->rest->call($this->getRestUrl("UserService") . "getSession", "session_id");
92
+        $response = $this->rest->call($this->getRestUrl("UserService")."getSession", "session_id");
93 93
 
94 94
         if ($this->rest->getError()) {
95 95
             error_log('Fault (Expect - The request contains an invalid SOAP body) '.print_r($response, 1));
96 96
         } else {
97 97
             $err = $this->rest->getError();
98 98
             if ($err) {
99
-                error_log('Error: ' . $err);
99
+                error_log('Error: '.$err);
100 100
             } else {
101 101
                 //error_log('getSession returned '.$response. ' - Storing as sessionId');
102 102
                 $this->sessionId = $response;
103 103
 
104 104
                 $url = $this->getRestUrl("UserService")
105 105
                         . "loginUser?"
106
-                        . "SID=" . $this->sessionId
107
-                        . "&username=" . $this->_user
108
-                        . "&userpass=" . $this->_pass;
106
+                        . "SID=".$this->sessionId
107
+                        . "&username=".$this->_user
108
+                        . "&userpass=".$this->_pass;
109 109
                 $result = $this->rest->call($url);
110 110
                 if ($this->rest->getError()) {
111 111
                     error_log('Fault (Expect - The request contains an invalid SOAP body) '.print_r($result, 1));
112 112
                 } else {
113 113
                     $err = $this->rest->getError();
114 114
                     if ($err) {
115
-                        error_log('Error '. $err);
115
+                        error_log('Error '.$err);
116 116
                     } else {
117 117
                         $returnValue = $result;
118 118
                     }
@@ -135,8 +135,8 @@  discard block
 block discarded – undo
135 135
     {
136 136
         $err = $this->rest->getError();
137 137
         if ($err) {
138
-            error_log('Constructor error: ' . $err);
139
-            error_log('Debug: ' . $this->rest->getDebug());
138
+            error_log('Constructor error: '.$err);
139
+            error_log('Debug: '.$this->rest->getDebug());
140 140
             exit();
141 141
         }
142 142
 
@@ -146,17 +146,17 @@  discard block
 block discarded – undo
146 146
         }
147 147
 
148 148
         $url = $this->getRestUrl($this->getRestUrl("RoomService")
149
-                . "updateRoomWithModeration?SID=" . $this->sessionId
150
-                . "&room_id=" . $room->room_id
151
-                . "&name=" . urlencode($room->name)
152
-                . "&roomtypes_id=" . $room->roomtypes_id
153
-                . "&comment=" . $room->comment
154
-                . "&numberOfPartizipants=" . $room->numberOfPartizipants
149
+                . "updateRoomWithModeration?SID=".$this->sessionId
150
+                . "&room_id=".$room->room_id
151
+                . "&name=".urlencode($room->name)
152
+                . "&roomtypes_id=".$room->roomtypes_id
153
+                . "&comment=".$room->comment
154
+                . "&numberOfPartizipants=".$room->numberOfPartizipants
155 155
                 . "&ispublic=false"
156 156
                 . "&appointment=false"
157 157
                 . "&isDemoRoom=false"
158 158
                 . "&demoTime=0"
159
-                . "&isModeratedRoom=" . $this->var_to_str($isModeratedRoom));
159
+                . "&isModeratedRoom=".$this->var_to_str($isModeratedRoom));
160 160
         //error_log($url);
161 161
         $result = $this->rest->call($url);
162 162
 
@@ -165,14 +165,14 @@  discard block
 block discarded – undo
165 165
         } else {
166 166
             $err = $this->rest->getError();
167 167
             if ($err) {
168
-                error_log('Error: ' . $err);
168
+                error_log('Error: '.$err);
169 169
             } else {
170 170
                 // echo '<h2>Result</h2><pre>'; print_r($result["return"]); echo '</pre>';
171 171
                 //error_log('Room updated successfully '.print_r($result,1));
172 172
                 return $result;
173 173
             }
174 174
         }
175
-        return - 1;
175
+        return -1;
176 176
     }
177 177
 
178 178
     /**
@@ -188,13 +188,13 @@  discard block
 block discarded – undo
188 188
     {
189 189
         $result = $this->rest->call($this->getRestUrl("UserService")
190 190
                 . 'setUserObjectAndGenerateRecordingHashByURL?'
191
-                . 'SID=' . $this->sessionId
192
-                . '&username=' . urlencode($username)
193
-                . '&firstname=' . urlencode($firstname)
194
-                . '&lastname=' . urlencode($lastname)
195
-                . '&externalUserId=' . $userId
196
-                . '&externalUserType=' . urlencode($systemType)
197
-                . '&recording_id=' . $recording_id, 'return');
191
+                . 'SID='.$this->sessionId
192
+                . '&username='.urlencode($username)
193
+                . '&firstname='.urlencode($firstname)
194
+                . '&lastname='.urlencode($lastname)
195
+                . '&externalUserId='.$userId
196
+                . '&externalUserType='.urlencode($systemType)
197
+                . '&recording_id='.$recording_id, 'return');
198 198
 
199 199
         if ($result->fault) {
200 200
             error_log('Fault (Expect - The request contains an invalid SOAP body) '.print_r($result, 1));
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
                 return $result;
207 207
             }
208 208
         }
209
-        return - 1;
209
+        return -1;
210 210
     }
211 211
 
212 212
     /**
@@ -226,28 +226,28 @@  discard block
 block discarded – undo
226 226
     {
227 227
         $err = $this->rest->getError();
228 228
         if ($err) {
229
-            error_log('Constructor error: ' . $err);
230
-            error_log('Debug: ' . $this->rest->getDebug());;
229
+            error_log('Constructor error: '.$err);
230
+            error_log('Debug: '.$this->rest->getDebug()); ;
231 231
             exit();
232 232
         }
233 233
 
234 234
         $result = $this->rest->call($this->getRestUrl("UserService")
235 235
                 . "setUserObjectAndGenerateRoomHashByURLAndRecFlag?"
236
-                . "SID=" . $this->sessionId
237
-                . "&username=" . urlencode($username)
238
-                . "&firstname=" . urlencode($firstname)
239
-                . "&lastname=" . urlencode($lastname)
240
-                . "&profilePictureUrl=" . urlencode($profilePictureUrl)
241
-                . "&email=" . urlencode($email)
242
-                . "&externalUserId=" . urlencode($userId)
243
-                . "&externalUserType=" . urlencode($systemType)
244
-                . "&room_id=" . urlencode($room_id)
245
-                . "&becomeModeratorAsInt=" . $becomeModerator
236
+                . "SID=".$this->sessionId
237
+                . "&username=".urlencode($username)
238
+                . "&firstname=".urlencode($firstname)
239
+                . "&lastname=".urlencode($lastname)
240
+                . "&profilePictureUrl=".urlencode($profilePictureUrl)
241
+                . "&email=".urlencode($email)
242
+                . "&externalUserId=".urlencode($userId)
243
+                . "&externalUserType=".urlencode($systemType)
244
+                . "&room_id=".urlencode($room_id)
245
+                . "&becomeModeratorAsInt=".$becomeModerator
246 246
                 . "&showAudioVideoTestAsInt=1"
247
-                . "&allowRecording=" . $this->var_to_str($allowRecording));
247
+                . "&allowRecording=".$this->var_to_str($allowRecording));
248 248
 
249 249
         if ($result->fault) {
250
-            error_log('Fault (Expect - The request contains an invalid SOAP body) '.print_r($result,1));
250
+            error_log('Fault (Expect - The request contains an invalid SOAP body) '.print_r($result, 1));
251 251
         } else {
252 252
             $err = $this->rest->getError();
253 253
             if ($err) {
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
                 return $result;
258 258
             }
259 259
         }
260
-        return - 1;
260
+        return -1;
261 261
     }
262 262
 
263 263
     /**
@@ -268,15 +268,15 @@  discard block
 block discarded – undo
268 268
     {
269 269
         $err = $this->rest->getError();
270 270
         if ($err) {
271
-            error_log('Constructor error: ' . $err);
272
-            error_log('Debug: ' . $this->rest->getDebug());
271
+            error_log('Constructor error: '.$err);
272
+            error_log('Debug: '.$this->rest->getDebug());
273 273
             exit();
274 274
         }
275 275
         $url = $this->getRestUrl("RoomService")."deleteRoom?SID=".$this->sessionId."&rooms_id=".$openmeetings->room_id;
276 276
         $result = $this->rest->call($url);
277 277
 
278 278
         if ($result->fault) {
279
-            error_log('Fault (Expect - The request contains an invalid SOAP body) '.print_r($result,1));
279
+            error_log('Fault (Expect - The request contains an invalid SOAP body) '.print_r($result, 1));
280 280
         } else {
281 281
             $err = $this->rest->getError();
282 282
             if ($err) {
@@ -287,7 +287,7 @@  discard block
 block discarded – undo
287 287
                 return $result;
288 288
             }
289 289
         }
290
-        return - 1;
290
+        return -1;
291 291
     }
292 292
 
293 293
     /**
@@ -297,20 +297,20 @@  discard block
 block discarded – undo
297 297
     {
298 298
         $result = $this->rest->call($this->getRestUrl("UserService")
299 299
                 . "setUserObjectAndGenerateRoomHash?"
300
-                . "SID=" . $this->sessionId
301
-                . "&username=" . urlencode($username)
302
-                . "&firstname=" . urlencode($firstname)
303
-                . "&lastname=" . urlencode($lastname)
304
-                . "&profilePictureUrl=" . urlencode($profilePictureUrl)
305
-                . "&email=" . urlencode($email)
306
-                . "&externalUserId=" . urlencode($externalUserId)
307
-                . "&externalUserType=" . urlencode($externalUserType)
308
-                . "&room_id=" . $room_id
309
-                . "&becomeModeratorAsInt=" . $becomeModeratorAsInt
310
-                . "&showAudioVideoTestAsInt=" . $showAudioVideoTestAsInt);
300
+                . "SID=".$this->sessionId
301
+                . "&username=".urlencode($username)
302
+                . "&firstname=".urlencode($firstname)
303
+                . "&lastname=".urlencode($lastname)
304
+                . "&profilePictureUrl=".urlencode($profilePictureUrl)
305
+                . "&email=".urlencode($email)
306
+                . "&externalUserId=".urlencode($externalUserId)
307
+                . "&externalUserType=".urlencode($externalUserType)
308
+                . "&room_id=".$room_id
309
+                . "&becomeModeratorAsInt=".$becomeModeratorAsInt
310
+                . "&showAudioVideoTestAsInt=".$showAudioVideoTestAsInt);
311 311
 
312 312
         if ($result->getError()) {
313
-            error_log('Fault (Expect - The request contains an invalid SOAP body) '.print_r($result,1));
313
+            error_log('Fault (Expect - The request contains an invalid SOAP body) '.print_r($result, 1));
314 314
         } else {
315 315
             $err = $this->rest->getError();
316 316
             if ($err) {
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
                 return $result;
321 321
             }
322 322
         }
323
-        return - 1;
323
+        return -1;
324 324
     }
325 325
 
326 326
     /**
@@ -338,29 +338,29 @@  discard block
 block discarded – undo
338 338
         }
339 339
         $url = $this->getRestUrl("RoomService")
340 340
                 . $service.'?'
341
-                . 'SID=' . $room->SID
342
-                . '&name=' . $room->name
343
-                . '&roomtypes_id=' . $room->roomtypes_id
344
-                . '&comment='. $room->comment
345
-                . '&numberOfPartizipants=' . $room->numberOfPartizipants
346
-                . '&ispublic=' . $this->var_to_str($room->ispublic)
347
-                . '&appointment=' . $this->var_to_str($room->appointment)
348
-                . '&isDemoRoom=' . $this->var_to_str($room->isDemoRoom)
349
-                . '&demoTime=' . $room->demoTime
350
-                . '&isModeratedRoom=' . $this->var_to_str($room->isModeratedRoom)
351
-                . '&externalRoomType=' . $room->externalRoomType;
341
+                . 'SID='.$room->SID
342
+                . '&name='.$room->name
343
+                . '&roomtypes_id='.$room->roomtypes_id
344
+                . '&comment='.$room->comment
345
+                . '&numberOfPartizipants='.$room->numberOfPartizipants
346
+                . '&ispublic='.$this->var_to_str($room->ispublic)
347
+                . '&appointment='.$this->var_to_str($room->appointment)
348
+                . '&isDemoRoom='.$this->var_to_str($room->isDemoRoom)
349
+                . '&demoTime='.$room->demoTime
350
+                . '&isModeratedRoom='.$this->var_to_str($room->isModeratedRoom)
351
+                . '&externalRoomType='.$room->externalRoomType;
352 352
         if ($room->allowRecording) {
353
-            $url .= '&allowUserQuestions=' . $this->var_to_str($room->allowUserQuestions)
354
-                 . '&isAudioOnly=' . $this->var_to_str($room->isAudioOnly)
355
-                 . '&waitForRecording=' . $this->var_to_str($room->waitForRecording)
356
-                 . '&allowRecording=' . $this->var_to_str($room->allowRecording);
353
+            $url .= '&allowUserQuestions='.$this->var_to_str($room->allowUserQuestions)
354
+                 . '&isAudioOnly='.$this->var_to_str($room->isAudioOnly)
355
+                 . '&waitForRecording='.$this->var_to_str($room->waitForRecording)
356
+                 . '&allowRecording='.$this->var_to_str($room->allowRecording);
357 357
         } elseif ($room->isAudioOnly) {
358
-            $url .= '&isAudioOnly=' . $this->var_to_str($room->isAudioOnly);
358
+            $url .= '&isAudioOnly='.$this->var_to_str($room->isAudioOnly);
359 359
         }
360 360
         $result = $this->rest->call($url);
361 361
 
362 362
         if ($this->rest->fault) {
363
-            error_log('Fault (Expect - The request contains an invalid SOAP body) '.print_r($result,1));
363
+            error_log('Fault (Expect - The request contains an invalid SOAP body) '.print_r($result, 1));
364 364
         } else {
365 365
             $err = $this->rest->getError();
366 366
             if ($err) {
@@ -385,7 +385,7 @@  discard block
 block discarded – undo
385 385
             return false;
386 386
         }
387 387
 
388
-        $url = $this->getRestUrl("RoomService") . "getRoomsWithCurrentUsersByListAndType?SID=" . $this->sessionId
388
+        $url = $this->getRestUrl("RoomService")."getRoomsWithCurrentUsersByListAndType?SID=".$this->sessionId
389 389
             . "&start=1&max=1000&orderby=name&asc=true&externalRoomType=chamilolms";
390 390
         //$url = $this->getRestUrl("RoomService")
391 391
         //    . "getRoomTypes?"
@@ -396,7 +396,7 @@  discard block
 block discarded – undo
396 396
         $rooms = array();
397 397
         foreach ($result as $room) {
398 398
             //error_log(__FILE__.'+'.__LINE__.': one room found on remote: '.print_r($room,1));
399
-            if ($room['externalRoomType'] == $type && count($room['currentusers']) > 0 ) {
399
+            if ($room['externalRoomType'] == $type && count($room['currentusers']) > 0) {
400 400
                 $rooms[] = $room;
401 401
             }
402 402
         }
@@ -418,7 +418,7 @@  discard block
 block discarded – undo
418 418
 
419 419
         $url = $this->getRestUrl("RoomService")
420 420
             . "getRoomById?"
421
-            . "SID=" . $this->sessionId
421
+            . "SID=".$this->sessionId
422 422
             . "&rooms_id=".$roomId;
423 423
         //error_log(__FILE__.'+'.__LINE__.' Calling WS: '.$url);
424 424
         $result = $this->rest->call($url, "return");
@@ -432,8 +432,8 @@  discard block
 block discarded – undo
432 432
     {
433 433
         $url = $this->getRestUrl("RoomService")
434 434
             . "getFlvRecordingByExternalRoomType?"
435
-            . "SID=" . $this->sessionId
436
-            . "&externalRoomType=" . urlencode($this->config["moduleKey"]);
435
+            . "SID=".$this->sessionId
436
+            . "&externalRoomType=".urlencode($this->config["moduleKey"]);
437 437
 
438 438
         $result = $this->rest->call($url, "return");
439 439
 
@@ -449,8 +449,8 @@  discard block
 block discarded – undo
449 449
     {
450 450
         $url = $this->getRestUrl("RoomService")
451 451
             . "getFlvRecordingByRoomId?"
452
-            . "SID=" . $this->sessionId
453
-            . "&roomId=" . urlencode($id);
452
+            . "SID=".$this->sessionId
453
+            . "&roomId=".urlencode($id);
454 454
 
455 455
         $result = $this->rest->call($url, "return");
456 456
 
@@ -464,8 +464,8 @@  discard block
 block discarded – undo
464 464
     {
465 465
         $url = $this->getRestUrl("RoomService")
466 466
             . "getFlvRecordingByExternalUserId?"
467
-            . "SID=" . $this->sessionId
468
-            . "&externalUserId=" . $id;
467
+            . "SID=".$this->sessionId
468
+            . "&externalUserId=".$id;
469 469
 
470 470
         $result = $this->rest->call($url, "return");
471 471
 
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -351,9 +351,9 @@
 block discarded – undo
351 351
                 . '&externalRoomType=' . $room->externalRoomType;
352 352
         if ($room->allowRecording) {
353 353
             $url .= '&allowUserQuestions=' . $this->var_to_str($room->allowUserQuestions)
354
-                 . '&isAudioOnly=' . $this->var_to_str($room->isAudioOnly)
355
-                 . '&waitForRecording=' . $this->var_to_str($room->waitForRecording)
356
-                 . '&allowRecording=' . $this->var_to_str($room->allowRecording);
354
+                    . '&isAudioOnly=' . $this->var_to_str($room->isAudioOnly)
355
+                    . '&waitForRecording=' . $this->var_to_str($room->waitForRecording)
356
+                    . '&allowRecording=' . $this->var_to_str($room->allowRecording);
357 357
         } elseif ($room->isAudioOnly) {
358 358
             $url .= '&isAudioOnly=' . $this->var_to_str($room->isAudioOnly);
359 359
         }
Please login to merge, or discard this patch.