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

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

apps/files_external/lib/ftp.php 1 location

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

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

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