Passed
Push — master ( 8be289...5c19e6 )
by Jacob
01:49
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   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -62,12 +62,12 @@
 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
 );
Please login to merge, or discard this patch.
db/install.php 2 patches
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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
         foreach ($groups as $i => $group) {
38 38
             $parts = explode('=', $group);
39 39
             if (trim($parts[0]) == 'files') {
40
-                $groups[$i] = 'files = ' . trim($parts[1]) . ', recordrtc';
40
+                $groups[$i] = 'files = '.trim($parts[1]).', recordrtc';
41 41
                 // Update config variable.
42 42
                 $toolbar = implode("\n", $groups);
43 43
                 set_config('toolbar', $toolbar, 'editor_atto');
Please login to merge, or discard this patch.
lib.php 1 patch
Indentation   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
                     'videortcicon' => $videortcicon,
78 78
                     'oldermoodle' => $moodleversion < $moodle32,
79 79
                     'maxrecsize' => $maxrecsize
80
-              );
80
+                );
81 81
 
82 82
     return $params;
83 83
 }
@@ -89,45 +89,45 @@  discard block
 block discarded – undo
89 89
     global $PAGE;
90 90
 
91 91
     $PAGE->requires->strings_for_js(array('audiortc',
92
-                                          'videortc',
93
-                                          'gumabort_title',
94
-                                          'gumabort',
95
-                                          'gumnotallowed_title',
96
-                                          'gumnotallowed',
97
-                                          'gumnotfound_title',
98
-                                          'gumnotfound',
99
-                                          'gumnotreadable_title',
100
-                                          'gumnotreadable',
101
-                                          'gumoverconstrained_title',
102
-                                          'gumoverconstrained',
103
-                                          'gumsecurity_title',
104
-                                          'gumsecurity',
105
-                                          'gumtype_title',
106
-                                          'gumtype',
107
-                                          'insecurealert_title',
108
-                                          'insecurealert',
109
-                                          'browseralert_title',
110
-                                          'browseralert',
111
-                                          'startrecording',
112
-                                          'recordagain',
113
-                                          'stoprecording',
114
-                                          'recordingfailed',
115
-                                          'attachrecording',
116
-                                          'norecordingfound_title',
117
-                                          'norecordingfound',
118
-                                          'nearingmaxsize_title',
119
-                                          'nearingmaxsize',
120
-                                          'notpremium_title',
121
-                                          'notpremium',
122
-                                          'servernotfound_title',
123
-                                          'servernotfound',
124
-                                          'uploadprogress',
125
-                                          'uploadfailed',
126
-                                          'uploadfailed404',
127
-                                          'uploadaborted',
128
-                                          'annotationprompt',
129
-                                          'annotation:audio',
130
-                                          'annotation:video'),
92
+                                            'videortc',
93
+                                            'gumabort_title',
94
+                                            'gumabort',
95
+                                            'gumnotallowed_title',
96
+                                            'gumnotallowed',
97
+                                            'gumnotfound_title',
98
+                                            'gumnotfound',
99
+                                            'gumnotreadable_title',
100
+                                            'gumnotreadable',
101
+                                            'gumoverconstrained_title',
102
+                                            'gumoverconstrained',
103
+                                            'gumsecurity_title',
104
+                                            'gumsecurity',
105
+                                            'gumtype_title',
106
+                                            'gumtype',
107
+                                            'insecurealert_title',
108
+                                            'insecurealert',
109
+                                            'browseralert_title',
110
+                                            'browseralert',
111
+                                            'startrecording',
112
+                                            'recordagain',
113
+                                            'stoprecording',
114
+                                            'recordingfailed',
115
+                                            'attachrecording',
116
+                                            'norecordingfound_title',
117
+                                            'norecordingfound',
118
+                                            'nearingmaxsize_title',
119
+                                            'nearingmaxsize',
120
+                                            'notpremium_title',
121
+                                            'notpremium',
122
+                                            'servernotfound_title',
123
+                                            'servernotfound',
124
+                                            'uploadprogress',
125
+                                            'uploadfailed',
126
+                                            'uploadfailed404',
127
+                                            'uploadaborted',
128
+                                            'annotationprompt',
129
+                                            'annotation:audio',
130
+                                            'annotation:video'),
131 131
                                     'atto_recordrtc');
132 132
 }
133 133
 
Please login to merge, or discard this patch.