Code Duplication    Length = 3-5 lines in 2 locations

php/elFinderVolumeDriver.class.php 2 locations

@@ 677-679 (lines=3) @@
674
675
		$path = $this->decode($hash);
676
677
		if ($this->convEncOut(!$this->_chmod($this->convEncIn($path), $mode))) {
678
			return $this->setError(elFinder::ERROR_PERM_DENIED, $file['name']);
679
		}
680
681
		$this->clearcache();
682
@@ 3402-3406 (lines=5) @@
3399
			if (!$ret) {
3400
				return $this->setError(elFinder::ERROR_RM, $this->path($stat['hash']));
3401
			}
3402
		} else {
3403
			if ($this->convEncOut(!$this->_unlink($this->convEncIn($path)))) {
3404
				return $this->setError(elFinder::ERROR_RM, $this->path($stat['hash']));
3405
			}
3406
		}
3407
3408
		$this->removed[] = $stat;
3409
		return true;