Code Duplication    Length = 3-3 lines in 3 locations

php/elFinderVolumeDriver.class.php 3 locations

@@ 1530-1532 (lines=3) @@
1527
			return $this->setError(elFinder::ERROR_INVALID_NAME);
1528
		}
1529
		
1530
		if (($dir = $this->dir($dst)) == false) {
1531
			return $this->setError(elFinder::ERROR_TRGDIR_NOT_FOUND, '#'.$dst);
1532
		}
1533
		
1534
		$path = $this->decode($dst);
1535
		
@@ 1649-1651 (lines=3) @@
1646
			return $this->setError(elFinder::ERROR_PERM_DENIED);
1647
		}
1648
		
1649
		if (($dir = $this->dir($dst)) == false) {
1650
			return $this->setError(elFinder::ERROR_TRGDIR_NOT_FOUND, '#'.$dst);
1651
		}
1652
1653
		if (!$dir['write']) {
1654
			return $this->setError(elFinder::ERROR_PERM_DENIED);
@@ 1745-1747 (lines=3) @@
1742
		$name = $file['name'];
1743
		$errpath = $volume->path($file['hash']);
1744
		
1745
		if (($dir = $this->dir($dst)) == false) {
1746
			return $this->setError($err, $errpath, elFinder::ERROR_TRGDIR_NOT_FOUND, '#'.$dst);
1747
		}
1748
		
1749
		if (!$dir['write'] || !$file['read']) {
1750
			return $this->setError($err, $errpath, elFinder::ERROR_PERM_DENIED);