Code Duplication    Length = 4-4 lines in 4 locations

lib/private/archive/tar.php 1 location

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

lib/private/archive/zip.php 1 location

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

lib/private/files/storage/dav.php 1 location

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

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
	/**