Code Duplication    Length = 3-3 lines in 2 locations

php/elFinderVolumeDriver.class.php 2 locations

@@ 3250-3252 (lines=3) @@
3247
		if ($srcStat['mime'] == 'directory') {
3248
			$test = $this->stat($this->joinPathCE($dst, $name));
3249
			
3250
			if (($test && $test['mime'] != 'directory') || $this->convEncOut(!$this->_mkdir($this->convEncIn($dst), $this->convEncIn($name)))) {
3251
				return $this->setError(elFinder::ERROR_COPY, $this->path($srcStat['hash']));
3252
			}
3253
			
3254
			$dst = $this->joinPathCE($dst, $name);
3255
			
@@ 3329-3331 (lines=3) @@
3326
		if ($source['mime'] == 'directory') {
3327
			$stat = $this->stat($this->joinPathCE($destination, $name));
3328
			$this->clearcache();
3329
			if ((!$stat || $stat['mime'] != 'directory') && $this->convEncOut(!$this->_mkdir($this->convEncIn($destination), $this->convEncIn($name)))) {
3330
				return $this->setError(elFinder::ERROR_COPY, $errpath);
3331
			}
3332
			
3333
			$path = $this->joinPathCE($destination, $name);
3334