@@ -50,7 +50,7 @@ |
||
| 50 | 50 | public function __construct($arguments) { |
| 51 | 51 | $this->user = $arguments['user']; |
| 52 | 52 | $datadir = $this->user->getHome(); |
| 53 | - $this->id = 'home::' . $this->user->getUID(); |
|
| 53 | + $this->id = 'home::'.$this->user->getUID(); |
|
| 54 | 54 | |
| 55 | 55 | parent::__construct(['datadir' => $datadir]); |
| 56 | 56 | } |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | $this->realDataDir = $this->datadir; |
| 67 | 67 | } else { |
| 68 | 68 | $realPath = realpath($this->datadir) ?: $this->datadir; |
| 69 | - $this->realDataDir = rtrim($realPath, '/') . '/'; |
|
| 69 | + $this->realDataDir = rtrim($realPath, '/').'/'; |
|
| 70 | 70 | } |
| 71 | 71 | if (substr($this->datadir, -1) !== '/') { |
| 72 | 72 | $this->datadir .= '/'; |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | public function getId() { |
| 81 | - return 'local::' . $this->datadir; |
|
| 81 | + return 'local::'.$this->datadir; |
|
| 82 | 82 | } |
| 83 | 83 | |
| 84 | 84 | public function mkdir($path) { |
@@ -236,17 +236,17 @@ discard block |
||
| 236 | 236 | $dstParent = dirname($path2); |
| 237 | 237 | |
| 238 | 238 | if (!$this->isUpdatable($srcParent)) { |
| 239 | - \OCP\Util::writeLog('core', 'unable to rename, source directory is not writable : ' . $srcParent, \OCP\Util::ERROR); |
|
| 239 | + \OCP\Util::writeLog('core', 'unable to rename, source directory is not writable : '.$srcParent, \OCP\Util::ERROR); |
|
| 240 | 240 | return false; |
| 241 | 241 | } |
| 242 | 242 | |
| 243 | 243 | if (!$this->isUpdatable($dstParent)) { |
| 244 | - \OCP\Util::writeLog('core', 'unable to rename, destination directory is not writable : ' . $dstParent, \OCP\Util::ERROR); |
|
| 244 | + \OCP\Util::writeLog('core', 'unable to rename, destination directory is not writable : '.$dstParent, \OCP\Util::ERROR); |
|
| 245 | 245 | return false; |
| 246 | 246 | } |
| 247 | 247 | |
| 248 | 248 | if (!$this->file_exists($path1)) { |
| 249 | - \OCP\Util::writeLog('core', 'unable to rename, file does not exists : ' . $path1, \OCP\Util::ERROR); |
|
| 249 | + \OCP\Util::writeLog('core', 'unable to rename, file does not exists : '.$path1, \OCP\Util::ERROR); |
|
| 250 | 250 | return false; |
| 251 | 251 | } |
| 252 | 252 | |
@@ -327,13 +327,13 @@ discard block |
||
| 327 | 327 | foreach (scandir($physicalDir) as $item) { |
| 328 | 328 | if (\OC\Files\Filesystem::isIgnoredDir($item)) |
| 329 | 329 | continue; |
| 330 | - $physicalItem = $physicalDir . '/' . $item; |
|
| 330 | + $physicalItem = $physicalDir.'/'.$item; |
|
| 331 | 331 | |
| 332 | 332 | if (strstr(strtolower($item), strtolower($query)) !== false) { |
| 333 | - $files[] = $dir . '/' . $item; |
|
| 333 | + $files[] = $dir.'/'.$item; |
|
| 334 | 334 | } |
| 335 | 335 | if (is_dir($physicalItem)) { |
| 336 | - $files = array_merge($files, $this->searchInDir($query, $dir . '/' . $item)); |
|
| 336 | + $files = array_merge($files, $this->searchInDir($query, $dir.'/'.$item)); |
|
| 337 | 337 | } |
| 338 | 338 | } |
| 339 | 339 | return $files; |
@@ -362,7 +362,7 @@ discard block |
||
| 362 | 362 | * @throws ForbiddenException |
| 363 | 363 | */ |
| 364 | 364 | public function getSourcePath($path) { |
| 365 | - $fullPath = $this->datadir . $path; |
|
| 365 | + $fullPath = $this->datadir.$path; |
|
| 366 | 366 | $currentPath = $path; |
| 367 | 367 | if ($this->allowSymlinks || $currentPath === '') { |
| 368 | 368 | return $fullPath; |
@@ -374,10 +374,10 @@ discard block |
||
| 374 | 374 | if ($currentPath === '' || $currentPath === '.') { |
| 375 | 375 | return $fullPath; |
| 376 | 376 | } |
| 377 | - $realPath = realpath($this->datadir . $currentPath); |
|
| 377 | + $realPath = realpath($this->datadir.$currentPath); |
|
| 378 | 378 | } |
| 379 | 379 | if ($realPath) { |
| 380 | - $realPath = $realPath . '/'; |
|
| 380 | + $realPath = $realPath.'/'; |
|
| 381 | 381 | } |
| 382 | 382 | if (substr($realPath, 0, $this->dataDirLength) === $this->realDataDir) { |
| 383 | 383 | return $fullPath; |
@@ -404,9 +404,9 @@ discard block |
||
| 404 | 404 | if ($this->is_file($path)) { |
| 405 | 405 | $stat = $this->stat($path); |
| 406 | 406 | return md5( |
| 407 | - $stat['mtime'] . |
|
| 408 | - $stat['ino'] . |
|
| 409 | - $stat['dev'] . |
|
| 407 | + $stat['mtime']. |
|
| 408 | + $stat['ino']. |
|
| 409 | + $stat['dev']. |
|
| 410 | 410 | $stat['size'] |
| 411 | 411 | ); |
| 412 | 412 | } else { |