Code Duplication    Length = 3-5 lines in 2 locations

php/elFinderVolumeDriver.class.php 2 locations

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