Skip to content

Commit 19bc20e

Browse files
authored
Apply fixes from StyleCI
1 parent 3cf12cd commit 19bc20e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/controllers/UploadController.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ private function proceedSingleUpload($file)
6161
->save($new_file_path, 90);
6262

6363
$this->makeThumb($new_filename);
64-
} else {
64+
}
65+
{
6566
chmod($file->getRealPath(), 0644); // TODO configurable
6667
File::move($file->getRealPath(), $new_file_path);
6768
}
@@ -166,18 +167,19 @@ function getUrlParam(paramName) {
166167
if (o !== false) o.CKEDITOR.tools.callFunction(funcNum, '$file');
167168
</script>";
168169
}
169-
170+
170171
private function _pathinfo($path, $options = null)
171172
{
172173
$path = urlencode($path);
173174
$parts = is_null($options) ? pathinfo($path) : pathinfo($path, $options);
174-
if(is_array($parts)) {
175-
foreach($parts as $field => $value) {
175+
if (is_array($parts)) {
176+
foreach ($parts as $field => $value) {
176177
$parts[$field] = urldecode($value);
177178
}
178179
} else {
179180
$parts = urldecode($parts);
180181
}
182+
181183
return $parts;
182184
}
183185
}

0 commit comments

Comments
 (0)