Code Duplication    Length = 3-3 lines in 2 locations

php/elFinderVolumeDriver.class.php 2 locations

@@ 3304-3306 (lines=3) @@
3301
		if ($srcStat['mime'] == 'directory') {
3302
			$test = $this->stat($this->joinPathCE($dst, $name));
3303
			
3304
			if (($test && $test['mime'] != 'directory') || $this->convEncOut(!$this->_mkdir($this->convEncIn($dst), $this->convEncIn($name)))) {
3305
				return $this->setError(elFinder::ERROR_COPY, $this->path($srcStat['hash']));
3306
			}
3307
			
3308
			$dst = $this->joinPathCE($dst, $name);
3309
			
@@ 3383-3385 (lines=3) @@
3380
		if ($source['mime'] == 'directory') {
3381
			$stat = $this->stat($this->joinPathCE($destination, $name));
3382
			$this->clearcache();
3383
			if ((!$stat || $stat['mime'] != 'directory') && $this->convEncOut(!$this->_mkdir($this->convEncIn($destination), $this->convEncIn($name)))) {
3384
				return $this->setError(elFinder::ERROR_COPY, $errpath);
3385
			}
3386
			
3387
			$path = $this->joinPathCE($destination, $name);
3388