Code Duplication    Length = 3-5 lines in 2 locations

php/elFinderVolumeDriver.class.php 2 locations

@@ 719-721 (lines=3) @@
716
717
		$path = $this->decode($hash);
718
719
		if ($this->convEncOut(!$this->_chmod($this->convEncIn($path), $mode))) {
720
			return $this->setError(elFinder::ERROR_PERM_DENIED, $file['name']);
721
		}
722
723
		$this->clearcache();
724
@@ 3559-3563 (lines=5) @@
3556
			if (!$ret) {
3557
				return $this->setError(elFinder::ERROR_RM, $this->path($stat['hash']));
3558
			}
3559
		} else {
3560
			if ($this->convEncOut(!$this->_unlink($this->convEncIn($path)))) {
3561
				return $this->setError(elFinder::ERROR_RM, $this->path($stat['hash']));
3562
			}
3563
		}
3564
3565
		$this->removed[] = $stat;
3566
		return true;