Completed
Push — v2.1-stable ( 81a1f0...f3e8d5 )
by Jesus
01:47
created
mod_form.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -269,8 +269,9 @@
 block discarded – undo
269 269
         // Fourth block starts here
270 270
         //-------------------------------------------------------------------------------
271 271
         $mform->addElement('header', 'schedule', get_string('mod_form_block_schedule', 'bigbluebuttonbn'));
272
-        if( isset($current_activity->openingtime) && $current_activity->openingtime != 0 || isset($current_activity->closingtime) && $current_activity->closingtime != 0 )
273
-            $mform->setExpanded('schedule');
272
+        if( isset($current_activity->openingtime) && $current_activity->openingtime != 0 || isset($current_activity->closingtime) && $current_activity->closingtime != 0 ) {
273
+                    $mform->setExpanded('schedule');
274
+        }
274 275
 
275 276
         $mform->addElement('date_time_selector', 'openingtime', get_string('mod_form_field_openingtime', 'bigbluebuttonbn'), array('optional' => true));
276 277
         $mform->setDefault('openingtime', 0);
Please login to merge, or discard this patch.
locallib.php 1 patch
Braces   +7 added lines, -4 removed lines patch added patch discarded remove patch
@@ -320,8 +320,7 @@  discard block
 block discarded – undo
320 320
 
321 321
     if( $xml ) { //If the xml packet returned failure it displays the message to the user
322 322
         return array('returncode' => $xml->returncode, 'message' => $xml->message, 'messageKey' => $xml->messageKey);
323
-    }
324
-    else { //If the server is unreachable, then prompts the user of the necessary action
323
+    } else { //If the server is unreachable, then prompts the user of the necessary action
325 324
         return null;
326 325
     }
327 326
 }
@@ -355,7 +354,9 @@  discard block
 block discarded – undo
355 354
 }
356 355
 
357 356
 function bigbluebuttonbn_wrap_xml_load_file($url, $method=BIGBLUEBUTTONBN_METHOD_GET, $data=null) {
358
-    if ( bigbluebuttonbn_debugdisplay() ) error_log("Request to: ".$url);
357
+    if ( bigbluebuttonbn_debugdisplay() ) {
358
+        error_log("Request to: ".$url);
359
+    }
359 360
 
360 361
     if (extension_loaded('curl')) {
361 362
         $c = new curl();
@@ -942,7 +943,9 @@  discard block
 block discarded – undo
942 943
     $error = $org_msg;
943 944
 
944 945
     if( !empty($new_msg) ) {
945
-        if( !empty($error) ) $error .= ' ';
946
+        if( !empty($error) ) {
947
+            $error .= ' ';
948
+        }
946 949
         $error .= $new_msg;
947 950
     }
948 951
 
Please login to merge, or discard this patch.
bbb_broker.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -118,8 +118,9 @@
 block discarded – undo
118 118
                         //Execute the end command
119 119
                         $meeting_info = bigbluebuttonbn_bbb_broker_do_end_meeting($params['id'], $bbbsession['modPW']);
120 120
                         // Moodle event logger: Create an event for meeting ended
121
-                        if( isset($bigbluebuttonbn) )
122
-                            bigbluebuttonbn_event_log(BIGBLUEBUTTON_EVENT_MEETING_ENDED, $bigbluebuttonbn, $context, $cm);
121
+                        if( isset($bigbluebuttonbn) ) {
122
+                                                    bigbluebuttonbn_event_log(BIGBLUEBUTTON_EVENT_MEETING_ENDED, $bigbluebuttonbn, $context, $cm);
123
+                        }
123 124
                         // Update the cache
124 125
                         $meeting_info = bigbluebuttonbn_bbb_broker_get_meeting_info($params['id'], $bbbsession['modPW'], true);
125 126
 
Please login to merge, or discard this patch.
bbb_view.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -104,8 +104,9 @@
 block discarded – undo
104 104
                     // Set the duration for the meeting.
105 105
                     if (bigbluebuttonbn_get_cfg_scheduled_duration_enabled()) {
106 106
                         $durationtime = bigbluebuttonbn_get_duration($bigbluebuttonbn->openingtime, $bigbluebuttonbn->closingtime);
107
-                        if ($durationtime > 0)
108
-                            $bbbsession['welcome'] .= '<br><br>' . str_replace("%duration%", '' . $durationtime, get_string('bbbdurationwarning', 'bigbluebuttonbn'));
107
+                        if ($durationtime > 0) {
108
+                                                    $bbbsession['welcome'] .= '<br><br>' . str_replace("%duration%", '' . $durationtime, get_string('bbbdurationwarning', 'bigbluebuttonbn'));
109
+                        }
109 110
                     } else {
110 111
                         $durationtime = 0;
111 112
                     }
Please login to merge, or discard this patch.
lib.php 1 patch
Braces   +12 added lines, -8 removed lines patch added patch discarded remove patch
@@ -430,12 +430,15 @@  discard block
 block discarded – undo
430 430
         $bigbluebuttonbn->timemodified = time();
431 431
     }
432 432
 
433
-    if (! isset($bigbluebuttonbn->wait))
434
-        $bigbluebuttonbn->wait = 0;
435
-    if (! isset($bigbluebuttonbn->record))
436
-        $bigbluebuttonbn->record = 0;
437
-    if (! isset($bigbluebuttonbn->tagging))
438
-        $bigbluebuttonbn->tagging = 0;
433
+    if (! isset($bigbluebuttonbn->wait)) {
434
+            $bigbluebuttonbn->wait = 0;
435
+    }
436
+    if (! isset($bigbluebuttonbn->record)) {
437
+            $bigbluebuttonbn->record = 0;
438
+    }
439
+    if (! isset($bigbluebuttonbn->tagging)) {
440
+            $bigbluebuttonbn->tagging = 0;
441
+    }
439 442
 
440 443
     $bigbluebuttonbn->participants = htmlspecialchars_decode($bigbluebuttonbn->participants);
441 444
 }
@@ -503,8 +506,9 @@  discard block
 block discarded – undo
503 506
         /// Add the meeting details to the message_body
504 507
         $msg->action = ucfirst($action);
505 508
         $msg->activity_description = "";
506
-        if( !empty($bigbluebuttonbn->intro) )
507
-            $msg->activity_description = trim($bigbluebuttonbn->intro);
509
+        if( !empty($bigbluebuttonbn->intro) ) {
510
+                    $msg->activity_description = trim($bigbluebuttonbn->intro);
511
+        }
508 512
         $msg->activity_openingtime = "";
509 513
         if ($bigbluebuttonbn->openingtime) {
510 514
             $msg->activity_openingtime = calendar_day_representation($bigbluebuttonbn->openingtime).' '.$at.' '.calendar_time_representation($bigbluebuttonbn->openingtime);
Please login to merge, or discard this patch.