Code Duplication    Length = 3-5 lines in 2 locations

php/elFinderVolumeDriver.class.php 2 locations

@@ 673-675 (lines=3) @@
670
671
		$path = $this->decode($hash);
672
673
		if ($this->convEncOut(!$this->_chmod($this->convEncIn($path), $mode))) {
674
			return $this->setError(elFinder::ERROR_PERM_DENIED, $file['name']);
675
		}
676
677
		$this->clearcache();
678
@@ 3385-3389 (lines=5) @@
3382
			if (!$ret) {
3383
				return $this->setError(elFinder::ERROR_RM, $this->path($stat['hash']));
3384
			}
3385
		} else {
3386
			if ($this->convEncOut(!$this->_unlink($this->convEncIn($path)))) {
3387
				return $this->setError(elFinder::ERROR_RM, $this->path($stat['hash']));
3388
			}
3389
		}
3390
3391
		$this->removed[] = $stat;
3392
		return true;