Code Duplication    Length = 4-4 lines in 2 locations

php/elFinderVolumeFTP.class.php 1 location

@@ 1165-1168 (lines=4) @@
1162
		// find symlinks
1163
		$symlinks = $this->_findSymlinks($dir);
1164
		
1165
		if ($symlinks) {
1166
			$this->rmdirRecursive($dir);
1167
			return $this->setError(array_merge($this->error, array(elFinder::ERROR_ARC_SYMLINKS)));
1168
		}
1169
1170
		// check max files size
1171
		if ($this->options['maxArcFilesSize'] > 0 && $this->options['maxArcFilesSize'] < $this->archiveSize) {

php/elFinderVolumeLocalFileSystem.class.php 1 location

@@ 1012-1015 (lines=4) @@
1009
			// find symlinks
1010
			$symlinks = $this->_findSymlinks($dir);
1011
			
1012
			if ($symlinks) {
1013
				$this->delTree($dir);
1014
				return $this->setError(array_merge($this->error, array(elFinder::ERROR_ARC_SYMLINKS)));
1015
			}
1016
1017
			// check max files size
1018
			if ($this->options['maxArcFilesSize'] > 0 && $this->options['maxArcFilesSize'] < $this->archiveSize) {