Code Duplication    Length = 4-5 lines in 2 locations

php/elFinderVolumeDriver.class.php 2 locations

@@ 1535-1538 (lines=4) @@
1532
		$this->rmTmb($file); // remove old name tmbs, we cannot do this after dir move
1533
1534
1535
		if ($path = $this->convEncOut($this->_move($this->convEncIn($path), $this->convEncIn($dir), $this->convEncIn($name)))) {
1536
			$this->clearcache();
1537
			return $this->stat($path);
1538
		}
1539
		return false;
1540
	}
1541
	
@@ 3304-3308 (lines=5) @@
3301
		$this->rmTmb($stat); // can not do rmTmb() after _move()
3302
		$this->clearcache();
3303
		
3304
		if ($this->convEncOut($this->_move($this->convEncIn($src), $this->convEncIn($dst), $this->convEncIn($name)))) {
3305
			$this->removed[] = $stat;
3306
3307
			return $this->joinPathCE($dst, $name);
3308
		}
3309
3310
		return $this->setError(elFinder::ERROR_MOVE, $this->path($stat['hash']));
3311
	}