Completed
Push — master ( 411be6...041992 )
by Jesus
03:50
created
backup/moodle2/backup_bigbluebuttonbn_stepslib.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,12 +37,12 @@
 block discarded – undo
37 37
                             'moderatorpass', 'viewerpass', 'wait', 'record', 'tagging',
38 38
                             'welcome', 'voicebridge', 'openingtime', 'closingtime',
39 39
                             'timecreated', 'timemodified', 'presentation', 'participants',
40
-                            'userlimit', ));
40
+                            'userlimit',));
41 41
 
42 42
         $logs = new backup_nested_element('logs');
43 43
 
44 44
         $log = new backup_nested_element('log', array('id'), array(
45
-                'courseid', 'bigbluebuttonbnid', 'userid', 'timecreated', 'meetingid', 'log', 'meta', ));
45
+                'courseid', 'bigbluebuttonbnid', 'userid', 'timecreated', 'meetingid', 'log', 'meta',));
46 46
 
47 47
         // Build the tree
48 48
         $bigbluebuttonbn->add_child($logs);
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
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
     {
44 44
         global $DB;
45 45
 
46
-        $data = (object) $data;
46
+        $data = (object)$data;
47 47
         $data->course = $this->get_courseid();
48 48
 
49 49
         $data->timemodified = $this->apply_date_offset($data->timemodified);
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     {
59 59
         global $DB;
60 60
 
61
-        $data = (object) $data;
61
+        $data = (object)$data;
62 62
         // Apply modifications
63 63
         $data->courseid = $this->get_mappingid('course', $data->courseid);
64 64
         $data->bigbluebuttonbnid = $this->get_new_parentid('bigbluebuttonbn');
Please login to merge, or discard this patch.
backup/moodle2/restore_bigbluebuttonbn_activity_task.class.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
  */
21 21
 defined('MOODLE_INTERNAL') || die();
22 22
 
23
-require_once $CFG->dirroot.'/mod/bigbluebuttonbn/backup/moodle2/restore_bigbluebuttonbn_stepslib.php'; // Because it exists (must)
23
+require_once $CFG->dirroot . '/mod/bigbluebuttonbn/backup/moodle2/restore_bigbluebuttonbn_stepslib.php'; // Because it exists (must)
24 24
 
25 25
 /**
26 26
  * bigbluebuttonbn restore task that provides all the settings and steps to perform one
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
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
  */
21 21
 defined('MOODLE_INTERNAL') || die;
22 22
 
23
-require_once $CFG->dirroot.'/mod/bigbluebuttonbn/backup/moodle2/backup_bigbluebuttonbn_stepslib.php'; // Because it exists (must)
23
+require_once $CFG->dirroot . '/mod/bigbluebuttonbn/backup/moodle2/backup_bigbluebuttonbn_stepslib.php'; // Because it exists (must)
24 24
 
25 25
 /**
26 26
  * bigbluebuttonbn backup task that provides all the settings and steps to perform one
@@ -53,14 +53,14 @@  discard block
 block discarded – undo
53 53
     {
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.
classes/event/bigbluebuttonbn_recording_deleted.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     public function get_description()
57 57
     {
58 58
         $rid = isset($this->other['rid']) ? $this->other['rid'] : '';
59
-        $a = (object) array('userid' => $this->userid, 'recordingid' => $rid, 'courseid' => $this->contextinstanceid);
59
+        $a = (object)array('userid' => $this->userid, 'recordingid' => $rid, 'courseid' => $this->contextinstanceid);
60 60
 
61 61
         return "The user with id '$a->userid' has deleted a recording with id '$a->recordingid' from the course id '$a->courseid'.";
62 62
     }
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
     protected function get_legacy_logdata()
70 70
     {
71 71
         return array($this->courseid, 'bigbluebuttonbn', 'recording deleted',
72
-                'view.php?pageid='.$this->objectid, 'Recording deleted', $this->contextinstanceid, );
72
+                'view.php?pageid=' . $this->objectid, 'Recording deleted', $this->contextinstanceid,);
73 73
     }
74 74
 
75 75
     /**
Please login to merge, or discard this patch.
classes/event/bigbluebuttonbn_meeting_ended.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      */
56 56
     public function get_description()
57 57
     {
58
-        $a = (object) array('userid' => $this->userid, 'bigbluebuttonbnid' => $this->objectid, 'courseid' => $this->contextinstanceid);
58
+        $a = (object)array('userid' => $this->userid, 'bigbluebuttonbnid' => $this->objectid, 'courseid' => $this->contextinstanceid);
59 59
 
60 60
         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'.";
61 61
     }
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     protected function get_legacy_logdata()
69 69
     {
70 70
         return array($this->courseid, 'bigbluebuttonbn', 'meeting ended',
71
-                'view.php?pageid='.$this->objectid, 'BigBlueButtonBN meeting forcibly ended', $this->contextinstanceid, );
71
+                'view.php?pageid=' . $this->objectid, 'BigBlueButtonBN meeting forcibly ended', $this->contextinstanceid,);
72 72
     }
73 73
 
74 74
     /**
Please login to merge, or discard this patch.
classes/event/bigbluebuttonbn_meeting_created.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      */
56 56
     public function get_description()
57 57
     {
58
-        $a = (object) array('userid' => $this->userid, 'bigbluebuttonbnid' => $this->objectid, 'courseid' => $this->contextinstanceid);
58
+        $a = (object)array('userid' => $this->userid, 'bigbluebuttonbnid' => $this->objectid, 'courseid' => $this->contextinstanceid);
59 59
 
60 60
         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'.";
61 61
     }
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     protected function get_legacy_logdata()
69 69
     {
70 70
         return array($this->courseid, 'bigbluebuttonbn', 'meeting created',
71
-                'view.php?pageid='.$this->objectid, 'BigBlueButtonBN meeting created', $this->contextinstanceid, );
71
+                'view.php?pageid=' . $this->objectid, 'BigBlueButtonBN meeting created', $this->contextinstanceid,);
72 72
     }
73 73
 
74 74
     /**
Please login to merge, or discard this patch.
classes/event/bigbluebuttonbn_recording_imported.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     public function get_description()
57 57
     {
58 58
         $rid = isset($this->other['rid']) ? $this->other['rid'] : '';
59
-        $a = (object) array('userid' => $this->userid, 'recordingid' => $rid, 'courseid' => $this->contextinstanceid);
59
+        $a = (object)array('userid' => $this->userid, 'recordingid' => $rid, 'courseid' => $this->contextinstanceid);
60 60
 
61 61
         return "The user with id '$a->userid' has imported a recording with id '$a->recordingid' into the course id '$a->courseid'.";
62 62
     }
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
     protected function get_legacy_logdata()
70 70
     {
71 71
         return array($this->courseid, 'bigbluebuttonbn', 'recording imported',
72
-                'view.php?pageid='.$this->objectid, 'Recording imported', $this->contextinstanceid, );
72
+                'view.php?pageid=' . $this->objectid, 'Recording imported', $this->contextinstanceid,);
73 73
     }
74 74
 
75 75
     /**
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
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      */
55 55
     public function get_description()
56 56
     {
57
-        return "The user with id '$this->userid' viewed the bigbluebuttonbn activity management page for ".
57
+        return "The user with id '$this->userid' viewed the bigbluebuttonbn activity management page for " .
58 58
         "the course module id '$this->contextinstanceid'.";
59 59
     }
60 60
 
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     protected function get_legacy_logdata()
67 67
     {
68 68
         return array($this->courseid, 'bigbluebuttonbn', 'activity management viewed',
69
-                'view.php?pageid='.$this->objectid, 'BigBlueButtonBN activity management viewed', $this->contextinstanceid, );
69
+                'view.php?pageid=' . $this->objectid, 'BigBlueButtonBN activity management viewed', $this->contextinstanceid,);
70 70
     }
71 71
 
72 72
     /**
Please login to merge, or discard this patch.