Code Duplication    Length = 4-8 lines in 2 locations

lib/elFinderVolumeFTP.class.php 2 locations

@@ 1137-1140 (lines=4) @@
1134
	        $local = $this->getTempFile();
1135
	        $target = $this->_joinPath($targetDir, $name);
1136
1137
	        if (ftp_get($this->connect, $local, $source, FTP_BINARY)
1138
			&& ftp_put($this->connect, $target, $local, $this->ftpMode($target))) {
1139
	            $res = $target;
1140
	        }
1141
	        unlink($local);
1142
	    }
1143
@@ 1434-1441 (lines=8) @@
1431
1432
	                    return false;
1433
	                }
1434
	            } else {
1435
	                $target = $this->_joinPath($dstDir, $name);
1436
	                if (! ftp_put($this->connect, $target, $src, FTP_BINARY)) {
1437
	                    $this->rmdirRecursive($dir);
1438
1439
	                    return false;
1440
	                }
1441
	            }
1442
	            $result[] = $target;
1443
	        }
1444
	        if (! $result) {