Code Duplication    Length = 11-13 lines in 2 locations

apps/dav/lib/Connector/Sabre/FilesPlugin.php 2 locations

@@ 385-395 (lines=11) @@
382
	 * @return void
383
	 */
384
	public function handleUpdateProperties($path, PropPatch $propPatch) {
385
		$propPatch->handle(self::LASTMODIFIED_PROPERTYNAME, function($time) use ($path) {
386
			if (empty($time)) {
387
				return false;
388
			}
389
			$node = $this->tree->getNodeForPath($path);
390
			if (is_null($node)) {
391
				return 404;
392
			}
393
			$node->touch($time);
394
			return true;
395
		});
396
		$propPatch->handle(self::GETETAG_PROPERTYNAME, function($etag) use ($path) {
397
			if (empty($etag)) {
398
				return false;
@@ 396-408 (lines=13) @@
393
			$node->touch($time);
394
			return true;
395
		});
396
		$propPatch->handle(self::GETETAG_PROPERTYNAME, function($etag) use ($path) {
397
			if (empty($etag)) {
398
				return false;
399
			}
400
			$node = $this->tree->getNodeForPath($path);
401
			if (is_null($node)) {
402
				return 404;
403
			}
404
			if ($node->setEtag($etag) !== -1) {
405
				return true;
406
			}
407
			return false;
408
		});
409
	}
410
411
	/**