Code Duplication    Length = 3-3 lines in 3 locations

php/elFinderVolumeDriver.class.php 3 locations

@@ 1482-1484 (lines=3) @@
1479
			return $this->setError(elFinder::ERROR_INVALID_NAME);
1480
		}
1481
		
1482
		if (($dir = $this->dir($dst)) == false) {
1483
			return $this->setError(elFinder::ERROR_TRGDIR_NOT_FOUND, '#'.$dst);
1484
		}
1485
		
1486
		$path = $this->decode($dst);
1487
		
@@ 1601-1603 (lines=3) @@
1598
			return $this->setError(elFinder::ERROR_PERM_DENIED);
1599
		}
1600
		
1601
		if (($dir = $this->dir($dst)) == false) {
1602
			return $this->setError(elFinder::ERROR_TRGDIR_NOT_FOUND, '#'.$dst);
1603
		}
1604
1605
		if (!$dir['write']) {
1606
			return $this->setError(elFinder::ERROR_PERM_DENIED);
@@ 1697-1699 (lines=3) @@
1694
		$name = $file['name'];
1695
		$errpath = $volume->path($file['hash']);
1696
		
1697
		if (($dir = $this->dir($dst)) == false) {
1698
			return $this->setError($err, $errpath, elFinder::ERROR_TRGDIR_NOT_FOUND, '#'.$dst);
1699
		}
1700
		
1701
		if (!$dir['write'] || !$file['read']) {
1702
			return $this->setError($err, $errpath, elFinder::ERROR_PERM_DENIED);