Code Duplication    Length = 3-3 lines in 2 locations

php/elFinderVolumeDriver.class.php 2 locations

@@ 3254-3256 (lines=3) @@
3251
		if ($srcStat['mime'] == 'directory') {
3252
			$test = $this->stat($this->joinPathCE($dst, $name));
3253
			
3254
			if (($test && $test['mime'] != 'directory') || $this->convEncOut(!$this->_mkdir($this->convEncIn($dst), $this->convEncIn($name)))) {
3255
				return $this->setError(elFinder::ERROR_COPY, $this->path($srcStat['hash']));
3256
			}
3257
			
3258
			$dst = $this->joinPathCE($dst, $name);
3259
			
@@ 3333-3335 (lines=3) @@
3330
		if ($source['mime'] == 'directory') {
3331
			$stat = $this->stat($this->joinPathCE($destination, $name));
3332
			$this->clearcache();
3333
			if ((!$stat || $stat['mime'] != 'directory') && $this->convEncOut(!$this->_mkdir($this->convEncIn($destination), $this->convEncIn($name)))) {
3334
				return $this->setError(elFinder::ERROR_COPY, $errpath);
3335
			}
3336
			
3337
			$path = $this->joinPathCE($destination, $name);
3338