Code Duplication    Length = 3-3 lines in 2 locations

php/elFinderVolumeDriver.class.php 2 locations

@@ 3369-3371 (lines=3) @@
3366
		if ($srcStat['mime'] == 'directory') {
3367
			$test = $this->stat($this->joinPathCE($dst, $name));
3368
			
3369
			if (($test && $test['mime'] != 'directory') || $this->convEncOut(!$this->_mkdir($this->convEncIn($dst), $this->convEncIn($name)))) {
3370
				return $this->setError(elFinder::ERROR_COPY, $this->path($srcStat['hash']));
3371
			}
3372
			
3373
			$dst = $this->joinPathCE($dst, $name);
3374
			
@@ 3448-3450 (lines=3) @@
3445
		if ($source['mime'] == 'directory') {
3446
			$stat = $this->stat($this->joinPathCE($destination, $name));
3447
			$this->clearcache();
3448
			if ((!$stat || $stat['mime'] != 'directory') && $this->convEncOut(!$this->_mkdir($this->convEncIn($destination), $this->convEncIn($name)))) {
3449
				return $this->setError(elFinder::ERROR_COPY, $errpath);
3450
			}
3451
			
3452
			$path = $this->joinPathCE($destination, $name);
3453