@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | $linkCheckPlugin = new \OCA\DAV\Files\Sharing\PublicLinkCheckPlugin(); |
64 | 64 | $filesDropPlugin = new \OCA\DAV\Files\Sharing\FilesDropPlugin(); |
65 | 65 | |
66 | -$server = $serverFactory->createServer($baseuri, $requestUri, $authPlugin, function (\Sabre\DAV\Server $server) use ($authBackend, $linkCheckPlugin, $filesDropPlugin) { |
|
66 | +$server = $serverFactory->createServer($baseuri, $requestUri, $authPlugin, function(\Sabre\DAV\Server $server) use ($authBackend, $linkCheckPlugin, $filesDropPlugin) { |
|
67 | 67 | $isAjax = (isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] === 'XMLHttpRequest'); |
68 | 68 | $federatedSharingApp = \OC::$server->query(\OCA\FederatedFileSharing\AppInfo\Application::class); |
69 | 69 | $federatedShareProvider = $federatedSharingApp->getFederatedShareProvider(); |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | |
80 | 80 | // FIXME: should not add storage wrappers outside of preSetup, need to find a better way |
81 | 81 | $previousLog = \OC\Files\Filesystem::logWarningWhenAddingStorageWrapper(false); |
82 | - \OC\Files\Filesystem::addStorageWrapper('sharePermissions', function ($mountPoint, $storage) use ($share) { |
|
82 | + \OC\Files\Filesystem::addStorageWrapper('sharePermissions', function($mountPoint, $storage) use ($share) { |
|
83 | 83 | return new \OC\Files\Storage\Wrapper\PermissionsMask(['storage' => $storage, 'mask' => $share->getPermissions() | \OCP\Constants::PERMISSION_SHARE]); |
84 | 84 | }); |
85 | 85 | |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | |
88 | 88 | OC_Util::tearDownFS(); |
89 | 89 | OC_Util::setupFS($owner); |
90 | - $ownerView = new \OC\Files\View('/'. $owner . '/files'); |
|
90 | + $ownerView = new \OC\Files\View('/'.$owner.'/files'); |
|
91 | 91 | $path = $ownerView->getPath($fileId); |
92 | 92 | $fileInfo = $ownerView->getFileInfo($path); |
93 | 93 | $linkCheckPlugin->setFileInfo($fileInfo); |