Code Duplication    Length = 4-5 lines in 2 locations

php/elFinderVolumeDriver.class.php 2 locations

@@ 1490-1493 (lines=4) @@
1487
		$this->rmTmb($file); // remove old name tmbs, we cannot do this after dir move
1488
1489
1490
		if ($path = $this->convEncOut($this->_move($this->convEncIn($path), $this->convEncIn($dir), $this->convEncIn($name)))) {
1491
			$this->clearcache();
1492
			return $this->stat($path);
1493
		}
1494
		return false;
1495
	}
1496
	
@@ 3249-3253 (lines=5) @@
3246
		$this->rmTmb($stat); // can not do rmTmb() after _move()
3247
		$this->clearcache();
3248
		
3249
		if ($this->convEncOut($this->_move($this->convEncIn($src), $this->convEncIn($dst), $this->convEncIn($name)))) {
3250
			$this->removed[] = $stat;
3251
3252
			return $this->joinPathCE($dst, $name);
3253
		}
3254
3255
		return $this->setError(elFinder::ERROR_MOVE, $this->path($stat['hash']));
3256
	}