Passed
Push — master ( 84ebca...b96b98 )
by Jesus
03:50 queued 01:53
created
save.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,5 +74,5 @@
 block discarded – undo
74 74
 
75 75
 // OK response.
76 76
 $filetarget = $filesaved->get_contextid().'/'.$filesaved->get_component().'/'.$filesaved->get_filearea().'/'.
77
-              $filesaved->get_itemid().'/'.$filesaved->get_filename();
77
+                $filesaved->get_itemid().'/'.$filesaved->get_filename();
78 78
 echo($filetarget);
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 // Disable Moodle-specific debug messages and any errors in output.
28 28
 define('NO_DEBUG_DISPLAY', true);
29 29
 
30
-require_once(dirname(dirname(dirname(dirname(dirname(dirname(__FILE__)))))).'/config.php');
30
+require_once(dirname(dirname(dirname(dirname(dirname(dirname(__FILE__)))))) . '/config.php');
31 31
 
32 32
 $contextid = optional_param('contextid', 0, PARAM_INT);
33 33
 
@@ -62,18 +62,18 @@  discard block
 block discarded – undo
62 62
 // Prepare file record object.
63 63
 $usercontext = context_user::instance($USER->id);
64 64
 $fileinfo = array(
65
-    'contextid' => $usercontext->id,    // ID of context.
65
+    'contextid' => $usercontext->id, // ID of context.
66 66
     'component' => 'atto_recordrtc', // Usually = table name.
67
-    'filearea' => 'annotation',         // Usually = table name.
68
-    'itemid' => time(),                 // Usually = ID of row in table.
69
-    'filepath' => '/',                  // Any path beginning and ending in "/".
70
-    'filename' => $filename,            // Any filename.
67
+    'filearea' => 'annotation', // Usually = table name.
68
+    'itemid' => time(), // Usually = ID of row in table.
69
+    'filepath' => '/', // Any path beginning and ending in "/".
70
+    'filename' => $filename, // Any filename.
71 71
     'author' => fullname($USER),
72 72
     'license' => $CFG->sitedefaultlicense
73 73
 );
74 74
 $filesaved = $fs->create_file_from_pathname($fileinfo, $filetmp);
75 75
 
76 76
 // OK response.
77
-$filetarget = $filesaved->get_contextid().'/'.$filesaved->get_component().'/'.$filesaved->get_filearea().'/'.
78
-              $filesaved->get_itemid().'/'.$filesaved->get_filename();
77
+$filetarget = $filesaved->get_contextid() . '/' . $filesaved->get_component() . '/' . $filesaved->get_filearea() . '/' .
78
+              $filesaved->get_itemid() . '/' . $filesaved->get_filename();
79 79
 echo($filetarget);
Please login to merge, or discard this patch.
lib.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
     }
60 60
     $params = array('contextid' => $context->id,
61 61
                     'sesskey' => $sesskey,
62
-                    'recordrtcroot' => $CFG->wwwroot.MOODLE_ATTO_RECORDRTC_ROOT,
62
+                    'recordrtcroot' => $CFG->wwwroot . MOODLE_ATTO_RECORDRTC_ROOT,
63 63
                     'allowedtypes' => $allowedtypes,
64 64
                     'audiobitrate' => $audiobitrate,
65 65
                     'videobitrate' => $videobitrate,
Please login to merge, or discard this patch.
Indentation   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
                     'videortcicon' => $videortcicon,
70 70
                     'oldermoodle' => $moodleversion < $moodle32,
71 71
                     'maxrecsize' => $maxrecsize
72
-              );
72
+                );
73 73
 
74 74
     return $params;
75 75
 }
@@ -81,41 +81,41 @@  discard block
 block discarded – undo
81 81
     global $PAGE;
82 82
 
83 83
     $PAGE->requires->strings_for_js(array('audiortc',
84
-                                          'videortc',
85
-                                          'gumabort_title',
86
-                                          'gumabort',
87
-                                          'gumnotallowed_title',
88
-                                          'gumnotallowed',
89
-                                          'gumnotfound_title',
90
-                                          'gumnotfound',
91
-                                          'gumnotreadable_title',
92
-                                          'gumnotreadable',
93
-                                          'gumoverconstrained_title',
94
-                                          'gumoverconstrained',
95
-                                          'gumsecurity_title',
96
-                                          'gumsecurity',
97
-                                          'gumtype_title',
98
-                                          'gumtype',
99
-                                          'insecurealert_title',
100
-                                          'insecurealert',
101
-                                          'browseralert_title',
102
-                                          'browseralert',
103
-                                          'startrecording',
104
-                                          'recordagain',
105
-                                          'stoprecording',
106
-                                          'recordingfailed',
107
-                                          'attachrecording',
108
-                                          'norecordingfound_title',
109
-                                          'norecordingfound',
110
-                                          'nearingmaxsize_title',
111
-                                          'nearingmaxsize',
112
-                                          'uploadprogress',
113
-                                          'uploadfailed',
114
-                                          'uploadfailed404',
115
-                                          'uploadaborted',
116
-                                          'annotationprompt',
117
-                                          'annotation:audio',
118
-                                          'annotation:video'),
84
+                                            'videortc',
85
+                                            'gumabort_title',
86
+                                            'gumabort',
87
+                                            'gumnotallowed_title',
88
+                                            'gumnotallowed',
89
+                                            'gumnotfound_title',
90
+                                            'gumnotfound',
91
+                                            'gumnotreadable_title',
92
+                                            'gumnotreadable',
93
+                                            'gumoverconstrained_title',
94
+                                            'gumoverconstrained',
95
+                                            'gumsecurity_title',
96
+                                            'gumsecurity',
97
+                                            'gumtype_title',
98
+                                            'gumtype',
99
+                                            'insecurealert_title',
100
+                                            'insecurealert',
101
+                                            'browseralert_title',
102
+                                            'browseralert',
103
+                                            'startrecording',
104
+                                            'recordagain',
105
+                                            'stoprecording',
106
+                                            'recordingfailed',
107
+                                            'attachrecording',
108
+                                            'norecordingfound_title',
109
+                                            'norecordingfound',
110
+                                            'nearingmaxsize_title',
111
+                                            'nearingmaxsize',
112
+                                            'uploadprogress',
113
+                                            'uploadfailed',
114
+                                            'uploadfailed404',
115
+                                            'uploadaborted',
116
+                                            'annotationprompt',
117
+                                            'annotation:audio',
118
+                                            'annotation:video'),
119 119
                                     'atto_recordrtc');
120 120
 }
121 121
 
Please login to merge, or discard this patch.
db/install.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,8 +27,8 @@
 block discarded – undo
27 27
 defined('MOODLE_INTERNAL') || die();
28 28
 
29 29
 /**
30
-  * Enable RecordRTC plugin buttons on installation.
31
-  */
30
+ * Enable RecordRTC plugin buttons on installation.
31
+ */
32 32
 function xmldb_atto_recordrtc_install() {
33 33
     $toolbar = get_config('editor_atto', 'toolbar');
34 34
     if (strpos($toolbar, 'recordrtc') === false && $toolbar && $toolbar != '') {
Please login to merge, or discard this patch.
uploads.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 // Disable Moodle-specific debug messages and any errors in output.
28 28
 define('NO_DEBUG_DISPLAY', true);
29 29
 
30
-require_once(dirname(dirname(dirname(dirname(dirname(dirname(__FILE__)))))).'/config.php');
30
+require_once(dirname(dirname(dirname(dirname(dirname(dirname(__FILE__)))))) . '/config.php');
31 31
 
32 32
 require_login();
33 33
 if (isguestuser()) {
@@ -51,10 +51,10 @@  discard block
 block discarded – undo
51 51
     print_error('invalidarguments');
52 52
 }
53 53
 
54
-$contextid = (int)array_shift($args);
54
+$contextid = (int) array_shift($args);
55 55
 $component = array_shift($args);
56 56
 $filearea  = array_shift($args);
57
-$draftid   = (int)array_shift($args);
57
+$draftid   = (int) array_shift($args);
58 58
 
59 59
 if ($component !== 'tinymce_recordrtc' and
60 60
     $component !== 'atto_recordrtc' or
Please login to merge, or discard this patch.