@@ -48,10 +48,10 @@ discard block |
||
| 48 | 48 | public function setUpStorage(string $userId) { |
| 49 | 49 | Filesystem::initMountPoints($userId); |
| 50 | 50 | $rootView = new View(); |
| 51 | - if (!$rootView->file_exists('/' . $userId . '/cache')) { |
|
| 52 | - $rootView->mkdir('/' . $userId . '/cache'); |
|
| 51 | + if (!$rootView->file_exists('/'.$userId.'/cache')) { |
|
| 52 | + $rootView->mkdir('/'.$userId.'/cache'); |
|
| 53 | 53 | } |
| 54 | - $this->storage = new View('/' . $userId . '/cache'); |
|
| 54 | + $this->storage = new View('/'.$userId.'/cache'); |
|
| 55 | 55 | return $this->storage; |
| 56 | 56 | } |
| 57 | 57 | |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | |
| 123 | 123 | // use part file to prevent hasKey() to find the key |
| 124 | 124 | // while it is being written |
| 125 | - $keyPart = $key . '.' . $uniqueId . '.part'; |
|
| 125 | + $keyPart = $key.'.'.$uniqueId.'.part'; |
|
| 126 | 126 | if ($storage and $storage->file_put_contents($keyPart, $value)) { |
| 127 | 127 | if ($ttl === 0) { |
| 128 | 128 | $ttl = 86400; // 60*60*24 |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | if (is_resource($dh)) { |
| 172 | 172 | while (($file = readdir($dh)) !== false) { |
| 173 | 173 | if ($file != '.' and $file != '..' and ($prefix === '' || strpos($file, $prefix) === 0)) { |
| 174 | - $storage->unlink('/' . $file); |
|
| 174 | + $storage->unlink('/'.$file); |
|
| 175 | 175 | } |
| 176 | 176 | } |
| 177 | 177 | } |
@@ -196,17 +196,17 @@ discard block |
||
| 196 | 196 | while (($file = readdir($dh)) !== false) { |
| 197 | 197 | if ($file != '.' and $file != '..') { |
| 198 | 198 | try { |
| 199 | - $mtime = $storage->filemtime('/' . $file); |
|
| 199 | + $mtime = $storage->filemtime('/'.$file); |
|
| 200 | 200 | if ($mtime < $now) { |
| 201 | - $storage->unlink('/' . $file); |
|
| 201 | + $storage->unlink('/'.$file); |
|
| 202 | 202 | } |
| 203 | 203 | } catch (\OCP\Lock\LockedException $e) { |
| 204 | 204 | // ignore locked chunks |
| 205 | - \OC::$server->getLogger()->debug('Could not cleanup locked chunk "' . $file . '"', ['app' => 'core']); |
|
| 205 | + \OC::$server->getLogger()->debug('Could not cleanup locked chunk "'.$file.'"', ['app' => 'core']); |
|
| 206 | 206 | } catch (\OCP\Files\ForbiddenException $e) { |
| 207 | - \OC::$server->getLogger()->debug('Could not cleanup forbidden chunk "' . $file . '"', ['app' => 'core']); |
|
| 207 | + \OC::$server->getLogger()->debug('Could not cleanup forbidden chunk "'.$file.'"', ['app' => 'core']); |
|
| 208 | 208 | } catch (\OCP\Files\LockNotAcquiredException $e) { |
| 209 | - \OC::$server->getLogger()->debug('Could not cleanup locked chunk "' . $file . '"', ['app' => 'core']); |
|
| 209 | + \OC::$server->getLogger()->debug('Could not cleanup locked chunk "'.$file.'"', ['app' => 'core']); |
|
| 210 | 210 | } |
| 211 | 211 | } |
| 212 | 212 | } |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | } |
| 132 | 132 | |
| 133 | 133 | if (!$info) { |
| 134 | - throw new \Sabre\DAV\Exception\NotFound('File with name ' . $path . ' could not be located'); |
|
| 134 | + throw new \Sabre\DAV\Exception\NotFound('File with name '.$path.' could not be located'); |
|
| 135 | 135 | } |
| 136 | 136 | |
| 137 | 137 | if ($info->getType() === 'dir') { |
@@ -198,7 +198,7 @@ discard block |
||
| 198 | 198 | throw new FileLocked($e->getMessage(), $e->getCode(), $e); |
| 199 | 199 | } |
| 200 | 200 | |
| 201 | - [$destinationDir,] = \Sabre\Uri\split($destinationPath); |
|
| 201 | + [$destinationDir, ] = \Sabre\Uri\split($destinationPath); |
|
| 202 | 202 | $this->markDirty($destinationDir); |
| 203 | 203 | } |
| 204 | 204 | } |
@@ -120,9 +120,9 @@ discard block |
||
| 120 | 120 | |
| 121 | 121 | $this->fileView->verifyPath($this->path, $name); |
| 122 | 122 | |
| 123 | - $path = $this->fileView->getAbsolutePath($this->path) . '/' . $name; |
|
| 123 | + $path = $this->fileView->getAbsolutePath($this->path).'/'.$name; |
|
| 124 | 124 | // in case the file already exists/overwriting |
| 125 | - $info = $this->fileView->getFileInfo($this->path . '/' . $name); |
|
| 125 | + $info = $this->fileView->getFileInfo($this->path.'/'.$name); |
|
| 126 | 126 | if (!$info) { |
| 127 | 127 | // use a dummy FileInfo which is acceptable here since it will be refreshed after the put is complete |
| 128 | 128 | $info = new \OC\Files\FileInfo($path, null, null, [ |
@@ -133,11 +133,11 @@ discard block |
||
| 133 | 133 | |
| 134 | 134 | // only allow 1 process to upload a file at once but still allow reading the file while writing the part file |
| 135 | 135 | $node->acquireLock(ILockingProvider::LOCK_SHARED); |
| 136 | - $this->fileView->lockFile($path . '.upload.part', ILockingProvider::LOCK_EXCLUSIVE); |
|
| 136 | + $this->fileView->lockFile($path.'.upload.part', ILockingProvider::LOCK_EXCLUSIVE); |
|
| 137 | 137 | |
| 138 | 138 | $result = $node->put($data); |
| 139 | 139 | |
| 140 | - $this->fileView->unlockFile($path . '.upload.part', ILockingProvider::LOCK_EXCLUSIVE); |
|
| 140 | + $this->fileView->unlockFile($path.'.upload.part', ILockingProvider::LOCK_EXCLUSIVE); |
|
| 141 | 141 | $node->releaseLock(ILockingProvider::LOCK_SHARED); |
| 142 | 142 | return $result; |
| 143 | 143 | } catch (StorageNotAvailableException $e) { |
@@ -167,9 +167,9 @@ discard block |
||
| 167 | 167 | } |
| 168 | 168 | |
| 169 | 169 | $this->fileView->verifyPath($this->path, $name); |
| 170 | - $newPath = $this->path . '/' . $name; |
|
| 170 | + $newPath = $this->path.'/'.$name; |
|
| 171 | 171 | if (!$this->fileView->mkdir($newPath)) { |
| 172 | - throw new Exception\Forbidden('Could not create directory ' . $newPath); |
|
| 172 | + throw new Exception\Forbidden('Could not create directory '.$newPath); |
|
| 173 | 173 | } |
| 174 | 174 | } catch (StorageNotAvailableException $e) { |
| 175 | 175 | throw new ServiceUnavailable($e->getMessage()); |
@@ -198,7 +198,7 @@ discard block |
||
| 198 | 198 | throw new NotFound(); |
| 199 | 199 | } |
| 200 | 200 | |
| 201 | - $path = $this->path . '/' . $name; |
|
| 201 | + $path = $this->path.'/'.$name; |
|
| 202 | 202 | if (is_null($info)) { |
| 203 | 203 | try { |
| 204 | 204 | $this->fileView->verifyPath($this->path, $name); |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | } |
| 214 | 214 | |
| 215 | 215 | if (!$info) { |
| 216 | - throw new \Sabre\DAV\Exception\NotFound('File with name ' . $path . ' could not be located'); |
|
| 216 | + throw new \Sabre\DAV\Exception\NotFound('File with name '.$path.' could not be located'); |
|
| 217 | 217 | } |
| 218 | 218 | |
| 219 | 219 | if ($info->getMimeType() === FileInfo::MIMETYPE_FOLDER) { |
@@ -276,7 +276,7 @@ discard block |
||
| 276 | 276 | // (required old code) instead of "updateFile". |
| 277 | 277 | // |
| 278 | 278 | // TODO: resolve chunk file name here and implement "updateFile" |
| 279 | - $path = $this->path . '/' . $name; |
|
| 279 | + $path = $this->path.'/'.$name; |
|
| 280 | 280 | return $this->fileView->file_exists($path); |
| 281 | 281 | } |
| 282 | 282 | |
@@ -378,7 +378,7 @@ discard block |
||
| 378 | 378 | throw new ServiceUnavailable('filesystem not setup'); |
| 379 | 379 | } |
| 380 | 380 | |
| 381 | - $destinationPath = $this->getPath() . '/' . $targetName; |
|
| 381 | + $destinationPath = $this->getPath().'/'.$targetName; |
|
| 382 | 382 | |
| 383 | 383 | |
| 384 | 384 | $targetNodeExists = $this->childExists($targetName); |
@@ -386,10 +386,10 @@ discard block |
||
| 386 | 386 | // at getNodeForPath we also check the path for isForbiddenFileOrDir |
| 387 | 387 | // with that we have covered both source and destination |
| 388 | 388 | if ($sourceNode instanceof Directory && $targetNodeExists) { |
| 389 | - throw new Exception\Forbidden('Could not copy directory ' . $sourceNode->getName() . ', target exists'); |
|
| 389 | + throw new Exception\Forbidden('Could not copy directory '.$sourceNode->getName().', target exists'); |
|
| 390 | 390 | } |
| 391 | 391 | |
| 392 | - [$sourceDir,] = \Sabre\Uri\split($sourceNode->getPath()); |
|
| 392 | + [$sourceDir, ] = \Sabre\Uri\split($sourceNode->getPath()); |
|
| 393 | 393 | $destinationDir = $this->getPath(); |
| 394 | 394 | |
| 395 | 395 | $sourcePath = $sourceNode->getPath(); |
@@ -448,7 +448,7 @@ discard block |
||
| 448 | 448 | |
| 449 | 449 | public function copyInto($targetName, $sourcePath, INode $sourceNode) { |
| 450 | 450 | if ($sourceNode instanceof File || $sourceNode instanceof Directory) { |
| 451 | - $destinationPath = $this->getPath() . '/' . $targetName; |
|
| 451 | + $destinationPath = $this->getPath().'/'.$targetName; |
|
| 452 | 452 | $sourcePath = $sourceNode->getPath(); |
| 453 | 453 | |
| 454 | 454 | if (!$this->fileView->isCreatable($this->getPath())) { |
@@ -94,7 +94,7 @@ |
||
| 94 | 94 | return; |
| 95 | 95 | } |
| 96 | 96 | |
| 97 | - return $this->checkQuota($parent->getPath() . '/' . basename($uri)); |
|
| 97 | + return $this->checkQuota($parent->getPath().'/'.basename($uri)); |
|
| 98 | 98 | } |
| 99 | 99 | |
| 100 | 100 | /** |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | |
| 157 | 157 | if ($needsPartFile) { |
| 158 | 158 | // mark file as partial while uploading (ignored by the scanner) |
| 159 | - $partFilePath = $this->getPartFileBasePath($this->path) . '.ocTransferId' . rand() . '.part'; |
|
| 159 | + $partFilePath = $this->getPartFileBasePath($this->path).'.ocTransferId'.rand().'.part'; |
|
| 160 | 160 | |
| 161 | 161 | if (!$view->isCreatable($partFilePath) && $view->isUpdatable($this->path)) { |
| 162 | 162 | $needsPartFile = false; |
@@ -209,27 +209,27 @@ discard block |
||
| 209 | 209 | if ($this->request->getHeader('X-HASH') !== '') { |
| 210 | 210 | $hash = $this->request->getHeader('X-HASH'); |
| 211 | 211 | if ($hash === 'all' || $hash === 'md5') { |
| 212 | - $data = HashWrapper::wrap($data, 'md5', function ($hash) { |
|
| 213 | - $this->header('X-Hash-MD5: ' . $hash); |
|
| 212 | + $data = HashWrapper::wrap($data, 'md5', function($hash) { |
|
| 213 | + $this->header('X-Hash-MD5: '.$hash); |
|
| 214 | 214 | }); |
| 215 | 215 | } |
| 216 | 216 | |
| 217 | 217 | if ($hash === 'all' || $hash === 'sha1') { |
| 218 | - $data = HashWrapper::wrap($data, 'sha1', function ($hash) { |
|
| 219 | - $this->header('X-Hash-SHA1: ' . $hash); |
|
| 218 | + $data = HashWrapper::wrap($data, 'sha1', function($hash) { |
|
| 219 | + $this->header('X-Hash-SHA1: '.$hash); |
|
| 220 | 220 | }); |
| 221 | 221 | } |
| 222 | 222 | |
| 223 | 223 | if ($hash === 'all' || $hash === 'sha256') { |
| 224 | - $data = HashWrapper::wrap($data, 'sha256', function ($hash) { |
|
| 225 | - $this->header('X-Hash-SHA256: ' . $hash); |
|
| 224 | + $data = HashWrapper::wrap($data, 'sha256', function($hash) { |
|
| 225 | + $this->header('X-Hash-SHA256: '.$hash); |
|
| 226 | 226 | }); |
| 227 | 227 | } |
| 228 | 228 | } |
| 229 | 229 | |
| 230 | 230 | if ($partStorage->instanceOfStorage(Storage\IWriteStreamStorage::class)) { |
| 231 | 231 | $isEOF = false; |
| 232 | - $wrappedData = CallbackWrapper::wrap($data, null, null, null, null, function ($stream) use (&$isEOF) { |
|
| 232 | + $wrappedData = CallbackWrapper::wrap($data, null, null, null, null, function($stream) use (&$isEOF) { |
|
| 233 | 233 | $isEOF = feof($stream); |
| 234 | 234 | }); |
| 235 | 235 | |
@@ -264,7 +264,7 @@ discard block |
||
| 264 | 264 | if ($result === false) { |
| 265 | 265 | $expected = -1; |
| 266 | 266 | if (isset($_SERVER['CONTENT_LENGTH'])) { |
| 267 | - $expected = (int)$_SERVER['CONTENT_LENGTH']; |
|
| 267 | + $expected = (int) $_SERVER['CONTENT_LENGTH']; |
|
| 268 | 268 | } |
| 269 | 269 | if ($expected !== 0) { |
| 270 | 270 | throw new Exception( |
@@ -283,7 +283,7 @@ discard block |
||
| 283 | 283 | // double check if the file was fully received |
| 284 | 284 | // compare expected and actual size |
| 285 | 285 | if (isset($_SERVER['CONTENT_LENGTH']) && $_SERVER['REQUEST_METHOD'] === 'PUT') { |
| 286 | - $expected = (int)$_SERVER['CONTENT_LENGTH']; |
|
| 286 | + $expected = (int) $_SERVER['CONTENT_LENGTH']; |
|
| 287 | 287 | if ($count !== $expected) { |
| 288 | 288 | throw new BadRequest( |
| 289 | 289 | $this->l10n->t( |
@@ -341,7 +341,7 @@ discard block |
||
| 341 | 341 | $renameOkay = $storage->moveFromStorage($partStorage, $internalPartPath, $internalPath); |
| 342 | 342 | $fileExists = $storage->file_exists($internalPath); |
| 343 | 343 | if ($renameOkay === false || $fileExists === false) { |
| 344 | - \OC::$server->get(LoggerInterface::class)->error('renaming part file to final file failed $renameOkay: ' . ($renameOkay ? 'true' : 'false') . ', $fileExists: ' . ($fileExists ? 'true' : 'false') . ')', ['app' => 'webdav']); |
|
| 344 | + \OC::$server->get(LoggerInterface::class)->error('renaming part file to final file failed $renameOkay: '.($renameOkay ? 'true' : 'false').', $fileExists: '.($fileExists ? 'true' : 'false').')', ['app' => 'webdav']); |
|
| 345 | 345 | throw new Exception($this->l10n->t('Could not rename part file to final file')); |
| 346 | 346 | } |
| 347 | 347 | } catch (ForbiddenException $ex) { |
@@ -401,7 +401,7 @@ discard block |
||
| 401 | 401 | throw new ServiceUnavailable($this->l10n->t('Failed to check file size: %1$s', [$e->getMessage()]), 0, $e); |
| 402 | 402 | } |
| 403 | 403 | |
| 404 | - return '"' . $this->info->getEtag() . '"'; |
|
| 404 | + return '"'.$this->info->getEtag().'"'; |
|
| 405 | 405 | } |
| 406 | 406 | |
| 407 | 407 | private function getPartFileBasePath($path) { |
@@ -491,7 +491,7 @@ discard block |
||
| 491 | 491 | // if different, fix DB and refresh cache. |
| 492 | 492 | if ($this->getSize() !== $this->fileView->filesize($this->getPath())) { |
| 493 | 493 | $logger = \OC::$server->get(LoggerInterface::class); |
| 494 | - $logger->warning('fixing cached size of file id=' . $this->getId()); |
|
| 494 | + $logger->warning('fixing cached size of file id='.$this->getId()); |
|
| 495 | 495 | |
| 496 | 496 | $this->getFileInfo()->getStorage()->getUpdater()->update($this->getFileInfo()->getInternalPath()); |
| 497 | 497 | $this->refreshInfo(); |
@@ -155,9 +155,9 @@ discard block |
||
| 155 | 155 | $this->server->on('propPatch', [$this, 'handleUpdateProperties']); |
| 156 | 156 | $this->server->on('afterBind', [$this, 'sendFileIdHeader']); |
| 157 | 157 | $this->server->on('afterWriteContent', [$this, 'sendFileIdHeader']); |
| 158 | - $this->server->on('afterMethod:GET', [$this,'httpGet']); |
|
| 158 | + $this->server->on('afterMethod:GET', [$this, 'httpGet']); |
|
| 159 | 159 | $this->server->on('afterMethod:GET', [$this, 'handleDownloadToken']); |
| 160 | - $this->server->on('afterResponse', function ($request, ResponseInterface $response) { |
|
| 160 | + $this->server->on('afterResponse', function($request, ResponseInterface $response) { |
|
| 161 | 161 | $body = $response->getBody(); |
| 162 | 162 | if (is_resource($body)) { |
| 163 | 163 | fclose($body); |
@@ -179,17 +179,17 @@ discard block |
||
| 179 | 179 | if (!$sourceNode instanceof Node) { |
| 180 | 180 | return; |
| 181 | 181 | } |
| 182 | - [$sourceDir,] = \Sabre\Uri\split($source); |
|
| 183 | - [$destinationDir,] = \Sabre\Uri\split($destination); |
|
| 182 | + [$sourceDir, ] = \Sabre\Uri\split($source); |
|
| 183 | + [$destinationDir, ] = \Sabre\Uri\split($destination); |
|
| 184 | 184 | |
| 185 | 185 | if ($sourceDir !== $destinationDir) { |
| 186 | 186 | $sourceNodeFileInfo = $sourceNode->getFileInfo(); |
| 187 | 187 | if ($sourceNodeFileInfo === null) { |
| 188 | - throw new NotFound($source . ' does not exist'); |
|
| 188 | + throw new NotFound($source.' does not exist'); |
|
| 189 | 189 | } |
| 190 | 190 | |
| 191 | 191 | if (!$sourceNodeFileInfo->isDeletable()) { |
| 192 | - throw new Forbidden($source . " cannot be deleted"); |
|
| 192 | + throw new Forbidden($source." cannot be deleted"); |
|
| 193 | 193 | } |
| 194 | 194 | } |
| 195 | 195 | } |
@@ -244,10 +244,10 @@ discard block |
||
| 244 | 244 | Request::USER_AGENT_ANDROID_MOBILE_CHROME, |
| 245 | 245 | Request::USER_AGENT_FREEBOX, |
| 246 | 246 | ])) { |
| 247 | - $response->addHeader('Content-Disposition', 'attachment; filename="' . rawurlencode($filename) . '"'); |
|
| 247 | + $response->addHeader('Content-Disposition', 'attachment; filename="'.rawurlencode($filename).'"'); |
|
| 248 | 248 | } else { |
| 249 | - $response->addHeader('Content-Disposition', 'attachment; filename*=UTF-8\'\'' . rawurlencode($filename) |
|
| 250 | - . '; filename="' . rawurlencode($filename) . '"'); |
|
| 249 | + $response->addHeader('Content-Disposition', 'attachment; filename*=UTF-8\'\''.rawurlencode($filename) |
|
| 250 | + . '; filename="'.rawurlencode($filename).'"'); |
|
| 251 | 251 | } |
| 252 | 252 | } |
| 253 | 253 | |
@@ -283,15 +283,15 @@ discard block |
||
| 283 | 283 | * } |
| 284 | 284 | */ |
| 285 | 285 | |
| 286 | - $propFind->handle(self::FILEID_PROPERTYNAME, function () use ($node) { |
|
| 286 | + $propFind->handle(self::FILEID_PROPERTYNAME, function() use ($node) { |
|
| 287 | 287 | return $node->getFileId(); |
| 288 | 288 | }); |
| 289 | 289 | |
| 290 | - $propFind->handle(self::INTERNAL_FILEID_PROPERTYNAME, function () use ($node) { |
|
| 290 | + $propFind->handle(self::INTERNAL_FILEID_PROPERTYNAME, function() use ($node) { |
|
| 291 | 291 | return $node->getInternalFileId(); |
| 292 | 292 | }); |
| 293 | 293 | |
| 294 | - $propFind->handle(self::PERMISSIONS_PROPERTYNAME, function () use ($node) { |
|
| 294 | + $propFind->handle(self::PERMISSIONS_PROPERTYNAME, function() use ($node) { |
|
| 295 | 295 | $perms = $node->getDavPermissions(); |
| 296 | 296 | if ($this->isPublic) { |
| 297 | 297 | // remove mount information |
@@ -300,7 +300,7 @@ discard block |
||
| 300 | 300 | return $perms; |
| 301 | 301 | }); |
| 302 | 302 | |
| 303 | - $propFind->handle(self::SHARE_PERMISSIONS_PROPERTYNAME, function () use ($node, $httpRequest) { |
|
| 303 | + $propFind->handle(self::SHARE_PERMISSIONS_PROPERTYNAME, function() use ($node, $httpRequest) { |
|
| 304 | 304 | $user = $this->userSession->getUser(); |
| 305 | 305 | if ($user === null) { |
| 306 | 306 | return null; |
@@ -310,7 +310,7 @@ discard block |
||
| 310 | 310 | ); |
| 311 | 311 | }); |
| 312 | 312 | |
| 313 | - $propFind->handle(self::OCM_SHARE_PERMISSIONS_PROPERTYNAME, function () use ($node, $httpRequest): ?string { |
|
| 313 | + $propFind->handle(self::OCM_SHARE_PERMISSIONS_PROPERTYNAME, function() use ($node, $httpRequest): ?string { |
|
| 314 | 314 | $user = $this->userSession->getUser(); |
| 315 | 315 | if ($user === null) { |
| 316 | 316 | return null; |
@@ -322,15 +322,15 @@ discard block |
||
| 322 | 322 | return json_encode($ocmPermissions, JSON_THROW_ON_ERROR); |
| 323 | 323 | }); |
| 324 | 324 | |
| 325 | - $propFind->handle(self::SHARE_ATTRIBUTES_PROPERTYNAME, function () use ($node, $httpRequest) { |
|
| 325 | + $propFind->handle(self::SHARE_ATTRIBUTES_PROPERTYNAME, function() use ($node, $httpRequest) { |
|
| 326 | 326 | return json_encode($node->getShareAttributes(), JSON_THROW_ON_ERROR); |
| 327 | 327 | }); |
| 328 | 328 | |
| 329 | - $propFind->handle(self::GETETAG_PROPERTYNAME, function () use ($node): string { |
|
| 329 | + $propFind->handle(self::GETETAG_PROPERTYNAME, function() use ($node): string { |
|
| 330 | 330 | return $node->getETag(); |
| 331 | 331 | }); |
| 332 | 332 | |
| 333 | - $propFind->handle(self::OWNER_ID_PROPERTYNAME, function () use ($node): ?string { |
|
| 333 | + $propFind->handle(self::OWNER_ID_PROPERTYNAME, function() use ($node): ?string { |
|
| 334 | 334 | $owner = $node->getOwner(); |
| 335 | 335 | if (!$owner) { |
| 336 | 336 | return null; |
@@ -338,7 +338,7 @@ discard block |
||
| 338 | 338 | return $owner->getUID(); |
| 339 | 339 | } |
| 340 | 340 | }); |
| 341 | - $propFind->handle(self::OWNER_DISPLAY_NAME_PROPERTYNAME, function () use ($node): ?string { |
|
| 341 | + $propFind->handle(self::OWNER_DISPLAY_NAME_PROPERTYNAME, function() use ($node): ?string { |
|
| 342 | 342 | $owner = $node->getOwner(); |
| 343 | 343 | if (!$owner) { |
| 344 | 344 | return null; |
@@ -347,17 +347,17 @@ discard block |
||
| 347 | 347 | } |
| 348 | 348 | }); |
| 349 | 349 | |
| 350 | - $propFind->handle(self::HAS_PREVIEW_PROPERTYNAME, function () use ($node) { |
|
| 350 | + $propFind->handle(self::HAS_PREVIEW_PROPERTYNAME, function() use ($node) { |
|
| 351 | 351 | return json_encode($this->previewManager->isAvailable($node->getFileInfo()), JSON_THROW_ON_ERROR); |
| 352 | 352 | }); |
| 353 | - $propFind->handle(self::SIZE_PROPERTYNAME, function () use ($node): int|float { |
|
| 353 | + $propFind->handle(self::SIZE_PROPERTYNAME, function() use ($node): int | float { |
|
| 354 | 354 | return $node->getSize(); |
| 355 | 355 | }); |
| 356 | - $propFind->handle(self::MOUNT_TYPE_PROPERTYNAME, function () use ($node) { |
|
| 356 | + $propFind->handle(self::MOUNT_TYPE_PROPERTYNAME, function() use ($node) { |
|
| 357 | 357 | return $node->getFileInfo()->getMountPoint()->getMountType(); |
| 358 | 358 | }); |
| 359 | 359 | |
| 360 | - $propFind->handle(self::SHARE_NOTE, function () use ($node, $httpRequest): ?string { |
|
| 360 | + $propFind->handle(self::SHARE_NOTE, function() use ($node, $httpRequest): ?string { |
|
| 361 | 361 | $user = $this->userSession->getUser(); |
| 362 | 362 | if ($user === null) { |
| 363 | 363 | return null; |
@@ -367,15 +367,15 @@ discard block |
||
| 367 | 367 | ); |
| 368 | 368 | }); |
| 369 | 369 | |
| 370 | - $propFind->handle(self::DATA_FINGERPRINT_PROPERTYNAME, function () use ($node) { |
|
| 370 | + $propFind->handle(self::DATA_FINGERPRINT_PROPERTYNAME, function() use ($node) { |
|
| 371 | 371 | return $this->config->getSystemValue('data-fingerprint', ''); |
| 372 | 372 | }); |
| 373 | - $propFind->handle(self::CREATIONDATE_PROPERTYNAME, function () use ($node) { |
|
| 373 | + $propFind->handle(self::CREATIONDATE_PROPERTYNAME, function() use ($node) { |
|
| 374 | 374 | return (new \DateTimeImmutable()) |
| 375 | 375 | ->setTimestamp($node->getFileInfo()->getCreationTime()) |
| 376 | 376 | ->format(\DateTimeInterface::ATOM); |
| 377 | 377 | }); |
| 378 | - $propFind->handle(self::CREATION_TIME_PROPERTYNAME, function () use ($node) { |
|
| 378 | + $propFind->handle(self::CREATION_TIME_PROPERTYNAME, function() use ($node) { |
|
| 379 | 379 | return $node->getFileInfo()->getCreationTime(); |
| 380 | 380 | }); |
| 381 | 381 | /** |
@@ -384,13 +384,13 @@ discard block |
||
| 384 | 384 | * CustomPropertiesBackend (esp. visible when querying all files |
| 385 | 385 | * in a folder). |
| 386 | 386 | */ |
| 387 | - $propFind->handle(self::DISPLAYNAME_PROPERTYNAME, function () use ($node) { |
|
| 387 | + $propFind->handle(self::DISPLAYNAME_PROPERTYNAME, function() use ($node) { |
|
| 388 | 388 | return $node->getName(); |
| 389 | 389 | }); |
| 390 | 390 | } |
| 391 | 391 | |
| 392 | 392 | if ($node instanceof \OCA\DAV\Connector\Sabre\File) { |
| 393 | - $propFind->handle(self::DOWNLOADURL_PROPERTYNAME, function () use ($node) { |
|
| 393 | + $propFind->handle(self::DOWNLOADURL_PROPERTYNAME, function() use ($node) { |
|
| 394 | 394 | try { |
| 395 | 395 | $directDownloadUrl = $node->getDirectDownload(); |
| 396 | 396 | if (isset($directDownloadUrl['url'])) { |
@@ -404,7 +404,7 @@ discard block |
||
| 404 | 404 | return false; |
| 405 | 405 | }); |
| 406 | 406 | |
| 407 | - $propFind->handle(self::CHECKSUMS_PROPERTYNAME, function () use ($node) { |
|
| 407 | + $propFind->handle(self::CHECKSUMS_PROPERTYNAME, function() use ($node) { |
|
| 408 | 408 | $checksum = $node->getChecksum(); |
| 409 | 409 | if ($checksum === null || $checksum === '') { |
| 410 | 410 | return null; |
@@ -413,14 +413,14 @@ discard block |
||
| 413 | 413 | return new ChecksumList($checksum); |
| 414 | 414 | }); |
| 415 | 415 | |
| 416 | - $propFind->handle(self::UPLOAD_TIME_PROPERTYNAME, function () use ($node) { |
|
| 416 | + $propFind->handle(self::UPLOAD_TIME_PROPERTYNAME, function() use ($node) { |
|
| 417 | 417 | return $node->getFileInfo()->getUploadTime(); |
| 418 | 418 | }); |
| 419 | 419 | |
| 420 | 420 | if ($this->config->getSystemValueBool('enable_file_metadata', true)) { |
| 421 | - $propFind->handle(self::FILE_METADATA_SIZE, function () use ($node) { |
|
| 421 | + $propFind->handle(self::FILE_METADATA_SIZE, function() use ($node) { |
|
| 422 | 422 | if (!str_starts_with($node->getFileInfo()->getMimetype(), 'image')) { |
| 423 | - return json_encode((object)[], JSON_THROW_ON_ERROR); |
|
| 423 | + return json_encode((object) [], JSON_THROW_ON_ERROR); |
|
| 424 | 424 | } |
| 425 | 425 | |
| 426 | 426 | if ($node->hasMetadata('size')) { |
@@ -436,17 +436,17 @@ discard block |
||
| 436 | 436 | \OC::$server->get(LoggerInterface::class)->debug('Inefficient fetching of metadata'); |
| 437 | 437 | } |
| 438 | 438 | |
| 439 | - return json_encode((object)$sizeMetadata->getMetadata(), JSON_THROW_ON_ERROR); |
|
| 439 | + return json_encode((object) $sizeMetadata->getMetadata(), JSON_THROW_ON_ERROR); |
|
| 440 | 440 | }); |
| 441 | 441 | } |
| 442 | 442 | } |
| 443 | 443 | |
| 444 | 444 | if ($node instanceof Directory) { |
| 445 | - $propFind->handle(self::SIZE_PROPERTYNAME, function () use ($node) { |
|
| 445 | + $propFind->handle(self::SIZE_PROPERTYNAME, function() use ($node) { |
|
| 446 | 446 | return $node->getSize(); |
| 447 | 447 | }); |
| 448 | 448 | |
| 449 | - $propFind->handle(self::IS_ENCRYPTED_PROPERTYNAME, function () use ($node) { |
|
| 449 | + $propFind->handle(self::IS_ENCRYPTED_PROPERTYNAME, function() use ($node) { |
|
| 450 | 450 | return $node->getFileInfo()->isEncrypted() ? '1' : '0'; |
| 451 | 451 | }); |
| 452 | 452 | |
@@ -534,20 +534,20 @@ discard block |
||
| 534 | 534 | return; |
| 535 | 535 | } |
| 536 | 536 | |
| 537 | - $propPatch->handle(self::LASTMODIFIED_PROPERTYNAME, function ($time) use ($node) { |
|
| 537 | + $propPatch->handle(self::LASTMODIFIED_PROPERTYNAME, function($time) use ($node) { |
|
| 538 | 538 | if (empty($time)) { |
| 539 | 539 | return false; |
| 540 | 540 | } |
| 541 | 541 | $node->touch($time); |
| 542 | 542 | return true; |
| 543 | 543 | }); |
| 544 | - $propPatch->handle(self::GETETAG_PROPERTYNAME, function ($etag) use ($node) { |
|
| 544 | + $propPatch->handle(self::GETETAG_PROPERTYNAME, function($etag) use ($node) { |
|
| 545 | 545 | if (empty($etag)) { |
| 546 | 546 | return false; |
| 547 | 547 | } |
| 548 | 548 | return $node->setEtag($etag) !== -1; |
| 549 | 549 | }); |
| 550 | - $propPatch->handle(self::CREATIONDATE_PROPERTYNAME, function ($time) use ($node) { |
|
| 550 | + $propPatch->handle(self::CREATIONDATE_PROPERTYNAME, function($time) use ($node) { |
|
| 551 | 551 | if (empty($time)) { |
| 552 | 552 | return false; |
| 553 | 553 | } |
@@ -555,7 +555,7 @@ discard block |
||
| 555 | 555 | $node->setCreationTime($dateTime->getTimestamp()); |
| 556 | 556 | return true; |
| 557 | 557 | }); |
| 558 | - $propPatch->handle(self::CREATION_TIME_PROPERTYNAME, function ($time) use ($node) { |
|
| 558 | + $propPatch->handle(self::CREATION_TIME_PROPERTYNAME, function($time) use ($node) { |
|
| 559 | 559 | if (empty($time)) { |
| 560 | 560 | return false; |
| 561 | 561 | } |
@@ -566,7 +566,7 @@ discard block |
||
| 566 | 566 | * Disable modification of the displayname property for files and |
| 567 | 567 | * folders via PROPPATCH. See PROPFIND for more information. |
| 568 | 568 | */ |
| 569 | - $propPatch->handle(self::DISPLAYNAME_PROPERTYNAME, function ($displayName) { |
|
| 569 | + $propPatch->handle(self::DISPLAYNAME_PROPERTYNAME, function($displayName) { |
|
| 570 | 570 | return 403; |
| 571 | 571 | }); |
| 572 | 572 | } |
@@ -6,58 +6,58 @@ |
||
| 6 | 6 | $baseDir = $vendorDir; |
| 7 | 7 | |
| 8 | 8 | return array( |
| 9 | - 'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php', |
|
| 10 | - 'OCA\\Files\\Activity\\FavoriteProvider' => $baseDir . '/../lib/Activity/FavoriteProvider.php', |
|
| 11 | - 'OCA\\Files\\Activity\\Filter\\Favorites' => $baseDir . '/../lib/Activity/Filter/Favorites.php', |
|
| 12 | - 'OCA\\Files\\Activity\\Filter\\FileChanges' => $baseDir . '/../lib/Activity/Filter/FileChanges.php', |
|
| 13 | - 'OCA\\Files\\Activity\\Helper' => $baseDir . '/../lib/Activity/Helper.php', |
|
| 14 | - 'OCA\\Files\\Activity\\Provider' => $baseDir . '/../lib/Activity/Provider.php', |
|
| 15 | - 'OCA\\Files\\Activity\\Settings\\FavoriteAction' => $baseDir . '/../lib/Activity/Settings/FavoriteAction.php', |
|
| 16 | - 'OCA\\Files\\Activity\\Settings\\FileActivitySettings' => $baseDir . '/../lib/Activity/Settings/FileActivitySettings.php', |
|
| 17 | - 'OCA\\Files\\Activity\\Settings\\FileChanged' => $baseDir . '/../lib/Activity/Settings/FileChanged.php', |
|
| 18 | - 'OCA\\Files\\Activity\\Settings\\FileFavoriteChanged' => $baseDir . '/../lib/Activity/Settings/FileFavoriteChanged.php', |
|
| 19 | - 'OCA\\Files\\App' => $baseDir . '/../lib/App.php', |
|
| 20 | - 'OCA\\Files\\AppInfo\\Application' => $baseDir . '/../lib/AppInfo/Application.php', |
|
| 21 | - 'OCA\\Files\\BackgroundJob\\CleanupDirectEditingTokens' => $baseDir . '/../lib/BackgroundJob/CleanupDirectEditingTokens.php', |
|
| 22 | - 'OCA\\Files\\BackgroundJob\\CleanupFileLocks' => $baseDir . '/../lib/BackgroundJob/CleanupFileLocks.php', |
|
| 23 | - 'OCA\\Files\\BackgroundJob\\DeleteExpiredOpenLocalEditor' => $baseDir . '/../lib/BackgroundJob/DeleteExpiredOpenLocalEditor.php', |
|
| 24 | - 'OCA\\Files\\BackgroundJob\\DeleteOrphanedItems' => $baseDir . '/../lib/BackgroundJob/DeleteOrphanedItems.php', |
|
| 25 | - 'OCA\\Files\\BackgroundJob\\FileChunkCleanupJob' => $baseDir . '/../lib/BackgroundJob/FileChunkCleanupJob.php', |
|
| 26 | - 'OCA\\Files\\BackgroundJob\\ScanFiles' => $baseDir . '/../lib/BackgroundJob/ScanFiles.php', |
|
| 27 | - 'OCA\\Files\\BackgroundJob\\TransferOwnership' => $baseDir . '/../lib/BackgroundJob/TransferOwnership.php', |
|
| 28 | - 'OCA\\Files\\Capabilities' => $baseDir . '/../lib/Capabilities.php', |
|
| 29 | - 'OCA\\Files\\Collaboration\\Resources\\Listener' => $baseDir . '/../lib/Collaboration/Resources/Listener.php', |
|
| 30 | - 'OCA\\Files\\Collaboration\\Resources\\ResourceProvider' => $baseDir . '/../lib/Collaboration/Resources/ResourceProvider.php', |
|
| 31 | - 'OCA\\Files\\Command\\DeleteOrphanedFiles' => $baseDir . '/../lib/Command/DeleteOrphanedFiles.php', |
|
| 32 | - 'OCA\\Files\\Command\\RepairTree' => $baseDir . '/../lib/Command/RepairTree.php', |
|
| 33 | - 'OCA\\Files\\Command\\Scan' => $baseDir . '/../lib/Command/Scan.php', |
|
| 34 | - 'OCA\\Files\\Command\\ScanAppData' => $baseDir . '/../lib/Command/ScanAppData.php', |
|
| 35 | - 'OCA\\Files\\Command\\TransferOwnership' => $baseDir . '/../lib/Command/TransferOwnership.php', |
|
| 36 | - 'OCA\\Files\\Controller\\ApiController' => $baseDir . '/../lib/Controller/ApiController.php', |
|
| 37 | - 'OCA\\Files\\Controller\\DirectEditingController' => $baseDir . '/../lib/Controller/DirectEditingController.php', |
|
| 38 | - 'OCA\\Files\\Controller\\DirectEditingViewController' => $baseDir . '/../lib/Controller/DirectEditingViewController.php', |
|
| 39 | - 'OCA\\Files\\Controller\\OpenLocalEditorController' => $baseDir . '/../lib/Controller/OpenLocalEditorController.php', |
|
| 40 | - 'OCA\\Files\\Controller\\TemplateController' => $baseDir . '/../lib/Controller/TemplateController.php', |
|
| 41 | - 'OCA\\Files\\Controller\\TransferOwnershipController' => $baseDir . '/../lib/Controller/TransferOwnershipController.php', |
|
| 42 | - 'OCA\\Files\\Controller\\ViewController' => $baseDir . '/../lib/Controller/ViewController.php', |
|
| 43 | - 'OCA\\Files\\Db\\OpenLocalEditor' => $baseDir . '/../lib/Db/OpenLocalEditor.php', |
|
| 44 | - 'OCA\\Files\\Db\\OpenLocalEditorMapper' => $baseDir . '/../lib/Db/OpenLocalEditorMapper.php', |
|
| 45 | - 'OCA\\Files\\Db\\TransferOwnership' => $baseDir . '/../lib/Db/TransferOwnership.php', |
|
| 46 | - 'OCA\\Files\\Db\\TransferOwnershipMapper' => $baseDir . '/../lib/Db/TransferOwnershipMapper.php', |
|
| 47 | - 'OCA\\Files\\DirectEditingCapabilities' => $baseDir . '/../lib/DirectEditingCapabilities.php', |
|
| 48 | - 'OCA\\Files\\Event\\LoadAdditionalScriptsEvent' => $baseDir . '/../lib/Event/LoadAdditionalScriptsEvent.php', |
|
| 49 | - 'OCA\\Files\\Event\\LoadSidebar' => $baseDir . '/../lib/Event/LoadSidebar.php', |
|
| 50 | - 'OCA\\Files\\Exception\\TransferOwnershipException' => $baseDir . '/../lib/Exception/TransferOwnershipException.php', |
|
| 51 | - 'OCA\\Files\\Helper' => $baseDir . '/../lib/Helper.php', |
|
| 52 | - 'OCA\\Files\\Listener\\LegacyLoadAdditionalScriptsAdapter' => $baseDir . '/../lib/Listener/LegacyLoadAdditionalScriptsAdapter.php', |
|
| 53 | - 'OCA\\Files\\Listener\\LoadSidebarListener' => $baseDir . '/../lib/Listener/LoadSidebarListener.php', |
|
| 54 | - 'OCA\\Files\\Migration\\Version11301Date20191205150729' => $baseDir . '/../lib/Migration/Version11301Date20191205150729.php', |
|
| 55 | - 'OCA\\Files\\Migration\\Version12101Date20221011153334' => $baseDir . '/../lib/Migration/Version12101Date20221011153334.php', |
|
| 56 | - 'OCA\\Files\\Notification\\Notifier' => $baseDir . '/../lib/Notification/Notifier.php', |
|
| 57 | - 'OCA\\Files\\Search\\FilesSearchProvider' => $baseDir . '/../lib/Search/FilesSearchProvider.php', |
|
| 58 | - 'OCA\\Files\\Service\\DirectEditingService' => $baseDir . '/../lib/Service/DirectEditingService.php', |
|
| 59 | - 'OCA\\Files\\Service\\OwnershipTransferService' => $baseDir . '/../lib/Service/OwnershipTransferService.php', |
|
| 60 | - 'OCA\\Files\\Service\\TagService' => $baseDir . '/../lib/Service/TagService.php', |
|
| 61 | - 'OCA\\Files\\Service\\UserConfig' => $baseDir . '/../lib/Service/UserConfig.php', |
|
| 62 | - 'OCA\\Files\\Settings\\PersonalSettings' => $baseDir . '/../lib/Settings/PersonalSettings.php', |
|
| 9 | + 'Composer\\InstalledVersions' => $vendorDir.'/composer/InstalledVersions.php', |
|
| 10 | + 'OCA\\Files\\Activity\\FavoriteProvider' => $baseDir.'/../lib/Activity/FavoriteProvider.php', |
|
| 11 | + 'OCA\\Files\\Activity\\Filter\\Favorites' => $baseDir.'/../lib/Activity/Filter/Favorites.php', |
|
| 12 | + 'OCA\\Files\\Activity\\Filter\\FileChanges' => $baseDir.'/../lib/Activity/Filter/FileChanges.php', |
|
| 13 | + 'OCA\\Files\\Activity\\Helper' => $baseDir.'/../lib/Activity/Helper.php', |
|
| 14 | + 'OCA\\Files\\Activity\\Provider' => $baseDir.'/../lib/Activity/Provider.php', |
|
| 15 | + 'OCA\\Files\\Activity\\Settings\\FavoriteAction' => $baseDir.'/../lib/Activity/Settings/FavoriteAction.php', |
|
| 16 | + 'OCA\\Files\\Activity\\Settings\\FileActivitySettings' => $baseDir.'/../lib/Activity/Settings/FileActivitySettings.php', |
|
| 17 | + 'OCA\\Files\\Activity\\Settings\\FileChanged' => $baseDir.'/../lib/Activity/Settings/FileChanged.php', |
|
| 18 | + 'OCA\\Files\\Activity\\Settings\\FileFavoriteChanged' => $baseDir.'/../lib/Activity/Settings/FileFavoriteChanged.php', |
|
| 19 | + 'OCA\\Files\\App' => $baseDir.'/../lib/App.php', |
|
| 20 | + 'OCA\\Files\\AppInfo\\Application' => $baseDir.'/../lib/AppInfo/Application.php', |
|
| 21 | + 'OCA\\Files\\BackgroundJob\\CleanupDirectEditingTokens' => $baseDir.'/../lib/BackgroundJob/CleanupDirectEditingTokens.php', |
|
| 22 | + 'OCA\\Files\\BackgroundJob\\CleanupFileLocks' => $baseDir.'/../lib/BackgroundJob/CleanupFileLocks.php', |
|
| 23 | + 'OCA\\Files\\BackgroundJob\\DeleteExpiredOpenLocalEditor' => $baseDir.'/../lib/BackgroundJob/DeleteExpiredOpenLocalEditor.php', |
|
| 24 | + 'OCA\\Files\\BackgroundJob\\DeleteOrphanedItems' => $baseDir.'/../lib/BackgroundJob/DeleteOrphanedItems.php', |
|
| 25 | + 'OCA\\Files\\BackgroundJob\\FileChunkCleanupJob' => $baseDir.'/../lib/BackgroundJob/FileChunkCleanupJob.php', |
|
| 26 | + 'OCA\\Files\\BackgroundJob\\ScanFiles' => $baseDir.'/../lib/BackgroundJob/ScanFiles.php', |
|
| 27 | + 'OCA\\Files\\BackgroundJob\\TransferOwnership' => $baseDir.'/../lib/BackgroundJob/TransferOwnership.php', |
|
| 28 | + 'OCA\\Files\\Capabilities' => $baseDir.'/../lib/Capabilities.php', |
|
| 29 | + 'OCA\\Files\\Collaboration\\Resources\\Listener' => $baseDir.'/../lib/Collaboration/Resources/Listener.php', |
|
| 30 | + 'OCA\\Files\\Collaboration\\Resources\\ResourceProvider' => $baseDir.'/../lib/Collaboration/Resources/ResourceProvider.php', |
|
| 31 | + 'OCA\\Files\\Command\\DeleteOrphanedFiles' => $baseDir.'/../lib/Command/DeleteOrphanedFiles.php', |
|
| 32 | + 'OCA\\Files\\Command\\RepairTree' => $baseDir.'/../lib/Command/RepairTree.php', |
|
| 33 | + 'OCA\\Files\\Command\\Scan' => $baseDir.'/../lib/Command/Scan.php', |
|
| 34 | + 'OCA\\Files\\Command\\ScanAppData' => $baseDir.'/../lib/Command/ScanAppData.php', |
|
| 35 | + 'OCA\\Files\\Command\\TransferOwnership' => $baseDir.'/../lib/Command/TransferOwnership.php', |
|
| 36 | + 'OCA\\Files\\Controller\\ApiController' => $baseDir.'/../lib/Controller/ApiController.php', |
|
| 37 | + 'OCA\\Files\\Controller\\DirectEditingController' => $baseDir.'/../lib/Controller/DirectEditingController.php', |
|
| 38 | + 'OCA\\Files\\Controller\\DirectEditingViewController' => $baseDir.'/../lib/Controller/DirectEditingViewController.php', |
|
| 39 | + 'OCA\\Files\\Controller\\OpenLocalEditorController' => $baseDir.'/../lib/Controller/OpenLocalEditorController.php', |
|
| 40 | + 'OCA\\Files\\Controller\\TemplateController' => $baseDir.'/../lib/Controller/TemplateController.php', |
|
| 41 | + 'OCA\\Files\\Controller\\TransferOwnershipController' => $baseDir.'/../lib/Controller/TransferOwnershipController.php', |
|
| 42 | + 'OCA\\Files\\Controller\\ViewController' => $baseDir.'/../lib/Controller/ViewController.php', |
|
| 43 | + 'OCA\\Files\\Db\\OpenLocalEditor' => $baseDir.'/../lib/Db/OpenLocalEditor.php', |
|
| 44 | + 'OCA\\Files\\Db\\OpenLocalEditorMapper' => $baseDir.'/../lib/Db/OpenLocalEditorMapper.php', |
|
| 45 | + 'OCA\\Files\\Db\\TransferOwnership' => $baseDir.'/../lib/Db/TransferOwnership.php', |
|
| 46 | + 'OCA\\Files\\Db\\TransferOwnershipMapper' => $baseDir.'/../lib/Db/TransferOwnershipMapper.php', |
|
| 47 | + 'OCA\\Files\\DirectEditingCapabilities' => $baseDir.'/../lib/DirectEditingCapabilities.php', |
|
| 48 | + 'OCA\\Files\\Event\\LoadAdditionalScriptsEvent' => $baseDir.'/../lib/Event/LoadAdditionalScriptsEvent.php', |
|
| 49 | + 'OCA\\Files\\Event\\LoadSidebar' => $baseDir.'/../lib/Event/LoadSidebar.php', |
|
| 50 | + 'OCA\\Files\\Exception\\TransferOwnershipException' => $baseDir.'/../lib/Exception/TransferOwnershipException.php', |
|
| 51 | + 'OCA\\Files\\Helper' => $baseDir.'/../lib/Helper.php', |
|
| 52 | + 'OCA\\Files\\Listener\\LegacyLoadAdditionalScriptsAdapter' => $baseDir.'/../lib/Listener/LegacyLoadAdditionalScriptsAdapter.php', |
|
| 53 | + 'OCA\\Files\\Listener\\LoadSidebarListener' => $baseDir.'/../lib/Listener/LoadSidebarListener.php', |
|
| 54 | + 'OCA\\Files\\Migration\\Version11301Date20191205150729' => $baseDir.'/../lib/Migration/Version11301Date20191205150729.php', |
|
| 55 | + 'OCA\\Files\\Migration\\Version12101Date20221011153334' => $baseDir.'/../lib/Migration/Version12101Date20221011153334.php', |
|
| 56 | + 'OCA\\Files\\Notification\\Notifier' => $baseDir.'/../lib/Notification/Notifier.php', |
|
| 57 | + 'OCA\\Files\\Search\\FilesSearchProvider' => $baseDir.'/../lib/Search/FilesSearchProvider.php', |
|
| 58 | + 'OCA\\Files\\Service\\DirectEditingService' => $baseDir.'/../lib/Service/DirectEditingService.php', |
|
| 59 | + 'OCA\\Files\\Service\\OwnershipTransferService' => $baseDir.'/../lib/Service/OwnershipTransferService.php', |
|
| 60 | + 'OCA\\Files\\Service\\TagService' => $baseDir.'/../lib/Service/TagService.php', |
|
| 61 | + 'OCA\\Files\\Service\\UserConfig' => $baseDir.'/../lib/Service/UserConfig.php', |
|
| 62 | + 'OCA\\Files\\Settings\\PersonalSettings' => $baseDir.'/../lib/Settings/PersonalSettings.php', |
|
| 63 | 63 | ); |
@@ -5,7 +5,7 @@ discard block |
||
| 5 | 5 | 'version' => 'dev-master', |
| 6 | 6 | 'reference' => '3e452cfe8d80995d1657c617f887a9ee422e6ab1', |
| 7 | 7 | 'type' => 'library', |
| 8 | - 'install_path' => __DIR__ . '/../', |
|
| 8 | + 'install_path' => __DIR__.'/../', |
|
| 9 | 9 | 'aliases' => array(), |
| 10 | 10 | 'dev' => false, |
| 11 | 11 | ), |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | 'version' => 'dev-master', |
| 16 | 16 | 'reference' => '3e452cfe8d80995d1657c617f887a9ee422e6ab1', |
| 17 | 17 | 'type' => 'library', |
| 18 | - 'install_path' => __DIR__ . '/../', |
|
| 18 | + 'install_path' => __DIR__.'/../', |
|
| 19 | 19 | 'aliases' => array(), |
| 20 | 20 | 'dev_requirement' => false, |
| 21 | 21 | ), |
@@ -6,80 +6,80 @@ |
||
| 6 | 6 | |
| 7 | 7 | class ComposerStaticInitFiles |
| 8 | 8 | { |
| 9 | - public static $prefixLengthsPsr4 = array ( |
|
| 9 | + public static $prefixLengthsPsr4 = array( |
|
| 10 | 10 | 'O' => |
| 11 | - array ( |
|
| 11 | + array( |
|
| 12 | 12 | 'OCA\\Files\\' => 10, |
| 13 | 13 | ), |
| 14 | 14 | ); |
| 15 | 15 | |
| 16 | - public static $prefixDirsPsr4 = array ( |
|
| 16 | + public static $prefixDirsPsr4 = array( |
|
| 17 | 17 | 'OCA\\Files\\' => |
| 18 | - array ( |
|
| 19 | - 0 => __DIR__ . '/..' . '/../lib', |
|
| 18 | + array( |
|
| 19 | + 0 => __DIR__.'/..'.'/../lib', |
|
| 20 | 20 | ), |
| 21 | 21 | ); |
| 22 | 22 | |
| 23 | - public static $classMap = array ( |
|
| 24 | - 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', |
|
| 25 | - 'OCA\\Files\\Activity\\FavoriteProvider' => __DIR__ . '/..' . '/../lib/Activity/FavoriteProvider.php', |
|
| 26 | - 'OCA\\Files\\Activity\\Filter\\Favorites' => __DIR__ . '/..' . '/../lib/Activity/Filter/Favorites.php', |
|
| 27 | - 'OCA\\Files\\Activity\\Filter\\FileChanges' => __DIR__ . '/..' . '/../lib/Activity/Filter/FileChanges.php', |
|
| 28 | - 'OCA\\Files\\Activity\\Helper' => __DIR__ . '/..' . '/../lib/Activity/Helper.php', |
|
| 29 | - 'OCA\\Files\\Activity\\Provider' => __DIR__ . '/..' . '/../lib/Activity/Provider.php', |
|
| 30 | - 'OCA\\Files\\Activity\\Settings\\FavoriteAction' => __DIR__ . '/..' . '/../lib/Activity/Settings/FavoriteAction.php', |
|
| 31 | - 'OCA\\Files\\Activity\\Settings\\FileActivitySettings' => __DIR__ . '/..' . '/../lib/Activity/Settings/FileActivitySettings.php', |
|
| 32 | - 'OCA\\Files\\Activity\\Settings\\FileChanged' => __DIR__ . '/..' . '/../lib/Activity/Settings/FileChanged.php', |
|
| 33 | - 'OCA\\Files\\Activity\\Settings\\FileFavoriteChanged' => __DIR__ . '/..' . '/../lib/Activity/Settings/FileFavoriteChanged.php', |
|
| 34 | - 'OCA\\Files\\App' => __DIR__ . '/..' . '/../lib/App.php', |
|
| 35 | - 'OCA\\Files\\AppInfo\\Application' => __DIR__ . '/..' . '/../lib/AppInfo/Application.php', |
|
| 36 | - 'OCA\\Files\\BackgroundJob\\CleanupDirectEditingTokens' => __DIR__ . '/..' . '/../lib/BackgroundJob/CleanupDirectEditingTokens.php', |
|
| 37 | - 'OCA\\Files\\BackgroundJob\\CleanupFileLocks' => __DIR__ . '/..' . '/../lib/BackgroundJob/CleanupFileLocks.php', |
|
| 38 | - 'OCA\\Files\\BackgroundJob\\DeleteExpiredOpenLocalEditor' => __DIR__ . '/..' . '/../lib/BackgroundJob/DeleteExpiredOpenLocalEditor.php', |
|
| 39 | - 'OCA\\Files\\BackgroundJob\\DeleteOrphanedItems' => __DIR__ . '/..' . '/../lib/BackgroundJob/DeleteOrphanedItems.php', |
|
| 40 | - 'OCA\\Files\\BackgroundJob\\FileChunkCleanupJob' => __DIR__ . '/..' . '/../lib/BackgroundJob/FileChunkCleanupJob.php', |
|
| 41 | - 'OCA\\Files\\BackgroundJob\\ScanFiles' => __DIR__ . '/..' . '/../lib/BackgroundJob/ScanFiles.php', |
|
| 42 | - 'OCA\\Files\\BackgroundJob\\TransferOwnership' => __DIR__ . '/..' . '/../lib/BackgroundJob/TransferOwnership.php', |
|
| 43 | - 'OCA\\Files\\Capabilities' => __DIR__ . '/..' . '/../lib/Capabilities.php', |
|
| 44 | - 'OCA\\Files\\Collaboration\\Resources\\Listener' => __DIR__ . '/..' . '/../lib/Collaboration/Resources/Listener.php', |
|
| 45 | - 'OCA\\Files\\Collaboration\\Resources\\ResourceProvider' => __DIR__ . '/..' . '/../lib/Collaboration/Resources/ResourceProvider.php', |
|
| 46 | - 'OCA\\Files\\Command\\DeleteOrphanedFiles' => __DIR__ . '/..' . '/../lib/Command/DeleteOrphanedFiles.php', |
|
| 47 | - 'OCA\\Files\\Command\\RepairTree' => __DIR__ . '/..' . '/../lib/Command/RepairTree.php', |
|
| 48 | - 'OCA\\Files\\Command\\Scan' => __DIR__ . '/..' . '/../lib/Command/Scan.php', |
|
| 49 | - 'OCA\\Files\\Command\\ScanAppData' => __DIR__ . '/..' . '/../lib/Command/ScanAppData.php', |
|
| 50 | - 'OCA\\Files\\Command\\TransferOwnership' => __DIR__ . '/..' . '/../lib/Command/TransferOwnership.php', |
|
| 51 | - 'OCA\\Files\\Controller\\ApiController' => __DIR__ . '/..' . '/../lib/Controller/ApiController.php', |
|
| 52 | - 'OCA\\Files\\Controller\\DirectEditingController' => __DIR__ . '/..' . '/../lib/Controller/DirectEditingController.php', |
|
| 53 | - 'OCA\\Files\\Controller\\DirectEditingViewController' => __DIR__ . '/..' . '/../lib/Controller/DirectEditingViewController.php', |
|
| 54 | - 'OCA\\Files\\Controller\\OpenLocalEditorController' => __DIR__ . '/..' . '/../lib/Controller/OpenLocalEditorController.php', |
|
| 55 | - 'OCA\\Files\\Controller\\TemplateController' => __DIR__ . '/..' . '/../lib/Controller/TemplateController.php', |
|
| 56 | - 'OCA\\Files\\Controller\\TransferOwnershipController' => __DIR__ . '/..' . '/../lib/Controller/TransferOwnershipController.php', |
|
| 57 | - 'OCA\\Files\\Controller\\ViewController' => __DIR__ . '/..' . '/../lib/Controller/ViewController.php', |
|
| 58 | - 'OCA\\Files\\Db\\OpenLocalEditor' => __DIR__ . '/..' . '/../lib/Db/OpenLocalEditor.php', |
|
| 59 | - 'OCA\\Files\\Db\\OpenLocalEditorMapper' => __DIR__ . '/..' . '/../lib/Db/OpenLocalEditorMapper.php', |
|
| 60 | - 'OCA\\Files\\Db\\TransferOwnership' => __DIR__ . '/..' . '/../lib/Db/TransferOwnership.php', |
|
| 61 | - 'OCA\\Files\\Db\\TransferOwnershipMapper' => __DIR__ . '/..' . '/../lib/Db/TransferOwnershipMapper.php', |
|
| 62 | - 'OCA\\Files\\DirectEditingCapabilities' => __DIR__ . '/..' . '/../lib/DirectEditingCapabilities.php', |
|
| 63 | - 'OCA\\Files\\Event\\LoadAdditionalScriptsEvent' => __DIR__ . '/..' . '/../lib/Event/LoadAdditionalScriptsEvent.php', |
|
| 64 | - 'OCA\\Files\\Event\\LoadSidebar' => __DIR__ . '/..' . '/../lib/Event/LoadSidebar.php', |
|
| 65 | - 'OCA\\Files\\Exception\\TransferOwnershipException' => __DIR__ . '/..' . '/../lib/Exception/TransferOwnershipException.php', |
|
| 66 | - 'OCA\\Files\\Helper' => __DIR__ . '/..' . '/../lib/Helper.php', |
|
| 67 | - 'OCA\\Files\\Listener\\LegacyLoadAdditionalScriptsAdapter' => __DIR__ . '/..' . '/../lib/Listener/LegacyLoadAdditionalScriptsAdapter.php', |
|
| 68 | - 'OCA\\Files\\Listener\\LoadSidebarListener' => __DIR__ . '/..' . '/../lib/Listener/LoadSidebarListener.php', |
|
| 69 | - 'OCA\\Files\\Migration\\Version11301Date20191205150729' => __DIR__ . '/..' . '/../lib/Migration/Version11301Date20191205150729.php', |
|
| 70 | - 'OCA\\Files\\Migration\\Version12101Date20221011153334' => __DIR__ . '/..' . '/../lib/Migration/Version12101Date20221011153334.php', |
|
| 71 | - 'OCA\\Files\\Notification\\Notifier' => __DIR__ . '/..' . '/../lib/Notification/Notifier.php', |
|
| 72 | - 'OCA\\Files\\Search\\FilesSearchProvider' => __DIR__ . '/..' . '/../lib/Search/FilesSearchProvider.php', |
|
| 73 | - 'OCA\\Files\\Service\\DirectEditingService' => __DIR__ . '/..' . '/../lib/Service/DirectEditingService.php', |
|
| 74 | - 'OCA\\Files\\Service\\OwnershipTransferService' => __DIR__ . '/..' . '/../lib/Service/OwnershipTransferService.php', |
|
| 75 | - 'OCA\\Files\\Service\\TagService' => __DIR__ . '/..' . '/../lib/Service/TagService.php', |
|
| 76 | - 'OCA\\Files\\Service\\UserConfig' => __DIR__ . '/..' . '/../lib/Service/UserConfig.php', |
|
| 77 | - 'OCA\\Files\\Settings\\PersonalSettings' => __DIR__ . '/..' . '/../lib/Settings/PersonalSettings.php', |
|
| 23 | + public static $classMap = array( |
|
| 24 | + 'Composer\\InstalledVersions' => __DIR__.'/..'.'/composer/InstalledVersions.php', |
|
| 25 | + 'OCA\\Files\\Activity\\FavoriteProvider' => __DIR__.'/..'.'/../lib/Activity/FavoriteProvider.php', |
|
| 26 | + 'OCA\\Files\\Activity\\Filter\\Favorites' => __DIR__.'/..'.'/../lib/Activity/Filter/Favorites.php', |
|
| 27 | + 'OCA\\Files\\Activity\\Filter\\FileChanges' => __DIR__.'/..'.'/../lib/Activity/Filter/FileChanges.php', |
|
| 28 | + 'OCA\\Files\\Activity\\Helper' => __DIR__.'/..'.'/../lib/Activity/Helper.php', |
|
| 29 | + 'OCA\\Files\\Activity\\Provider' => __DIR__.'/..'.'/../lib/Activity/Provider.php', |
|
| 30 | + 'OCA\\Files\\Activity\\Settings\\FavoriteAction' => __DIR__.'/..'.'/../lib/Activity/Settings/FavoriteAction.php', |
|
| 31 | + 'OCA\\Files\\Activity\\Settings\\FileActivitySettings' => __DIR__.'/..'.'/../lib/Activity/Settings/FileActivitySettings.php', |
|
| 32 | + 'OCA\\Files\\Activity\\Settings\\FileChanged' => __DIR__.'/..'.'/../lib/Activity/Settings/FileChanged.php', |
|
| 33 | + 'OCA\\Files\\Activity\\Settings\\FileFavoriteChanged' => __DIR__.'/..'.'/../lib/Activity/Settings/FileFavoriteChanged.php', |
|
| 34 | + 'OCA\\Files\\App' => __DIR__.'/..'.'/../lib/App.php', |
|
| 35 | + 'OCA\\Files\\AppInfo\\Application' => __DIR__.'/..'.'/../lib/AppInfo/Application.php', |
|
| 36 | + 'OCA\\Files\\BackgroundJob\\CleanupDirectEditingTokens' => __DIR__.'/..'.'/../lib/BackgroundJob/CleanupDirectEditingTokens.php', |
|
| 37 | + 'OCA\\Files\\BackgroundJob\\CleanupFileLocks' => __DIR__.'/..'.'/../lib/BackgroundJob/CleanupFileLocks.php', |
|
| 38 | + 'OCA\\Files\\BackgroundJob\\DeleteExpiredOpenLocalEditor' => __DIR__.'/..'.'/../lib/BackgroundJob/DeleteExpiredOpenLocalEditor.php', |
|
| 39 | + 'OCA\\Files\\BackgroundJob\\DeleteOrphanedItems' => __DIR__.'/..'.'/../lib/BackgroundJob/DeleteOrphanedItems.php', |
|
| 40 | + 'OCA\\Files\\BackgroundJob\\FileChunkCleanupJob' => __DIR__.'/..'.'/../lib/BackgroundJob/FileChunkCleanupJob.php', |
|
| 41 | + 'OCA\\Files\\BackgroundJob\\ScanFiles' => __DIR__.'/..'.'/../lib/BackgroundJob/ScanFiles.php', |
|
| 42 | + 'OCA\\Files\\BackgroundJob\\TransferOwnership' => __DIR__.'/..'.'/../lib/BackgroundJob/TransferOwnership.php', |
|
| 43 | + 'OCA\\Files\\Capabilities' => __DIR__.'/..'.'/../lib/Capabilities.php', |
|
| 44 | + 'OCA\\Files\\Collaboration\\Resources\\Listener' => __DIR__.'/..'.'/../lib/Collaboration/Resources/Listener.php', |
|
| 45 | + 'OCA\\Files\\Collaboration\\Resources\\ResourceProvider' => __DIR__.'/..'.'/../lib/Collaboration/Resources/ResourceProvider.php', |
|
| 46 | + 'OCA\\Files\\Command\\DeleteOrphanedFiles' => __DIR__.'/..'.'/../lib/Command/DeleteOrphanedFiles.php', |
|
| 47 | + 'OCA\\Files\\Command\\RepairTree' => __DIR__.'/..'.'/../lib/Command/RepairTree.php', |
|
| 48 | + 'OCA\\Files\\Command\\Scan' => __DIR__.'/..'.'/../lib/Command/Scan.php', |
|
| 49 | + 'OCA\\Files\\Command\\ScanAppData' => __DIR__.'/..'.'/../lib/Command/ScanAppData.php', |
|
| 50 | + 'OCA\\Files\\Command\\TransferOwnership' => __DIR__.'/..'.'/../lib/Command/TransferOwnership.php', |
|
| 51 | + 'OCA\\Files\\Controller\\ApiController' => __DIR__.'/..'.'/../lib/Controller/ApiController.php', |
|
| 52 | + 'OCA\\Files\\Controller\\DirectEditingController' => __DIR__.'/..'.'/../lib/Controller/DirectEditingController.php', |
|
| 53 | + 'OCA\\Files\\Controller\\DirectEditingViewController' => __DIR__.'/..'.'/../lib/Controller/DirectEditingViewController.php', |
|
| 54 | + 'OCA\\Files\\Controller\\OpenLocalEditorController' => __DIR__.'/..'.'/../lib/Controller/OpenLocalEditorController.php', |
|
| 55 | + 'OCA\\Files\\Controller\\TemplateController' => __DIR__.'/..'.'/../lib/Controller/TemplateController.php', |
|
| 56 | + 'OCA\\Files\\Controller\\TransferOwnershipController' => __DIR__.'/..'.'/../lib/Controller/TransferOwnershipController.php', |
|
| 57 | + 'OCA\\Files\\Controller\\ViewController' => __DIR__.'/..'.'/../lib/Controller/ViewController.php', |
|
| 58 | + 'OCA\\Files\\Db\\OpenLocalEditor' => __DIR__.'/..'.'/../lib/Db/OpenLocalEditor.php', |
|
| 59 | + 'OCA\\Files\\Db\\OpenLocalEditorMapper' => __DIR__.'/..'.'/../lib/Db/OpenLocalEditorMapper.php', |
|
| 60 | + 'OCA\\Files\\Db\\TransferOwnership' => __DIR__.'/..'.'/../lib/Db/TransferOwnership.php', |
|
| 61 | + 'OCA\\Files\\Db\\TransferOwnershipMapper' => __DIR__.'/..'.'/../lib/Db/TransferOwnershipMapper.php', |
|
| 62 | + 'OCA\\Files\\DirectEditingCapabilities' => __DIR__.'/..'.'/../lib/DirectEditingCapabilities.php', |
|
| 63 | + 'OCA\\Files\\Event\\LoadAdditionalScriptsEvent' => __DIR__.'/..'.'/../lib/Event/LoadAdditionalScriptsEvent.php', |
|
| 64 | + 'OCA\\Files\\Event\\LoadSidebar' => __DIR__.'/..'.'/../lib/Event/LoadSidebar.php', |
|
| 65 | + 'OCA\\Files\\Exception\\TransferOwnershipException' => __DIR__.'/..'.'/../lib/Exception/TransferOwnershipException.php', |
|
| 66 | + 'OCA\\Files\\Helper' => __DIR__.'/..'.'/../lib/Helper.php', |
|
| 67 | + 'OCA\\Files\\Listener\\LegacyLoadAdditionalScriptsAdapter' => __DIR__.'/..'.'/../lib/Listener/LegacyLoadAdditionalScriptsAdapter.php', |
|
| 68 | + 'OCA\\Files\\Listener\\LoadSidebarListener' => __DIR__.'/..'.'/../lib/Listener/LoadSidebarListener.php', |
|
| 69 | + 'OCA\\Files\\Migration\\Version11301Date20191205150729' => __DIR__.'/..'.'/../lib/Migration/Version11301Date20191205150729.php', |
|
| 70 | + 'OCA\\Files\\Migration\\Version12101Date20221011153334' => __DIR__.'/..'.'/../lib/Migration/Version12101Date20221011153334.php', |
|
| 71 | + 'OCA\\Files\\Notification\\Notifier' => __DIR__.'/..'.'/../lib/Notification/Notifier.php', |
|
| 72 | + 'OCA\\Files\\Search\\FilesSearchProvider' => __DIR__.'/..'.'/../lib/Search/FilesSearchProvider.php', |
|
| 73 | + 'OCA\\Files\\Service\\DirectEditingService' => __DIR__.'/..'.'/../lib/Service/DirectEditingService.php', |
|
| 74 | + 'OCA\\Files\\Service\\OwnershipTransferService' => __DIR__.'/..'.'/../lib/Service/OwnershipTransferService.php', |
|
| 75 | + 'OCA\\Files\\Service\\TagService' => __DIR__.'/..'.'/../lib/Service/TagService.php', |
|
| 76 | + 'OCA\\Files\\Service\\UserConfig' => __DIR__.'/..'.'/../lib/Service/UserConfig.php', |
|
| 77 | + 'OCA\\Files\\Settings\\PersonalSettings' => __DIR__.'/..'.'/../lib/Settings/PersonalSettings.php', |
|
| 78 | 78 | ); |
| 79 | 79 | |
| 80 | 80 | public static function getInitializer(ClassLoader $loader) |
| 81 | 81 | { |
| 82 | - return \Closure::bind(function () use ($loader) { |
|
| 82 | + return \Closure::bind(function() use ($loader) { |
|
| 83 | 83 | $loader->prefixLengthsPsr4 = ComposerStaticInitFiles::$prefixLengthsPsr4; |
| 84 | 84 | $loader->prefixDirsPsr4 = ComposerStaticInitFiles::$prefixDirsPsr4; |
| 85 | 85 | $loader->classMap = ComposerStaticInitFiles::$classMap; |