Completed
Push — master ( 9bc946...a42563 )
by
unknown
20:09 queued 02:48
created
apps/dav/appinfo/v2/publicremote.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -78,9 +78,9 @@  discard block
 block discarded – undo
78 78
 // Define root url with /public.php/dav/files/TOKEN
79 79
 /** @var string $baseuri defined in public.php */
80 80
 preg_match('/(^files\/[a-z0-9-_]+)/i', substr($requestUri, strlen($baseuri)), $match);
81
-$baseuri = $baseuri . $match[0];
81
+$baseuri = $baseuri.$match[0];
82 82
 
83
-$server = $serverFactory->createServer($baseuri, $requestUri, $authPlugin, function (\Sabre\DAV\Server $server) use ($authBackend, $linkCheckPlugin, $filesDropPlugin) {
83
+$server = $serverFactory->createServer($baseuri, $requestUri, $authPlugin, function(\Sabre\DAV\Server $server) use ($authBackend, $linkCheckPlugin, $filesDropPlugin) {
84 84
 	// GET must be allowed for e.g. showing images and allowing Zip downloads
85 85
 	if ($server->httpRequest->getMethod() !== 'GET') {
86 86
 		// If this is *not* a GET request we only allow access to public DAV from AJAX or when Server2Server is allowed
@@ -102,18 +102,18 @@  discard block
 block discarded – undo
102 102
 	$previousLog = Filesystem::logWarningWhenAddingStorageWrapper(false);
103 103
 
104 104
 	/** @psalm-suppress MissingClosureParamType */
105
-	Filesystem::addStorageWrapper('sharePermissions', function ($mountPoint, $storage) use ($share) {
105
+	Filesystem::addStorageWrapper('sharePermissions', function($mountPoint, $storage) use ($share) {
106 106
 		return new PermissionsMask(['storage' => $storage, 'mask' => $share->getPermissions() | Constants::PERMISSION_SHARE]);
107 107
 	});
108 108
 
109 109
 	/** @psalm-suppress MissingClosureParamType */
110
-	Filesystem::addStorageWrapper('shareOwner', function ($mountPoint, $storage) use ($share) {
110
+	Filesystem::addStorageWrapper('shareOwner', function($mountPoint, $storage) use ($share) {
111 111
 		return new PublicOwnerWrapper(['storage' => $storage, 'owner' => $share->getShareOwner()]);
112 112
 	});
113 113
 
114 114
 	// Ensure that also private shares have the `getShare` method
115 115
 	/** @psalm-suppress MissingClosureParamType */
116
-	Filesystem::addStorageWrapper('getShare', function ($mountPoint, $storage) use ($share) {
116
+	Filesystem::addStorageWrapper('getShare', function($mountPoint, $storage) use ($share) {
117 117
 		return new PublicShareWrapper(['storage' => $storage, 'share' => $share]);
118 118
 	}, 0);
119 119
 
Please login to merge, or discard this patch.