Completed
Push — master ( 33683d...349104 )
by Jesus
02:36
created
lib.php 3 patches
Doc Comments   +12 added lines, -1 removed lines patch added patch discarded remove patch
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
  * $return->time = the time they did it
227 227
  * $return->info = a short text description.
228 228
  *
229
- * @return bool
229
+ * @return string
230 230
  */
231 231
 function bigbluebuttonbn_user_outline($course, $user, $mod, $bigbluebuttonbn) {
232 232
     global $DB;
@@ -315,6 +315,9 @@  discard block
 block discarded – undo
315 315
     }
316 316
 }
317 317
 
318
+/**
319
+ * @param integer $now
320
+ */
318 321
 function bigbluebuttonbn_print_overview_element($bigbluebuttonbn, $now) {
319 322
     global $CFG;
320 323
 
@@ -550,6 +553,11 @@  discard block
 block discarded – undo
550 553
     send_stored_file($file, 0, 0, $forcedownload, $options); // download MUST be forced - security!
551 554
 }
552 555
 
556
+/**
557
+ * @param stdClass $course
558
+ * @param stdClass $cm
559
+ * @param stdClass $context
560
+ */
553 561
 function bigbluebuttonbn_pluginfile_filename($course, $cm, $context, $args) {
554 562
     global $DB;
555 563
 
@@ -644,6 +652,9 @@  discard block
 block discarded – undo
644 652
     bigbluebuttonbn_notification_send($USER, $bigbluebuttonbn, bigbluebuttonbn_notification_msg_html($msg));
645 653
 }
646 654
 
655
+/**
656
+ * @param stdClass $msg
657
+ */
647 658
 function bigbluebuttonbn_notification_msg_html($msg) {
648 659
     $messagetext = '<p>'.$msg->activity_type.' &quot;'.$msg->activity_title.'&quot; '.
649 660
         get_string('email_body_notification_meeting_has_been', 'bigbluebuttonbn').' '.$msg->action.'.</p>'."\n";
Please login to merge, or discard this patch.
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
 
209 209
     $logs = $DB->get_records('bigbluebuttonbn_logs',
210 210
         array('bigbluebuttonbnid' => $bigbluebuttonbn->id, 'log' => BIGBLUEBUTTONBN_LOG_EVENT_CREATE, 'meta' => "{\"record\":true}")
211
-      );
211
+        );
212 212
     $log->meta = "{\"has_recordings\":false}";
213 213
     if (!empty($logs)) {
214 214
         $log->meta = "{\"has_recordings\":true}";
@@ -233,9 +233,9 @@  discard block
 block discarded – undo
233 233
     global $DB;
234 234
 
235 235
     $completed = $DB->count_records('bigbluebuttonbn_logs', array('courseid' => $course->id,
236
-                                                              'bigbluebuttonbnid' => $bigbluebuttonbn->id,
237
-                                                              'userid' => $user->id,
238
-                                                              'log' => 'Join', ), '*');
236
+                                                                'bigbluebuttonbnid' => $bigbluebuttonbn->id,
237
+                                                                'userid' => $user->id,
238
+                                                                'log' => 'Join', ), '*');
239 239
 
240 240
     if ($completed > 0) {
241 241
         return fullname($user).' '.get_string('view_message_has_joined', 'bigbluebuttonbn').' '.
@@ -256,9 +256,9 @@  discard block
 block discarded – undo
256 256
     global $DB;
257 257
 
258 258
     $completed = $DB->count_recorda('bigbluebuttonbn_logs', array('courseid' => $course->id,
259
-                                                              'bigbluebuttonbnid' => $bigbluebuttonbn->id,
260
-                                                              'userid' => $user->id,
261
-                                                              'log' => 'Join', ), '*', IGNORE_MULTIPLE);
259
+                                                                'bigbluebuttonbnid' => $bigbluebuttonbn->id,
260
+                                                                'userid' => $user->id,
261
+                                                                'log' => 'Join', ), '*', IGNORE_MULTIPLE);
262 262
 
263 263
     return $completed > 0;
264 264
 }
@@ -331,12 +331,12 @@  discard block
 block discarded – undo
331 331
     $str = '<div class="bigbluebuttonbn overview">'."\n";
332 332
     $str .= '  <div class="name">'.get_string('modulename', 'bigbluebuttonbn').':&nbsp;'."\n";
333 333
     $str .= '    <a '.$classes.'href="'.$CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$bigbluebuttonbn->coursemodule.
334
-      '">'.$bigbluebuttonbn->name.'</a>'."\n";
334
+        '">'.$bigbluebuttonbn->name.'</a>'."\n";
335 335
     $str .= '  </div>'."\n";
336 336
     $str .= '  <div class="info">'.get_string($start, 'bigbluebuttonbn').': '.userdate($bigbluebuttonbn->openingtime).
337 337
         '</div>'."\n";
338 338
     $str .= '  <div class="info">'.get_string('ends_at', 'bigbluebuttonbn').': '.userdate($bigbluebuttonbn->closingtime)
339
-      .'</div>'."\n";
339
+        .'</div>'."\n";
340 340
     $str .= '</div>'."\n";
341 341
 
342 342
     return $str;
Please login to merge, or discard this patch.
Spacing   +69 added lines, -69 removed lines patch added patch discarded remove patch
@@ -27,32 +27,32 @@  discard block
 block discarded – undo
27 27
 
28 28
 global $CFG;
29 29
 
30
-require_once($CFG->dirroot.'/calendar/lib.php');
31
-require_once($CFG->dirroot.'/message/lib.php');
32
-require_once($CFG->dirroot.'/mod/lti/OAuth.php');
33
-require_once($CFG->libdir.'/accesslib.php');
34
-require_once($CFG->libdir.'/completionlib.php');
35
-require_once($CFG->libdir.'/datalib.php');
36
-require_once($CFG->libdir.'/coursecatlib.php');
37
-require_once($CFG->libdir.'/enrollib.php');
38
-require_once($CFG->libdir.'/filelib.php');
39
-require_once($CFG->libdir.'/formslib.php');
40
-
41
-if (file_exists(dirname(__FILE__).'/vendor/firebase/php-jwt/src/JWT.php')) {
42
-    require_once(dirname(__FILE__).'/vendor/firebase/php-jwt/src/JWT.php');
30
+require_once($CFG->dirroot . '/calendar/lib.php');
31
+require_once($CFG->dirroot . '/message/lib.php');
32
+require_once($CFG->dirroot . '/mod/lti/OAuth.php');
33
+require_once($CFG->libdir . '/accesslib.php');
34
+require_once($CFG->libdir . '/completionlib.php');
35
+require_once($CFG->libdir . '/datalib.php');
36
+require_once($CFG->libdir . '/coursecatlib.php');
37
+require_once($CFG->libdir . '/enrollib.php');
38
+require_once($CFG->libdir . '/filelib.php');
39
+require_once($CFG->libdir . '/formslib.php');
40
+
41
+if (file_exists(dirname(__FILE__) . '/vendor/firebase/php-jwt/src/JWT.php')) {
42
+    require_once(dirname(__FILE__) . '/vendor/firebase/php-jwt/src/JWT.php');
43 43
 }
44 44
 
45 45
 if (!isset($CFG->bigbluebuttonbn)) {
46 46
     $CFG->bigbluebuttonbn = array();
47 47
 }
48 48
 
49
-if (file_exists(dirname(__FILE__).'/config.php')) {
50
-    require_once(dirname(__FILE__).'/config.php');
49
+if (file_exists(dirname(__FILE__) . '/config.php')) {
50
+    require_once(dirname(__FILE__) . '/config.php');
51 51
     // Old BigBlueButtonBN cfg schema. For backward compatibility.
52 52
     global $BIGBLUEBUTTONBN_CFG;
53 53
 
54 54
     if (isset($BIGBLUEBUTTONBN_CFG)) {
55
-        foreach ((array) $BIGBLUEBUTTONBN_CFG as $key => $value) {
55
+        foreach ((array)$BIGBLUEBUTTONBN_CFG as $key => $value) {
56 56
             $cfgkey = str_replace("bigbluebuttonbn_", "", $key);
57 57
             $CFG->bigbluebuttonbn[$cfgkey] = $value;
58 58
         }
@@ -83,19 +83,19 @@  discard block
 block discarded – undo
83 83
     }
84 84
 
85 85
     $features = array(
86
-        (string) FEATURE_IDNUMBER => true,
87
-        (string) FEATURE_GROUPS => true,
88
-        (string) FEATURE_GROUPINGS => true,
89
-        (string) FEATURE_GROUPMEMBERSONLY => true,
90
-        (string) FEATURE_MOD_INTRO => true,
91
-        (string) FEATURE_BACKUP_MOODLE2 => true,
92
-        (string) FEATURE_COMPLETION_TRACKS_VIEWS => true,
93
-        (string) FEATURE_GRADE_HAS_GRADE => false,
94
-        (string) FEATURE_GRADE_OUTCOMES => false,
95
-        (string) FEATURE_SHOW_DESCRIPTION => true,
86
+        (string)FEATURE_IDNUMBER => true,
87
+        (string)FEATURE_GROUPS => true,
88
+        (string)FEATURE_GROUPINGS => true,
89
+        (string)FEATURE_GROUPMEMBERSONLY => true,
90
+        (string)FEATURE_MOD_INTRO => true,
91
+        (string)FEATURE_BACKUP_MOODLE2 => true,
92
+        (string)FEATURE_COMPLETION_TRACKS_VIEWS => true,
93
+        (string)FEATURE_GRADE_HAS_GRADE => false,
94
+        (string)FEATURE_GRADE_OUTCOMES => false,
95
+        (string)FEATURE_SHOW_DESCRIPTION => true,
96 96
     );
97 97
 
98
-    if (isset($features[(string) $feature])) {
98
+    if (isset($features[(string)$feature])) {
99 99
         return $features[$feature];
100 100
     }
101 101
 
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
     }
176 176
 
177 177
     // End the session associated with this instance (if it's running).
178
-    $meetingid = $bigbluebuttonbn->meetingid.'-'.$bigbluebuttonbn->course.'-'.$bigbluebuttonbn->id;
178
+    $meetingid = $bigbluebuttonbn->meetingid . '-' . $bigbluebuttonbn->course . '-' . $bigbluebuttonbn->id;
179 179
     $modpw = $bigbluebuttonbn->moderatorpass;
180 180
 
181 181
     if (bigbluebuttonbn_is_meeting_running($meetingid)) {
@@ -235,11 +235,11 @@  discard block
 block discarded – undo
235 235
     $completed = $DB->count_records('bigbluebuttonbn_logs', array('courseid' => $course->id,
236 236
                                                               'bigbluebuttonbnid' => $bigbluebuttonbn->id,
237 237
                                                               'userid' => $user->id,
238
-                                                              'log' => 'Join', ), '*');
238
+                                                              'log' => 'Join',), '*');
239 239
 
240 240
     if ($completed > 0) {
241
-        return fullname($user).' '.get_string('view_message_has_joined', 'bigbluebuttonbn').' '.
242
-            get_string('view_message_session_for', 'bigbluebuttonbn').' '.(string) $completed.' '.
241
+        return fullname($user) . ' ' . get_string('view_message_has_joined', 'bigbluebuttonbn') . ' ' .
242
+            get_string('view_message_session_for', 'bigbluebuttonbn') . ' ' . (string)$completed . ' ' .
243 243
             get_string('view_message_times', 'bigbluebuttonbn');
244 244
     }
245 245
 
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
     $completed = $DB->count_recorda('bigbluebuttonbn_logs', array('courseid' => $course->id,
259 259
                                                               'bigbluebuttonbnid' => $bigbluebuttonbn->id,
260 260
                                                               'userid' => $user->id,
261
-                                                              'log' => 'Join', ), '*', IGNORE_MULTIPLE);
261
+                                                              'log' => 'Join',), '*', IGNORE_MULTIPLE);
262 262
 
263 263
     return $completed > 0;
264 264
 }
@@ -328,16 +328,16 @@  discard block
 block discarded – undo
328 328
     if ($bigbluebuttonbn->visible) {
329 329
         $classes = 'class="dimmed" ';
330 330
     }
331
-    $str = '<div class="bigbluebuttonbn overview">'."\n";
332
-    $str .= '  <div class="name">'.get_string('modulename', 'bigbluebuttonbn').':&nbsp;'."\n";
333
-    $str .= '    <a '.$classes.'href="'.$CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$bigbluebuttonbn->coursemodule.
334
-      '">'.$bigbluebuttonbn->name.'</a>'."\n";
335
-    $str .= '  </div>'."\n";
336
-    $str .= '  <div class="info">'.get_string($start, 'bigbluebuttonbn').': '.userdate($bigbluebuttonbn->openingtime).
337
-        '</div>'."\n";
338
-    $str .= '  <div class="info">'.get_string('ends_at', 'bigbluebuttonbn').': '.userdate($bigbluebuttonbn->closingtime)
339
-      .'</div>'."\n";
340
-    $str .= '</div>'."\n";
331
+    $str = '<div class="bigbluebuttonbn overview">' . "\n";
332
+    $str .= '  <div class="name">' . get_string('modulename', 'bigbluebuttonbn') . ':&nbsp;' . "\n";
333
+    $str .= '    <a ' . $classes . 'href="' . $CFG->wwwroot . '/mod/bigbluebuttonbn/view.php?id=' . $bigbluebuttonbn->coursemodule .
334
+      '">' . $bigbluebuttonbn->name . '</a>' . "\n";
335
+    $str .= '  </div>' . "\n";
336
+    $str .= '  <div class="info">' . get_string($start, 'bigbluebuttonbn') . ': ' . userdate($bigbluebuttonbn->openingtime) .
337
+        '</div>' . "\n";
338
+    $str .= '  <div class="info">' . get_string('ends_at', 'bigbluebuttonbn') . ': ' . userdate($bigbluebuttonbn->closingtime)
339
+      .'</div>' . "\n";
340
+    $str .= '</div>' . "\n";
341 341
 
342 342
     return $str;
343 343
 }
@@ -425,7 +425,7 @@  discard block
 block discarded – undo
425 425
     /* Now that an id was assigned, generate and set the meetingid property based on
426 426
      * [Moodle Instance + Activity ID + BBB Secret] (but only for new activities) */
427 427
     if (isset($bigbluebuttonbn->add) && !empty($bigbluebuttonbn->add)) {
428
-        $meetingid = sha1($CFG->wwwroot.$bigbluebuttonbn->id.bigbluebuttonbn_get_cfg_shared_secret());
428
+        $meetingid = sha1($CFG->wwwroot . $bigbluebuttonbn->id . bigbluebuttonbn_get_cfg_shared_secret());
429 429
         $DB->set_field('bigbluebuttonbn', 'meetingid', $meetingid, array('id' => $bigbluebuttonbn->id));
430 430
 
431 431
         $action = get_string('mod_form_field_notification_msg_created', 'bigbluebuttonbn');
@@ -499,7 +499,7 @@  discard block
 block discarded – undo
499 499
     if (count($files) == 1) {
500 500
         // Get the first (and only) file.
501 501
         $file = reset($files);
502
-        $filesrc = '/'.$file->get_filename();
502
+        $filesrc = '/' . $file->get_filename();
503 503
     }
504 504
     // Set the presentation column in the bigbluebuttonbn table.
505 505
     $DB->set_field('bigbluebuttonbn', 'presentation', $filesrc, array('id' => $bigbluebuttonbnid));
@@ -538,7 +538,7 @@  discard block
 block discarded – undo
538 538
         return false;
539 539
     }
540 540
 
541
-    $fullpath = "/$context->id/mod_bigbluebuttonbn/$filearea/0/".$filename;
541
+    $fullpath = "/$context->id/mod_bigbluebuttonbn/$filearea/0/" . $filename;
542 542
     $fs = get_file_storage();
543 543
     if (!$file = $fs->get_file_by_hash(sha1($fullpath)) or $file->is_directory()) {
544 544
         return false;
@@ -640,26 +640,26 @@  discard block
 block discarded – undo
640 640
 }
641 641
 
642 642
 function bigbluebuttonbn_notification_msg_html($msg) {
643
-    $messagetext = '<p>'.$msg->activity_type.' &quot;'.$msg->activity_title.'&quot; '.
644
-        get_string('email_body_notification_meeting_has_been', 'bigbluebuttonbn').' '.$msg->action.'.</p>'."\n";
645
-    $messagetext .= '<p><b>'.$msg->activity_title.'</b> '.
646
-        get_string('email_body_notification_meeting_details', 'bigbluebuttonbn').':'."\n";
647
-    $messagetext .= '<table border="0" style="margin: 5px 0 0 20px"><tbody>'."\n";
648
-    $messagetext .= '<tr><td style="font-weight:bold;color:#555;">'.
649
-        get_string('email_body_notification_meeting_title', 'bigbluebuttonbn').': </td><td>'."\n";
650
-    $messagetext .= $msg->activity_title.'</td></tr>'."\n";
651
-    $messagetext .= '<tr><td style="font-weight:bold;color:#555;">'.
652
-        get_string('email_body_notification_meeting_description', 'bigbluebuttonbn').': </td><td>'."\n";
653
-    $messagetext .= $msg->activity_description.'</td></tr>'."\n";
654
-    $messagetext .= '<tr><td style="font-weight:bold;color:#555;">'.
655
-        get_string('email_body_notification_meeting_start_date', 'bigbluebuttonbn').': </td><td>'."\n";
656
-    $messagetext .= $msg->activity_openingtime.'</td></tr>'."\n";
657
-    $messagetext .= '<tr><td style="font-weight:bold;color:#555;">'.
658
-        get_string('email_body_notification_meeting_end_date', 'bigbluebuttonbn').': </td><td>'."\n";
659
-    $messagetext .= $msg->activity_closingtime.'</td></tr>'."\n";
660
-    $messagetext .= '<tr><td style="font-weight:bold;color:#555;">'.$msg->action.' '.
661
-        get_string('email_body_notification_meeting_by', 'bigbluebuttonbn').': </td><td>'."\n";
662
-    $messagetext .= $msg->activity_owner.'</td></tr></tbody></table></p>'."\n";
643
+    $messagetext = '<p>' . $msg->activity_type . ' &quot;' . $msg->activity_title . '&quot; ' .
644
+        get_string('email_body_notification_meeting_has_been', 'bigbluebuttonbn') . ' ' . $msg->action . '.</p>' . "\n";
645
+    $messagetext .= '<p><b>' . $msg->activity_title . '</b> ' .
646
+        get_string('email_body_notification_meeting_details', 'bigbluebuttonbn') . ':' . "\n";
647
+    $messagetext .= '<table border="0" style="margin: 5px 0 0 20px"><tbody>' . "\n";
648
+    $messagetext .= '<tr><td style="font-weight:bold;color:#555;">' .
649
+        get_string('email_body_notification_meeting_title', 'bigbluebuttonbn') . ': </td><td>' . "\n";
650
+    $messagetext .= $msg->activity_title . '</td></tr>' . "\n";
651
+    $messagetext .= '<tr><td style="font-weight:bold;color:#555;">' .
652
+        get_string('email_body_notification_meeting_description', 'bigbluebuttonbn') . ': </td><td>' . "\n";
653
+    $messagetext .= $msg->activity_description . '</td></tr>' . "\n";
654
+    $messagetext .= '<tr><td style="font-weight:bold;color:#555;">' .
655
+        get_string('email_body_notification_meeting_start_date', 'bigbluebuttonbn') . ': </td><td>' . "\n";
656
+    $messagetext .= $msg->activity_openingtime . '</td></tr>' . "\n";
657
+    $messagetext .= '<tr><td style="font-weight:bold;color:#555;">' .
658
+        get_string('email_body_notification_meeting_end_date', 'bigbluebuttonbn') . ': </td><td>' . "\n";
659
+    $messagetext .= $msg->activity_closingtime . '</td></tr>' . "\n";
660
+    $messagetext .= '<tr><td style="font-weight:bold;color:#555;">' . $msg->action . ' ' .
661
+        get_string('email_body_notification_meeting_by', 'bigbluebuttonbn') . ': </td><td>' . "\n";
662
+    $messagetext .= $msg->activity_owner . '</td></tr></tbody></table></p>' . "\n";
663 663
 }
664 664
 
665 665
 function bigbluebuttonbn_notification_send($sender, $bigbluebuttonbn, $message = '') {
@@ -673,9 +673,9 @@  discard block
 block discarded – undo
673 673
     $msg->user_name = fullname($sender);
674 674
     $msg->user_email = $sender->email;
675 675
     $msg->course_name = "$course->fullname";
676
-    $message .= '<p><hr/><br/>'.get_string('email_footer_sent_by', 'bigbluebuttonbn').' '.
677
-        $msg->user_name.'('.$msg->user_email.') ';
678
-    $message .= get_string('email_footer_sent_from', 'bigbluebuttonbn').' '.$msg->course_name.'.</p>';
676
+    $message .= '<p><hr/><br/>' . get_string('email_footer_sent_by', 'bigbluebuttonbn') . ' ' .
677
+        $msg->user_name . '(' . $msg->user_email . ') ';
678
+    $message .= get_string('email_footer_sent_from', 'bigbluebuttonbn') . ' ' . $msg->course_name . '.</p>';
679 679
 
680 680
     $users = get_enrolled_users($context);
681 681
     foreach ($users as $user) {
@@ -685,7 +685,7 @@  discard block
 block discarded – undo
685 685
             if (empty($messageid)) {
686 686
                 $msgsend = ' was NOT sent.';
687 687
             }
688
-            debugging('Msg to '.$msg->user_name.$msgsend, DEBUG_DEVELOPER);
688
+            debugging('Msg to ' . $msg->user_name . $msgsend, DEBUG_DEVELOPER);
689 689
         }
690 690
     }
691 691
 }
Please login to merge, or discard this patch.
classes/event/bigbluebuttonbn_activity_viewed.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,11 +52,11 @@  discard block
 block discarded – undo
52 52
      * @return string
53 53
      */
54 54
     public function get_description() {
55
-        $a = (object) array('userid' => $this->userid,
55
+        $a = (object)array('userid' => $this->userid,
56 56
                             'bigbluebuttonbnid' => $this->objectid,
57 57
                             'courseid' => $this->contextinstanceid);
58 58
 
59
-        return "The user with id '$a->userid' viewed the bigbluebuttonbn activity ".
59
+        return "The user with id '$a->userid' viewed the bigbluebuttonbn activity " .
60 60
         "with id '$a->bigbluebuttonbnid' for the course id '$a->courseid'.";
61 61
     }
62 62
 
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      */
68 68
     protected function get_legacy_logdata() {
69 69
         return array($this->courseid, 'bigbluebuttonbn', 'activity viewed',
70
-                'view.php?pageid='.$this->objectid, 'BigBlueButtonBN activity viewed',
70
+                'view.php?pageid=' . $this->objectid, 'BigBlueButtonBN activity viewed',
71 71
                 $this->contextinstanceid);
72 72
     }
73 73
 
Please login to merge, or discard this patch.
classes/event/bigbluebuttonbn_meeting_left.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -52,12 +52,12 @@  discard block
 block discarded – undo
52 52
      * @return string
53 53
      */
54 54
     public function get_description() {
55
-        $a = (object) array('userid' => $this->userid,
55
+        $a = (object)array('userid' => $this->userid,
56 56
                             'bigbluebuttonbnid' => $this->objectid,
57 57
                             'courseid' => $this->contextinstanceid);
58 58
 
59
-        return "The user with id '$a->userid' has left a bigbluebutton meeting for ".
60
-        "the bigbluebuttonbn activity with id '$a->bigbluebuttonbnid' for the course id ".
59
+        return "The user with id '$a->userid' has left a bigbluebutton meeting for " .
60
+        "the bigbluebuttonbn activity with id '$a->bigbluebuttonbnid' for the course id " .
61 61
         "'$a->courseid'.";
62 62
     }
63 63
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      */
69 69
     protected function get_legacy_logdata() {
70 70
         return array($this->courseid, 'bigbluebuttonbn', 'meeting left',
71
-                'view.php?pageid='.$this->objectid, 'BigBlueButtonBN meeting left',
71
+                'view.php?pageid=' . $this->objectid, 'BigBlueButtonBN meeting left',
72 72
                 $this->contextinstanceid);
73 73
     }
74 74
 
Please login to merge, or discard this patch.
classes/event/bigbluebuttonbn_meeting_ended.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -52,12 +52,12 @@  discard block
 block discarded – undo
52 52
      * @return string
53 53
      */
54 54
     public function get_description() {
55
-        $a = (object) array('userid' => $this->userid,
55
+        $a = (object)array('userid' => $this->userid,
56 56
                             'bigbluebuttonbnid' => $this->objectid,
57 57
                             'courseid' => $this->contextinstanceid);
58 58
 
59
-        return "A bigbluebutton meeting for the bigbluebuttonbn activity with id ".
60
-        "'$a->bigbluebuttonbnid' for the course id '$a->courseid' has been forcibly ".
59
+        return "A bigbluebutton meeting for the bigbluebuttonbn activity with id " .
60
+        "'$a->bigbluebuttonbnid' for the course id '$a->courseid' has been forcibly " .
61 61
         "ended by the user with id '$a->userid'.";
62 62
     }
63 63
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      */
69 69
     protected function get_legacy_logdata() {
70 70
         return array($this->courseid, 'bigbluebuttonbn', 'meeting ended',
71
-                'view.php?pageid='.$this->objectid, 'BigBlueButtonBN meeting forcibly ended',
71
+                'view.php?pageid=' . $this->objectid, 'BigBlueButtonBN meeting forcibly ended',
72 72
                 $this->contextinstanceid);
73 73
     }
74 74
 
Please login to merge, or discard this patch.
classes/event/bigbluebuttonbn_activity_management_viewed.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
      * @return string
52 52
      */
53 53
     public function get_description() {
54
-        return "The user with id '$this->userid' viewed the bigbluebuttonbn activity management page for ".
54
+        return "The user with id '$this->userid' viewed the bigbluebuttonbn activity management page for " .
55 55
         "the course module id '$this->contextinstanceid'.";
56 56
     }
57 57
 
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      */
63 63
     protected function get_legacy_logdata() {
64 64
         return array($this->courseid, 'bigbluebuttonbn', 'activity management viewed',
65
-                'view.php?pageid='.$this->objectid, 'BigBlueButtonBN activity management viewed', $this->contextinstanceid, );
65
+                'view.php?pageid=' . $this->objectid, 'BigBlueButtonBN activity management viewed', $this->contextinstanceid,);
66 66
     }
67 67
 
68 68
     /**
Please login to merge, or discard this patch.
classes/event/bigbluebuttonbn_meeting_created.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,11 +52,11 @@  discard block
 block discarded – undo
52 52
      * @return string
53 53
      */
54 54
     public function get_description() {
55
-        $a = (object) array('userid' => $this->userid,
55
+        $a = (object)array('userid' => $this->userid,
56 56
                             'bigbluebuttonbnid' => $this->objectid,
57 57
                             'courseid' => $this->contextinstanceid);
58 58
 
59
-        return "The user with id '$a->userid' created a bigbluebutton meeting for".
59
+        return "The user with id '$a->userid' created a bigbluebutton meeting for" .
60 60
         "the bigbluebuttonbn activity with id '$a->bigbluebuttonbnid' for the course id '$a->courseid'.";
61 61
     }
62 62
 
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      */
68 68
     protected function get_legacy_logdata() {
69 69
         return array($this->courseid, 'bigbluebuttonbn', 'meeting created',
70
-                'view.php?pageid='.$this->objectid, 'BigBlueButtonBN meeting created',
70
+                'view.php?pageid=' . $this->objectid, 'BigBlueButtonBN meeting created',
71 71
                 $this->contextinstanceid);
72 72
     }
73 73
 
Please login to merge, or discard this patch.
classes/event/bigbluebuttonbn_meeting_joined.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -52,12 +52,12 @@  discard block
 block discarded – undo
52 52
      * @return string
53 53
      */
54 54
     public function get_description() {
55
-        $a = (object) array('userid' => $this->userid,
55
+        $a = (object)array('userid' => $this->userid,
56 56
                             'bigbluebuttonbnid' => $this->objectid,
57 57
                             'courseid' => $this->contextinstanceid);
58 58
 
59
-        return "The user with id '$a->userid' has joined a bigbluebutton meeting for ".
60
-        "the bigbluebuttonbn activity with id '$a->bigbluebuttonbnid' for the course id ".
59
+        return "The user with id '$a->userid' has joined a bigbluebutton meeting for " .
60
+        "the bigbluebuttonbn activity with id '$a->bigbluebuttonbnid' for the course id " .
61 61
         "'$a->courseid'.";
62 62
     }
63 63
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      */
69 69
     protected function get_legacy_logdata() {
70 70
         return array($this->courseid, 'bigbluebuttonbn', 'meeting joined',
71
-                'view.php?pageid='.$this->objectid, 'BigBlueButtonBN meeting joined',
71
+                'view.php?pageid=' . $this->objectid, 'BigBlueButtonBN meeting joined',
72 72
                 $this->contextinstanceid);
73 73
     }
74 74
 
Please login to merge, or discard this patch.
backup/moodle2/backup_bigbluebuttonbn_activity_task.class.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 
24 24
 defined('MOODLE_INTERNAL') || die;
25 25
 
26
-require_once($CFG->dirroot.'/mod/bigbluebuttonbn/backup/moodle2/backup_bigbluebuttonbn_stepslib.php');
26
+require_once($CFG->dirroot . '/mod/bigbluebuttonbn/backup/moodle2/backup_bigbluebuttonbn_stepslib.php');
27 27
 
28 28
 /**
29 29
  * bigbluebuttonbn backup task that provides all the settings and steps to perform one
@@ -53,14 +53,14 @@  discard block
 block discarded – undo
53 53
     public static function encode_content_links($content) {
54 54
         global $CFG;
55 55
 
56
-        $base = preg_quote($CFG->wwwroot.'/mod/bigbluebuttonbn', '#');
56
+        $base = preg_quote($CFG->wwwroot . '/mod/bigbluebuttonbn', '#');
57 57
 
58 58
         // Link to the list of bigbluebuttonbns.
59
-        $pattern = '#('.$base."\/index.php\?id\=)([0-9]+)#";
59
+        $pattern = '#(' . $base . "\/index.php\?id\=)([0-9]+)#";
60 60
         $content = preg_replace($pattern, '$@BIGBLUEBUTTONBNINDEX*$2@$', $content);
61 61
 
62 62
         // Link to bigbluebuttonbn view by moduleid.
63
-        $pattern = '#('.$base."\/view.php\?id\=)([0-9]+)#";
63
+        $pattern = '#(' . $base . "\/view.php\?id\=)([0-9]+)#";
64 64
         $content = preg_replace($pattern, '$@BIGBLUEBUTTONBNVIEWBYID*$2@$', $content);
65 65
 
66 66
         return $content;
Please login to merge, or discard this patch.
backup/moodle2/restore_bigbluebuttonbn_stepslib.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     protected function process_bigbluebuttonbn($data) {
46 46
         global $DB;
47 47
 
48
-        $data = (object) $data;
48
+        $data = (object)$data;
49 49
         $data->course = $this->get_courseid();
50 50
 
51 51
         $data->timemodified = $this->apply_date_offset($data->timemodified);
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
     protected function process_bigbluebuttonbn_logs($data) {
60 60
         global $DB;
61 61
 
62
-        $data = (object) $data;
62
+        $data = (object)$data;
63 63
         // Apply modifications.
64 64
         $data->courseid = $this->get_mappingid('course', $data->courseid);
65 65
         $data->bigbluebuttonbnid = $this->get_new_parentid('bigbluebuttonbn');
Please login to merge, or discard this patch.