Code Duplication    Length = 11-11 lines in 2 locations

php/elFinderVolumeLocalFileSystem.class.php 2 locations

@@ 694-704 (lines=11) @@
691
	 * @return string|bool
692
	 * @author Dmitry (dio) Levashov
693
	 **/
694
	protected function _mkdir($path, $name) {
695
		$path = $this->_joinPath($path, $name);
696
697
		if (@mkdir($path)) {
698
			@chmod($path, $this->options['dirMode']);
699
			clearstatcache();
700
			return $path;
701
		}
702
703
		return false;
704
	}
705
	
706
	/**
707
	 * Create file and return it's path or false on failed
@@ 714-724 (lines=11) @@
711
	 * @return string|bool
712
	 * @author Dmitry (dio) Levashov
713
	 **/
714
	protected function _mkfile($path, $name) {
715
		$path = $this->_joinPath($path, $name);
716
		
717
		if (($fp = @fopen($path, 'w'))) {
718
			@fclose($fp);
719
			@chmod($path, $this->options['fileMode']);
720
			clearstatcache();
721
			return $path;
722
		}
723
		return false;
724
	}
725
	
726
	/**
727
	 * Create symlink