Code Duplication    Length = 10-10 lines in 2 locations

apps/dav/lib/Upload/ChunkingPlugin.php 1 location

@@ 52-61 (lines=10) @@
49
	 * @throws BadRequest
50
	 * @throws \Sabre\DAV\Exception\NotFound
51
	 */
52
	function beforeMove($sourcePath, $destination) {
53
		$this->sourceNode = $this->server->tree->getNodeForPath($sourcePath);
54
		if (!$this->sourceNode instanceof FutureFile) {
55
			// skip handling as the source is not a chunked FutureFile
56
			return;
57
		}
58
59
		$this->verifySize();
60
		return $this->performMove($sourcePath, $destination);
61
	}
62
63
	/**
64
	 * Move handler for future file.

apps/dav/lib/Upload/ChunkingPluginZsync.php 1 location

@@ 55-64 (lines=10) @@
52
	 * @param string $sourcePath source path
53
	 * @param string $destination destination path
54
	 */
55
	function beforeMove($sourcePath, $destination) {
56
		$this->sourceNode = $this->server->tree->getNodeForPath($sourcePath);
57
		if (!$this->sourceNode instanceof FutureFileZsync) {
58
			// skip handling as the source is not a chunked FutureFileZsync
59
			return;
60
		}
61
62
		$this->verifySize();
63
		return $this->performMove($sourcePath, $destination);
64
	}
65
66
	/**
67
	 * Handles the temporary copy of the zsync metadata file