Code Duplication    Length = 3-3 lines in 2 locations

php/elFinderVolumeDriver.class.php 2 locations

@@ 3219-3221 (lines=3) @@
3216
		if ($srcStat['mime'] == 'directory') {
3217
			$test = $this->stat($this->joinPathCE($dst, $name));
3218
			
3219
			if (($test && $test['mime'] != 'directory') || $this->convEncOut(!$this->_mkdir($this->convEncIn($dst), $this->convEncIn($name)))) {
3220
				return $this->setError(elFinder::ERROR_COPY, $this->path($srcStat['hash']));
3221
			}
3222
			
3223
			$dst = $this->joinPathCE($dst, $name);
3224
			
@@ 3298-3300 (lines=3) @@
3295
		if ($source['mime'] == 'directory') {
3296
			$stat = $this->stat($this->joinPathCE($destination, $name));
3297
			$this->clearcache();
3298
			if ((!$stat || $stat['mime'] != 'directory') && $this->convEncOut(!$this->_mkdir($this->convEncIn($destination), $this->convEncIn($name)))) {
3299
				return $this->setError(elFinder::ERROR_COPY, $errpath);
3300
			}
3301
			
3302
			$path = $this->joinPathCE($destination, $name);
3303