Code Duplication    Length = 5-5 lines in 2 locations

lib/modules/mod_cacherss.php 1 location

@@ 213-217 (lines=5) @@
210
			$rss_data = $this->xmldata;
211
			// $this->xmldata = false;
212
213
			if (!xml_parse($this->parser, $rss_data, $eof)) {
214
				$this->error = sprintf("XML error: %s at line %d",
215
					xml_error_string(xml_get_error_code($this->parser)),
216
					xml_get_current_line_number($this->parser));
217
			}
218
		}
219
		return $this->rss_items[0];
220
	}

lib/modules/mod_rss.php 1 location

@@ 263-267 (lines=5) @@
260
						$rss_data = str_replace ( $this->xml_enc,'<?xml version="1.0" encoding="utf-8"?>', $encoded_source);
261
					}
262
*/
263
					if (!xml_parse($this->parser, $rss_data, $eof)) {
264
						$this->error = sprintf("XML error: %s at line %d",
265
							xml_error_string(xml_get_error_code($this->parser)),
266
								xml_get_current_line_number($this->parser));
267
					}
268
				} while (!$this->error && !$eof && !count($this->rss_items));
269
			}
270
			return $this->rss_items[0];