Code Duplication    Length = 3-3 lines in 3 locations

php/elFinderVolumeDriver.class.php 3 locations

@@ 1466-1468 (lines=3) @@
1463
			return $this->setError(elFinder::ERROR_INVALID_NAME);
1464
		}
1465
		
1466
		if (($dir = $this->dir($dst)) == false) {
1467
			return $this->setError(elFinder::ERROR_TRGDIR_NOT_FOUND, '#'.$dst);
1468
		}
1469
		
1470
		$path = $this->decode($dst);
1471
		
@@ 1585-1587 (lines=3) @@
1582
			return $this->setError(elFinder::ERROR_PERM_DENIED);
1583
		}
1584
		
1585
		if (($dir = $this->dir($dst)) == false) {
1586
			return $this->setError(elFinder::ERROR_TRGDIR_NOT_FOUND, '#'.$dst);
1587
		}
1588
1589
		if (!$dir['write']) {
1590
			return $this->setError(elFinder::ERROR_PERM_DENIED);
@@ 1681-1683 (lines=3) @@
1678
		$name = $file['name'];
1679
		$errpath = $volume->path($file['hash']);
1680
		
1681
		if (($dir = $this->dir($dst)) == false) {
1682
			return $this->setError($err, $errpath, elFinder::ERROR_TRGDIR_NOT_FOUND, '#'.$dst);
1683
		}
1684
		
1685
		if (!$dir['write'] || !$file['read']) {
1686
			return $this->setError($err, $errpath, elFinder::ERROR_PERM_DENIED);