Passed
Push — master ( a688f4...483e92 )
by Roeland
10:21 queued 10s
created
apps/dav/appinfo/v1/publicwebdav.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.