Code Duplication    Length = 6-6 lines in 2 locations

php/elFinderVolumeFTP.class.php 1 location

@@ 1062-1067 (lines=6) @@
1059
		if ($this->tmp) {
1060
			$local = $this->getTempFile();
1061
			
1062
			if (@file_put_contents($local, $content, LOCK_EX) !== false
1063
			&& ($fp = @fopen($local, 'rb'))) {
1064
				clearstatcache();
1065
				$res  = ftp_fput($this->connect, $path, $fp, $this->ftpMode($path));
1066
				@fclose($fp);
1067
			}
1068
			file_exists($local) && @unlink($local);
1069
		}
1070

php/elFinderVolumeDropbox.class.php 1 location

@@ 1378-1383 (lines=6) @@
1375
		$res = false;
1376
1377
		if ($local = $this->getTempFile($path)) {
1378
			if (@file_put_contents($local, $content, LOCK_EX) !== false
1379
			&& ($fp = @fopen($local, 'rb'))) {
1380
				clearstatcache();
1381
				$res = $this->_save($fp, $path, '', array());
1382
				@fclose($fp);
1383
			}
1384
			file_exists($local) && @unlink($local);
1385
		}
1386