Code Duplication    Length = 3-3 lines in 2 locations

engine/lib/river.php 2 locations

@@ 205-207 (lines=3) @@
202
	$wheres[] = _elgg_get_river_type_subtype_where_sql('rv', $options['types'],
203
		$options['subtypes'], $options['type_subtype_pairs']);
204
205
	if ($options['posted_time_lower'] && is_int($options['posted_time_lower'])) {
206
		$wheres[] = "rv.posted >= {$options['posted_time_lower']}";
207
	}
208
209
	if ($options['posted_time_upper'] && is_int($options['posted_time_upper'])) {
210
		$wheres[] = "rv.posted <= {$options['posted_time_upper']}";
@@ 337-339 (lines=3) @@
334
	$wheres[] = _elgg_get_river_type_subtype_where_sql('rv', $options['types'],
335
		$options['subtypes'], $options['type_subtype_pairs']);
336
337
	if ($options['posted_time_lower'] && is_int($options['posted_time_lower'])) {
338
		$wheres[] = "rv.posted >= {$options['posted_time_lower']}";
339
	}
340
341
	if ($options['posted_time_upper'] && is_int($options['posted_time_upper'])) {
342
		$wheres[] = "rv.posted <= {$options['posted_time_upper']}";