Code Duplication    Length = 9-10 lines in 2 locations

engine/lib/deprecated-1.7.php 2 locations

@@ 586-595 (lines=10) @@
583
 * @return string The list in a form suitable to display
584
 * @deprecated 1.7
585
 */
586
function list_group_search($tag, $limit = 10) {
587
	elgg_deprecated_notice('list_group_search() was deprecated by new search plugin.', 1.7);
588
	$offset = (int) get_input('offset');
589
	$limit = (int) $limit;
590
	$count = (int) search_for_group($tag, 10, 0, '', true);
591
	$entities = search_for_group($tag, $limit, $offset);
592
593
	return elgg_view_entity_list($entities, $count, $offset, $limit, true, false);
594
595
}
596
597
/**
598
 * Return a list of entities based on the given search criteria.
@@ 1026-1034 (lines=9) @@
1023
 *
1024
 * @deprecated 1.7
1025
 */
1026
function list_user_search($tag, $limit = 10) {
1027
	elgg_deprecated_notice('list_user_search() deprecated by new search', 1.7);
1028
	$offset = (int) get_input('offset');
1029
	$limit = (int) $limit;
1030
	$count = (int) search_for_user($tag, 10, 0, '', true);
1031
	$entities = search_for_user($tag, $limit, $offset);
1032
1033
	return elgg_view_entity_list($entities, $count, $offset, $limit, true, false);
1034
}
1035
1036
/**
1037
 * Returns a formatted list of users suitable for injecting into search.