Completed
Pull Request — master (#4521)
by Robin
157:00 queued 139:44
created
apps/dav/lib/Connector/Sabre/FilesPlugin.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
 		$this->server->on('propPatch', array($this, 'handleUpdateProperties'));
171 171
 		$this->server->on('afterBind', array($this, 'sendFileIdHeader'));
172 172
 		$this->server->on('afterWriteContent', array($this, 'sendFileIdHeader'));
173
-		$this->server->on('afterMethod:GET', [$this,'httpGet']);
173
+		$this->server->on('afterMethod:GET', [$this, 'httpGet']);
174 174
 		$this->server->on('afterMethod:GET', array($this, 'handleDownloadToken'));
175 175
 		$this->server->on('afterResponse', function($request, ResponseInterface $response) {
176 176
 			$body = $response->getBody();
@@ -200,11 +200,11 @@  discard block
 block discarded – undo
200 200
 		if ($sourceDir !== $destinationDir) {
201 201
 			$sourceNodeFileInfo = $sourceNode->getFileInfo();
202 202
 			if (is_null($sourceNodeFileInfo)) {
203
-				throw new NotFound($source . ' does not exist');
203
+				throw new NotFound($source.' does not exist');
204 204
 			}
205 205
 
206 206
 			if (!$sourceNodeFileInfo->isDeletable()) {
207
-				throw new Forbidden($source . " cannot be deleted");
207
+				throw new Forbidden($source." cannot be deleted");
208 208
 			}
209 209
 		}
210 210
 	}
@@ -257,10 +257,10 @@  discard block
 block discarded – undo
257 257
 					\OC\AppFramework\Http\Request::USER_AGENT_ANDROID_MOBILE_CHROME,
258 258
 					\OC\AppFramework\Http\Request::USER_AGENT_FREEBOX,
259 259
 				])) {
260
-				$response->addHeader('Content-Disposition', 'attachment; filename="' . rawurlencode($filename) . '"');
260
+				$response->addHeader('Content-Disposition', 'attachment; filename="'.rawurlencode($filename).'"');
261 261
 			} else {
262
-				$response->addHeader('Content-Disposition', 'attachment; filename*=UTF-8\'\'' . rawurlencode($filename)
263
-													 . '; filename="' . rawurlencode($filename) . '"');
262
+				$response->addHeader('Content-Disposition', 'attachment; filename*=UTF-8\'\''.rawurlencode($filename)
263
+													 . '; filename="'.rawurlencode($filename).'"');
264 264
 			}
265 265
 		}
266 266
 
@@ -331,7 +331,7 @@  discard block
 block discarded – undo
331 331
 				}
332 332
 			});
333 333
 
334
-			$propFind->handle(self::HAS_PREVIEW_PROPERTYNAME, function () use ($node) {
334
+			$propFind->handle(self::HAS_PREVIEW_PROPERTYNAME, function() use ($node) {
335 335
 				return json_encode($this->previewManager->isAvailable($node->getFileInfo()));
336 336
 			});
337 337
 			$propFind->handle(self::SIZE_PROPERTYNAME, function() use ($node) {
@@ -378,7 +378,7 @@  discard block
 block discarded – undo
378 378
 			});
379 379
 		}
380 380
 
381
-		$propFind->handle(self::MOUNT_TYPE_PROPERTYNAME, function () use ($node) {
381
+		$propFind->handle(self::MOUNT_TYPE_PROPERTYNAME, function() use ($node) {
382 382
 			return $node->getFileInfo()->getMountPoint()->getMountType();
383 383
 		});
384 384
 	}
@@ -426,7 +426,7 @@  discard block
 block discarded – undo
426 426
 			list($path, $name) = \Sabre\HTTP\URLUtil::splitPath($filePath);
427 427
 			$info = \OC_FileChunking::decodeName($name);
428 428
 			if (!empty($info)) {
429
-				$filePath = $path . '/' . $info['name'];
429
+				$filePath = $path.'/'.$info['name'];
430 430
 			}
431 431
 		}
432 432
 
Please login to merge, or discard this patch.