Code Duplication    Length = 3-5 lines in 2 locations

lib/elFinderVolumeDriver.class.php 2 locations

@@ 848-850 (lines=3) @@
845
	    $path = $this->decode($hash);
846
	    $write = $file['write'];
847
848
	    if ($this->convEncOut(! $this->_chmod($this->convEncIn($path), $mode))) {
849
	        return $this->setError(elFinder::ERROR_PERM_DENIED, $file['name']);
850
	    }
851
852
	    $this->clearcache();
853
	    if ($path == $this->root) {
@@ 4845-4849 (lines=5) @@
4842
	        if (! $ret) {
4843
	            return $this->setError(elFinder::ERROR_RM, $this->path($stat['hash']));
4844
	        }
4845
	    } else {
4846
	        if ($this->convEncOut(! $this->_unlink($this->convEncIn($path)))) {
4847
	            return $this->setError(elFinder::ERROR_RM, $this->path($stat['hash']));
4848
	        }
4849
	    }
4850
4851
	    $this->removed[] = $stat;
4852