Code Duplication    Length = 4-4 lines in 2 locations

engine/lib/entities.php 2 locations

@@ 610-613 (lines=4) @@
607
	$options = array_merge($defaults, $options);
608
609
	// backward compatibility
610
	if (isset($options['view_type_toggle'])) {
611
		elgg_deprecated_notice("Option 'view_type_toggle' deprecated by 'list_type_toggle' in elgg_list* functions", 1.9);
612
		$options['list_type_toggle'] = $options['view_type_toggle'];
613
	}
614
615
	$options['count'] = true;
616
	$count = call_user_func($getter, $options);
@@ 872-875 (lines=4) @@
869
	$options = array_merge($defaults, $options);
870
871
	// backward compatibility
872
	if (isset($options['view_type_toggle'])) {
873
		elgg_deprecated_notice("Option 'view_type_toggle' deprecated by 'list_type_toggle' in elgg_list* functions", 1.9);
874
		$options['list_type_toggle'] = $options['view_type_toggle'];
875
	}
876
877
	$types = get_registered_entity_types();
878