@@ -52,7 +52,7 @@ |
||
| 52 | 52 | public function __construct($arguments) { |
| 53 | 53 | $this->user = $arguments['user']; |
| 54 | 54 | $datadir = $this->user->getHome(); |
| 55 | - $this->id = 'home::' . $this->user->getUID(); |
|
| 55 | + $this->id = 'home::'.$this->user->getUID(); |
|
| 56 | 56 | |
| 57 | 57 | try { |
| 58 | 58 | parent::__construct(array('datadir' => $datadir)); |
@@ -67,9 +67,9 @@ discard block |
||
| 67 | 67 | } else { |
| 68 | 68 | $realPath = realpath($this->datadir); |
| 69 | 69 | if (!$realPath) { |
| 70 | - throw new NotFoundException('Data directory not found: ' . $this->datadir); |
|
| 70 | + throw new NotFoundException('Data directory not found: '.$this->datadir); |
|
| 71 | 71 | } |
| 72 | - $this->realDataDir = rtrim($realPath, '/') . '/'; |
|
| 72 | + $this->realDataDir = rtrim($realPath, '/').'/'; |
|
| 73 | 73 | } |
| 74 | 74 | if (substr($this->datadir, -1) !== '/') { |
| 75 | 75 | $this->datadir .= '/'; |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | } |
| 82 | 82 | |
| 83 | 83 | public function getId() { |
| 84 | - return 'local::' . $this->datadir; |
|
| 84 | + return 'local::'.$this->datadir; |
|
| 85 | 85 | } |
| 86 | 86 | |
| 87 | 87 | public function mkdir($path) { |
@@ -239,17 +239,17 @@ discard block |
||
| 239 | 239 | $dstParent = dirname($path2); |
| 240 | 240 | |
| 241 | 241 | if (!$this->isUpdatable($srcParent)) { |
| 242 | - \OCP\Util::writeLog('core', 'unable to rename, source directory is not writable : ' . $srcParent, \OCP\Util::ERROR); |
|
| 242 | + \OCP\Util::writeLog('core', 'unable to rename, source directory is not writable : '.$srcParent, \OCP\Util::ERROR); |
|
| 243 | 243 | return false; |
| 244 | 244 | } |
| 245 | 245 | |
| 246 | 246 | if (!$this->isUpdatable($dstParent)) { |
| 247 | - \OCP\Util::writeLog('core', 'unable to rename, destination directory is not writable : ' . $dstParent, \OCP\Util::ERROR); |
|
| 247 | + \OCP\Util::writeLog('core', 'unable to rename, destination directory is not writable : '.$dstParent, \OCP\Util::ERROR); |
|
| 248 | 248 | return false; |
| 249 | 249 | } |
| 250 | 250 | |
| 251 | 251 | if (!$this->file_exists($path1)) { |
| 252 | - \OCP\Util::writeLog('core', 'unable to rename, file does not exists : ' . $path1, \OCP\Util::ERROR); |
|
| 252 | + \OCP\Util::writeLog('core', 'unable to rename, file does not exists : '.$path1, \OCP\Util::ERROR); |
|
| 253 | 253 | return false; |
| 254 | 254 | } |
| 255 | 255 | |
@@ -330,13 +330,13 @@ discard block |
||
| 330 | 330 | foreach (scandir($physicalDir) as $item) { |
| 331 | 331 | if (\OC\Files\Filesystem::isIgnoredDir($item)) |
| 332 | 332 | continue; |
| 333 | - $physicalItem = $physicalDir . '/' . $item; |
|
| 333 | + $physicalItem = $physicalDir.'/'.$item; |
|
| 334 | 334 | |
| 335 | 335 | if (strstr(strtolower($item), strtolower($query)) !== false) { |
| 336 | - $files[] = $dir . '/' . $item; |
|
| 336 | + $files[] = $dir.'/'.$item; |
|
| 337 | 337 | } |
| 338 | 338 | if (is_dir($physicalItem)) { |
| 339 | - $files = array_merge($files, $this->searchInDir($query, $dir . '/' . $item)); |
|
| 339 | + $files = array_merge($files, $this->searchInDir($query, $dir.'/'.$item)); |
|
| 340 | 340 | } |
| 341 | 341 | } |
| 342 | 342 | return $files; |
@@ -365,7 +365,7 @@ discard block |
||
| 365 | 365 | * @throws ForbiddenException |
| 366 | 366 | */ |
| 367 | 367 | public function getSourcePath($path) { |
| 368 | - $fullPath = $this->datadir . $path; |
|
| 368 | + $fullPath = $this->datadir.$path; |
|
| 369 | 369 | if ($this->allowSymlinks || $path === '') { |
| 370 | 370 | return $fullPath; |
| 371 | 371 | } |
@@ -376,7 +376,7 @@ discard block |
||
| 376 | 376 | $realPath = realpath($pathToResolve); |
| 377 | 377 | } |
| 378 | 378 | if ($realPath) { |
| 379 | - $realPath = $realPath . '/'; |
|
| 379 | + $realPath = $realPath.'/'; |
|
| 380 | 380 | } |
| 381 | 381 | if (substr($realPath, 0, $this->dataDirLength) === $this->realDataDir) { |
| 382 | 382 | return $fullPath; |
@@ -403,9 +403,9 @@ discard block |
||
| 403 | 403 | if ($this->is_file($path)) { |
| 404 | 404 | $stat = $this->stat($path); |
| 405 | 405 | return md5( |
| 406 | - $stat['mtime'] . |
|
| 407 | - $stat['ino'] . |
|
| 408 | - $stat['dev'] . |
|
| 406 | + $stat['mtime']. |
|
| 407 | + $stat['ino']. |
|
| 408 | + $stat['dev']. |
|
| 409 | 409 | $stat['size'] |
| 410 | 410 | ); |
| 411 | 411 | } else { |