Completed
Pull Request — master (#6283)
by Björn
15:01
created
apps/dav/lib/Connector/Sabre/FilesPlugin.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
 		$this->server->on('propPatch', array($this, 'handleUpdateProperties'));
173 173
 		$this->server->on('afterBind', array($this, 'sendFileIdHeader'));
174 174
 		$this->server->on('afterWriteContent', array($this, 'sendFileIdHeader'));
175
-		$this->server->on('afterMethod:GET', [$this,'httpGet']);
175
+		$this->server->on('afterMethod:GET', [$this, 'httpGet']);
176 176
 		$this->server->on('afterMethod:GET', array($this, 'handleDownloadToken'));
177 177
 		$this->server->on('afterResponse', function($request, ResponseInterface $response) {
178 178
 			$body = $response->getBody();
@@ -203,11 +203,11 @@  discard block
 block discarded – undo
203 203
 		if ($sourceDir !== $destinationDir) {
204 204
 			$sourceNodeFileInfo = $sourceNode->getFileInfo();
205 205
 			if ($sourceNodeFileInfo === null) {
206
-				throw new NotFound($source . ' does not exist');
206
+				throw new NotFound($source.' does not exist');
207 207
  			}
208 208
 
209 209
 			if (!$sourceNodeFileInfo->isDeletable()) {
210
-				throw new Forbidden($source . " cannot be deleted");
210
+				throw new Forbidden($source." cannot be deleted");
211 211
 			}
212 212
 		}
213 213
 	}
@@ -260,10 +260,10 @@  discard block
 block discarded – undo
260 260
 					\OC\AppFramework\Http\Request::USER_AGENT_ANDROID_MOBILE_CHROME,
261 261
 					\OC\AppFramework\Http\Request::USER_AGENT_FREEBOX,
262 262
 				])) {
263
-				$response->addHeader('Content-Disposition', 'attachment; filename="' . rawurlencode($filename) . '"');
263
+				$response->addHeader('Content-Disposition', 'attachment; filename="'.rawurlencode($filename).'"');
264 264
 			} else {
265
-				$response->addHeader('Content-Disposition', 'attachment; filename*=UTF-8\'\'' . rawurlencode($filename)
266
-													 . '; filename="' . rawurlencode($filename) . '"');
265
+				$response->addHeader('Content-Disposition', 'attachment; filename*=UTF-8\'\''.rawurlencode($filename)
266
+													 . '; filename="'.rawurlencode($filename).'"');
267 267
 			}
268 268
 		}
269 269
 
@@ -349,13 +349,13 @@  discard block
 block discarded – undo
349 349
 				return $result;
350 350
 			});
351 351
 
352
-			$propFind->handle(self::HAS_PREVIEW_PROPERTYNAME, function () use ($node) {
352
+			$propFind->handle(self::HAS_PREVIEW_PROPERTYNAME, function() use ($node) {
353 353
 				return json_encode($this->previewManager->isAvailable($node->getFileInfo()));
354 354
 			});
355 355
 			$propFind->handle(self::SIZE_PROPERTYNAME, function() use ($node) {
356 356
 				return $node->getSize();
357 357
 			});
358
-			$propFind->handle(self::MOUNT_TYPE_PROPERTYNAME, function () use ($node) {
358
+			$propFind->handle(self::MOUNT_TYPE_PROPERTYNAME, function() use ($node) {
359 359
 				return $node->getFileInfo()->getMountPoint()->getMountType();
360 360
 			});
361 361
 		}
@@ -443,7 +443,7 @@  discard block
 block discarded – undo
443 443
 			list($path, $name) = \Sabre\Uri\split($filePath);
444 444
 			$info = \OC_FileChunking::decodeName($name);
445 445
 			if (!empty($info)) {
446
-				$filePath = $path . '/' . $info['name'];
446
+				$filePath = $path.'/'.$info['name'];
447 447
 			}
448 448
 		}
449 449
 
Please login to merge, or discard this patch.