Code Duplication    Length = 4-4 lines in 2 locations

ftp/loader.php 2 locations

@@ 275-278 (lines=4) @@
272
			$listMode="";
273
			$absolute = ($path[0] === '/') ? true : false;
274
			$path=$FTP->site.$FTP->store->make_path($FTP->cwd, $path);
275
			while (preg_match('|/'.ESPCHL.'([^/]*)'.ESPCHR.'/|', $path, $regs) && $regs[1]) {
276
				$listMode=$regs[1];
277
				$path=str_replace("/".SPCHL.$listMode.SPCHR."/", "/", $path);
278
			}
279
			if (!$listMode) {
280
				if (!$absolute && $FTP->listMode) {
281
					$listMode=$FTP->listMode;
@@ 399-402 (lines=4) @@
396
397
						$path=$FTP->store->make_path($FTP->cwd, $args);
398
						debug("ftp: cwd absolute path is ($path)");
399
						while (preg_match('|/'.ESPCHL.'([^/]*)'.ESPCHR.'/|', $path, $regs) && $regs[1]) {
400
							$FTP->listMode=$regs[1];
401
							$path=str_replace("/".SPCHL.$FTP->listMode.SPCHR."/", "/", $path);
402
						}
403
						$cwd=$FTP->store->make_path($FTP->cwd, $path);
404
						if ($FTP->store->exists($FTP->site.$cwd)) {
405
							$result=current($FTP->store->call("system.get.phtml", "",