Code Duplication    Length = 6-6 lines in 2 locations

engine/lib/views.php 2 locations

@@ 822-827 (lines=6) @@
819
	);
820
821
	$contents = '';
822
	foreach ($entity_views as $view) {
823
		if (elgg_view_exists($view)) {
824
			$contents = elgg_view($view, $vars, $bypass, $debug);
825
			break;
826
		}
827
	}
828
829
	// Marcus Povey 20090616 : Speculative and low impact approach for fixing #964
830
	if ($vars['full_view']) {
@@ 937-942 (lines=6) @@
934
	);
935
936
	$contents = '';
937
	foreach ($annotation_views as $view) {
938
		if (elgg_view_exists($view)) {
939
			$contents = elgg_view($view, $vars, $bypass, $debug);
940
			break;
941
		}
942
	}
943
944
	return $contents;
945
}