Code Duplication    Length = 3-3 lines in 2 locations

php/elFinderVolumeDriver.class.php 2 locations

@@ 3209-3211 (lines=3) @@
3206
		if ($srcStat['mime'] == 'directory') {
3207
			$test = $this->stat($this->joinPathCE($dst, $name));
3208
			
3209
			if (($test && $test['mime'] != 'directory') || $this->convEncOut(!$this->_mkdir($this->convEncIn($dst), $this->convEncIn($name)))) {
3210
				return $this->setError(elFinder::ERROR_COPY, $this->path($srcStat['hash']));
3211
			}
3212
			
3213
			$dst = $this->joinPathCE($dst, $name);
3214
			
@@ 3288-3290 (lines=3) @@
3285
		if ($source['mime'] == 'directory') {
3286
			$stat = $this->stat($this->joinPathCE($destination, $name));
3287
			$this->clearcache();
3288
			if ((!$stat || $stat['mime'] != 'directory') && $this->convEncOut(!$this->_mkdir($this->convEncIn($destination), $this->convEncIn($name)))) {
3289
				return $this->setError(elFinder::ERROR_COPY, $errpath);
3290
			}
3291
			
3292
			$path = $this->joinPathCE($destination, $name);
3293