@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | if ($this->datadir === '/') { |
59 | 59 | $this->realDataDir = $this->datadir; |
60 | 60 | } else { |
61 | - $this->realDataDir = rtrim(realpath($this->datadir), '/') . '/'; |
|
61 | + $this->realDataDir = rtrim(realpath($this->datadir), '/').'/'; |
|
62 | 62 | } |
63 | 63 | if (substr($this->datadir, -1) !== '/') { |
64 | 64 | $this->datadir .= '/'; |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | } |
71 | 71 | |
72 | 72 | public function getId() { |
73 | - return 'local::' . $this->datadir; |
|
73 | + return 'local::'.$this->datadir; |
|
74 | 74 | } |
75 | 75 | |
76 | 76 | public function mkdir($path) { |
@@ -228,17 +228,17 @@ discard block |
||
228 | 228 | $dstParent = dirname($path2); |
229 | 229 | |
230 | 230 | if (!$this->isUpdatable($srcParent)) { |
231 | - \OCP\Util::writeLog('core', 'unable to rename, source directory is not writable : ' . $srcParent, \OCP\Util::ERROR); |
|
231 | + \OCP\Util::writeLog('core', 'unable to rename, source directory is not writable : '.$srcParent, \OCP\Util::ERROR); |
|
232 | 232 | return false; |
233 | 233 | } |
234 | 234 | |
235 | 235 | if (!$this->isUpdatable($dstParent)) { |
236 | - \OCP\Util::writeLog('core', 'unable to rename, destination directory is not writable : ' . $dstParent, \OCP\Util::ERROR); |
|
236 | + \OCP\Util::writeLog('core', 'unable to rename, destination directory is not writable : '.$dstParent, \OCP\Util::ERROR); |
|
237 | 237 | return false; |
238 | 238 | } |
239 | 239 | |
240 | 240 | if (!$this->file_exists($path1)) { |
241 | - \OCP\Util::writeLog('core', 'unable to rename, file does not exists : ' . $path1, \OCP\Util::ERROR); |
|
241 | + \OCP\Util::writeLog('core', 'unable to rename, file does not exists : '.$path1, \OCP\Util::ERROR); |
|
242 | 242 | return false; |
243 | 243 | } |
244 | 244 | |
@@ -319,13 +319,13 @@ discard block |
||
319 | 319 | foreach (scandir($physicalDir) as $item) { |
320 | 320 | if (\OC\Files\Filesystem::isIgnoredDir($item)) |
321 | 321 | continue; |
322 | - $physicalItem = $physicalDir . '/' . $item; |
|
322 | + $physicalItem = $physicalDir.'/'.$item; |
|
323 | 323 | |
324 | 324 | if (strstr(strtolower($item), strtolower($query)) !== false) { |
325 | - $files[] = $dir . '/' . $item; |
|
325 | + $files[] = $dir.'/'.$item; |
|
326 | 326 | } |
327 | 327 | if (is_dir($physicalItem)) { |
328 | - $files = array_merge($files, $this->searchInDir($query, $dir . '/' . $item)); |
|
328 | + $files = array_merge($files, $this->searchInDir($query, $dir.'/'.$item)); |
|
329 | 329 | } |
330 | 330 | } |
331 | 331 | return $files; |
@@ -354,7 +354,7 @@ discard block |
||
354 | 354 | * @throws ForbiddenException |
355 | 355 | */ |
356 | 356 | public function getSourcePath($path) { |
357 | - $fullPath = $this->datadir . $path; |
|
357 | + $fullPath = $this->datadir.$path; |
|
358 | 358 | if ($this->allowSymlinks || $path === '') { |
359 | 359 | return $fullPath; |
360 | 360 | } |
@@ -365,13 +365,13 @@ discard block |
||
365 | 365 | $realPath = realpath($pathToResolve); |
366 | 366 | } |
367 | 367 | if ($realPath) { |
368 | - $realPath = $realPath . '/'; |
|
368 | + $realPath = $realPath.'/'; |
|
369 | 369 | } |
370 | 370 | if (substr($realPath, 0, $this->dataDirLength) === $this->realDataDir) { |
371 | 371 | return $fullPath; |
372 | 372 | } |
373 | 373 | |
374 | - \OCP\Util::writeLog('core', "Following symlinks is not allowed ('$fullPath' -> '$realPath' not inside '{$this->realDataDir}')", \OCP\Util::ERROR); |
|
374 | + \OCP\Util::writeLog('core', "Following symlinks is not allowed ('$fullPath' -> '$realPath' not inside '{$this->realDataDir}')", \OCP\Util::ERROR); |
|
375 | 375 | throw new ForbiddenException('Following symlinks is not allowed', false); |
376 | 376 | } |
377 | 377 | |
@@ -392,9 +392,9 @@ discard block |
||
392 | 392 | if ($this->is_file($path)) { |
393 | 393 | $stat = $this->stat($path); |
394 | 394 | return md5( |
395 | - $stat['mtime'] . |
|
396 | - $stat['ino'] . |
|
397 | - $stat['dev'] . |
|
395 | + $stat['mtime']. |
|
396 | + $stat['ino']. |
|
397 | + $stat['dev']. |
|
398 | 398 | $stat['size'] |
399 | 399 | ); |
400 | 400 | } else { |