Code Duplication    Length = 3-5 lines in 2 locations

php/elFinderVolumeDriver.class.php 2 locations

@@ 681-683 (lines=3) @@
678
679
		$path = $this->decode($hash);
680
681
		if ($this->convEncOut(!$this->_chmod($this->convEncIn($path), $mode))) {
682
			return $this->setError(elFinder::ERROR_PERM_DENIED, $file['name']);
683
		}
684
685
		$this->clearcache();
686
@@ 3446-3450 (lines=5) @@
3443
			if (!$ret) {
3444
				return $this->setError(elFinder::ERROR_RM, $this->path($stat['hash']));
3445
			}
3446
		} else {
3447
			if ($this->convEncOut(!$this->_unlink($this->convEncIn($path)))) {
3448
				return $this->setError(elFinder::ERROR_RM, $this->path($stat['hash']));
3449
			}
3450
		}
3451
3452
		$this->removed[] = $stat;
3453
		return true;