Code Duplication    Length = 11-11 lines in 2 locations

lib/elFinderVolumeLocalFileSystem.class.php 2 locations

@@ 894-904 (lines=11) @@
891
	 * @return bool
892
	 * @author Dmitry (dio) Levashov
893
	 **/
894
	protected function _copy($source, $targetDir, $name)
895
	{
896
	    $mtime = filemtime($source);
897
	    $target = $this->_joinPath($targetDir, $name);
898
	    if ($ret = copy($source, $target)) {
899
	        isset($this->options['keepTimestamp']['copy']) && $mtime && touch($target, $mtime);
900
	        clearstatcache();
901
	    }
902
903
	    return $ret;
904
	}
905
906
	/**
907
	 * Move file into another parent dir.
@@ 917-927 (lines=11) @@
914
	 * @internal param string $target target dir path
915
	 * @author Dmitry (dio) Levashov
916
	 */
917
	protected function _move($source, $targetDir, $name)
918
	{
919
	    $mtime = filemtime($source);
920
	    $target = $this->_joinPath($targetDir, $name);
921
	    if ($ret = rename($source, $target) ? $target : false) {
922
	        isset($this->options['keepTimestamp']['move']) && $mtime && touch($target, $mtime);
923
	        clearstatcache();
924
	    }
925
926
	    return $ret;
927
	}
928
929
	/**
930
	 * Remove file.