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

@@ 970-973 (lines=4) @@
967
			// find symlinks
968
			$symlinks = $this->_findSymlinks($dir);
969
			
970
			if ($symlinks) {
971
				$this->delTree($dir);
972
				return $this->setError(array_merge($this->error, array(elFinder::ERROR_ARC_SYMLINKS)));
973
			}
974
975
			// check max files size
976
			if ($this->options['maxArcFilesSize'] > 0 && $this->options['maxArcFilesSize'] < $this->archiveSize) {