Completed
Push — master ( d51556...d3ec1f )
by Jesus
02:19
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_view.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -94,8 +94,9 @@
 block discarded – undo
94 94
                     /// Set the duration for the meeting
95 95
                     if (bigbluebuttonbn_get_cfg_scheduled_duration_enabled()) {
96 96
                         $durationtime = bigbluebuttonbn_get_duration($bigbluebuttonbn->openingtime, $bigbluebuttonbn->closingtime);
97
-                        if ($durationtime > 0)
98
-                            $bbbsession['welcome'] .= '<br><br>' . str_replace("%duration%", '' . $durationtime, get_string('bbbdurationwarning', 'bigbluebuttonbn'));
97
+                        if ($durationtime > 0) {
98
+                                                    $bbbsession['welcome'] .= '<br><br>' . str_replace("%duration%", '' . $durationtime, get_string('bbbdurationwarning', 'bigbluebuttonbn'));
99
+                        }
99 100
                     } else {
100 101
                         $durationtime = 0;
101 102
                     }
Please login to merge, or discard this patch.
lib.php 1 patch
Braces   +17 added lines, -12 removed lines patch added patch discarded remove patch
@@ -433,12 +433,15 @@  discard block
 block discarded – undo
433 433
         $bigbluebuttonbn->timemodified = time();
434 434
     }
435 435
 
436
-    if (! isset($bigbluebuttonbn->wait))
437
-        $bigbluebuttonbn->wait = 0;
438
-    if (! isset($bigbluebuttonbn->record))
439
-        $bigbluebuttonbn->record = 0;
440
-    if (! isset($bigbluebuttonbn->tagging))
441
-        $bigbluebuttonbn->tagging = 0;
436
+    if (! isset($bigbluebuttonbn->wait)) {
437
+            $bigbluebuttonbn->wait = 0;
438
+    }
439
+    if (! isset($bigbluebuttonbn->record)) {
440
+            $bigbluebuttonbn->record = 0;
441
+    }
442
+    if (! isset($bigbluebuttonbn->tagging)) {
443
+            $bigbluebuttonbn->tagging = 0;
444
+    }
442 445
 
443 446
     $bigbluebuttonbn->participants = htmlspecialchars_decode($bigbluebuttonbn->participants);
444 447
 }
@@ -506,8 +509,9 @@  discard block
 block discarded – undo
506 509
         /// Add the meeting details to the message_body
507 510
         $msg->action = ucfirst($action);
508 511
         $msg->activity_description = "";
509
-        if( !empty($bigbluebuttonbn->intro) )
510
-            $msg->activity_description = trim($bigbluebuttonbn->intro);
512
+        if( !empty($bigbluebuttonbn->intro) ) {
513
+                    $msg->activity_description = trim($bigbluebuttonbn->intro);
514
+        }
511 515
         $msg->activity_openingtime = "";
512 516
         if ($bigbluebuttonbn->openingtime) {
513 517
             $msg->activity_openingtime = calendar_day_representation($bigbluebuttonbn->openingtime).' '.$at.' '.calendar_time_representation($bigbluebuttonbn->openingtime);
@@ -665,10 +669,11 @@  discard block
 block discarded – undo
665 669
 function bigbluebuttonbn_get_db_moodle_roles($rolename='all') {
666 670
     global $DB;
667 671
 
668
-    if( $rolename != 'all')
669
-        $roles = $DB->get_record('role', array('shortname' => $rolename));
670
-    else
671
-        $roles = $DB->get_records('role', array());
672
+    if( $rolename != 'all') {
673
+            $roles = $DB->get_record('role', array('shortname' => $rolename));
674
+    } else {
675
+            $roles = $DB->get_records('role', array());
676
+    }
672 677
 
673 678
     return $roles;
674 679
 }
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.