Passed
Pull Request — master (#14)
by Jacob
01:27
created
lib.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     }
59 59
     $params = array('contextid' => $context->id,
60 60
                     'sesskey' => $sesskey,
61
-                    'recordrtcroot' => $CFG->wwwroot.'/lib/editor/atto/plugins/recordrtc/',
61
+                    'recordrtcroot' => $CFG->wwwroot . '/lib/editor/atto/plugins/recordrtc/',
62 62
                     'allowedtypes' => $allowedtypes,
63 63
                     'audiobitrate' => $audiobitrate,
64 64
                     'videobitrate' => $videobitrate,
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 /**
121 121
  * Define file-access behaviour for this plugin.
122 122
  */
123
-function atto_recordrtc_pluginfile($course, $cm, $context, $filearea, $args, $forcedownload, array $options=array()) {
123
+function atto_recordrtc_pluginfile($course, $cm, $context, $filearea, $args, $forcedownload, array $options = array()) {
124 124
     // Needs to be changed depending on the context-based permissions we decide later.
125 125
     //if ($context->contextlevel != CONTEXT_USER) {
126 126
     //    return false;
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
     if (!$args) {
146 146
         $filepath = '/';
147 147
     } else {
148
-        $filepath = '/'.implode('/', $args).'/';
148
+        $filepath = '/' . implode('/', $args) . '/';
149 149
     }
150 150
 
151 151
     $fs = get_file_storage();
Please login to merge, or discard this patch.