Code Duplication    Length = 3-3 lines in 3 locations

php/elFinderVolumeDriver.class.php 3 locations

@@ 1434-1436 (lines=3) @@
1431
			return $this->setError(elFinder::ERROR_INVALID_NAME);
1432
		}
1433
		
1434
		if (($dir = $this->dir($dst)) == false) {
1435
			return $this->setError(elFinder::ERROR_TRGDIR_NOT_FOUND, '#'.$dst);
1436
		}
1437
		
1438
		$path = $this->decode($dst);
1439
		
@@ 1553-1555 (lines=3) @@
1550
			return $this->setError(elFinder::ERROR_PERM_DENIED);
1551
		}
1552
		
1553
		if (($dir = $this->dir($dst)) == false) {
1554
			return $this->setError(elFinder::ERROR_TRGDIR_NOT_FOUND, '#'.$dst);
1555
		}
1556
1557
		if (!$dir['write']) {
1558
			return $this->setError(elFinder::ERROR_PERM_DENIED);
@@ 1649-1651 (lines=3) @@
1646
		$name = $file['name'];
1647
		$errpath = $volume->path($file['hash']);
1648
		
1649
		if (($dir = $this->dir($dst)) == false) {
1650
			return $this->setError($err, $errpath, elFinder::ERROR_TRGDIR_NOT_FOUND, '#'.$dst);
1651
		}
1652
		
1653
		if (!$dir['write'] || !$file['read']) {
1654
			return $this->setError($err, $errpath, elFinder::ERROR_PERM_DENIED);