Code Duplication    Length = 4-4 lines in 4 locations

apps/files_external/lib/storage/ftp.php 1 location

@@ 138-141 (lines=4) @@
135
	}
136
137
	public function writeBack($tmpFile) {
138
		if (isset(self::$tempFiles[$tmpFile])) {
139
			$this->uploadFile($tmpFile, self::$tempFiles[$tmpFile]);
140
			unlink($tmpFile);
141
		}
142
	}
143
144
	/**

lib/private/Files/Storage/DAV.php 1 location

@@ 417-420 (lines=4) @@
414
	 * @param string $tmpFile
415
	 */
416
	public function writeBack($tmpFile) {
417
		if (isset(self::$tempFiles[$tmpFile])) {
418
			$this->uploadFile($tmpFile, self::$tempFiles[$tmpFile]);
419
			unlink($tmpFile);
420
		}
421
	}
422
423
	/** {@inheritdoc} */

lib/private/Archive/TAR.php 1 location

@@ 373-376 (lines=4) @@
370
	 * write back temporary files
371
	 */
372
	function writeBack($tmpFile) {
373
		if (isset(self::$tempFiles[$tmpFile])) {
374
			$this->addFile(self::$tempFiles[$tmpFile], $tmpFile);
375
			unlink($tmpFile);
376
		}
377
	}
378
379
	/**

lib/private/Archive/ZIP.php 1 location

@@ 213-216 (lines=4) @@
210
	 * write back temporary files
211
	 */
212
	function writeBack($tmpFile) {
213
		if(isset(self::$tempFiles[$tmpFile])) {
214
			$this->addFile(self::$tempFiles[$tmpFile], $tmpFile);
215
			unlink($tmpFile);
216
		}
217
	}
218
219
	/**