Code Duplication    Length = 3-3 lines in 2 locations

php/elFinderVolumeDriver.class.php 2 locations

@@ 3233-3235 (lines=3) @@
3230
		if ($srcStat['mime'] == 'directory') {
3231
			$test = $this->stat($this->joinPathCE($dst, $name));
3232
			
3233
			if (($test && $test['mime'] != 'directory') || $this->convEncOut(!$this->_mkdir($this->convEncIn($dst), $this->convEncIn($name)))) {
3234
				return $this->setError(elFinder::ERROR_COPY, $this->path($srcStat['hash']));
3235
			}
3236
			
3237
			$dst = $this->joinPathCE($dst, $name);
3238
			
@@ 3312-3314 (lines=3) @@
3309
		if ($source['mime'] == 'directory') {
3310
			$stat = $this->stat($this->joinPathCE($destination, $name));
3311
			$this->clearcache();
3312
			if ((!$stat || $stat['mime'] != 'directory') && $this->convEncOut(!$this->_mkdir($this->convEncIn($destination), $this->convEncIn($name)))) {
3313
				return $this->setError(elFinder::ERROR_COPY, $errpath);
3314
			}
3315
			
3316
			$path = $this->joinPathCE($destination, $name);
3317