Code Duplication    Length = 3-3 lines in 2 locations

php/elFinderVolumeDriver.class.php 2 locations

@@ 3264-3266 (lines=3) @@
3261
		if ($srcStat['mime'] == 'directory') {
3262
			$test = $this->stat($this->joinPathCE($dst, $name));
3263
			
3264
			if (($test && $test['mime'] != 'directory') || $this->convEncOut(!$this->_mkdir($this->convEncIn($dst), $this->convEncIn($name)))) {
3265
				return $this->setError(elFinder::ERROR_COPY, $this->path($srcStat['hash']));
3266
			}
3267
			
3268
			$dst = $this->joinPathCE($dst, $name);
3269
			
@@ 3343-3345 (lines=3) @@
3340
		if ($source['mime'] == 'directory') {
3341
			$stat = $this->stat($this->joinPathCE($destination, $name));
3342
			$this->clearcache();
3343
			if ((!$stat || $stat['mime'] != 'directory') && $this->convEncOut(!$this->_mkdir($this->convEncIn($destination), $this->convEncIn($name)))) {
3344
				return $this->setError(elFinder::ERROR_COPY, $errpath);
3345
			}
3346
			
3347
			$path = $this->joinPathCE($destination, $name);
3348