Code Duplication    Length = 11-12 lines in 2 locations

mod/wet4/start.php 2 locations

@@ 1070-1081 (lines=12) @@
1067
        }
1068
    }
1069
1070
    if($entity->getSubType() == 'file'){
1071
        // download link
1072
		$options = array(
1073
			'name' => 'download',
1074
			'text' => '<i class="fa fa-download fa-lg icon-unsel"><span class="wb-inv">'.$hiddenText['download'].'</span></i>',
1075
			'title' => 'Download File',
1076
			'href' => "file/download/{$entity->getGUID()}",
1077
			'priority' => 300,
1078
		);
1079
		$return[] = \ElggMenuItem::factory($options);
1080
	}
1081
1082
1083
	if ($entity->getSubType() == 'page_top') {
1084
		//history icon
@@ 1083-1093 (lines=11) @@
1080
	}
1081
1082
1083
	if ($entity->getSubType() == 'page_top') {
1084
		//history icon
1085
		$options = array(
1086
			'name' => 'history',
1087
			'text' => '<i class="fa fa-history fa-lg icon-unsel"><span class="wb-inv">' . $hiddenText['history'] . '</span></i>',
1088
			'title'=> elgg_echo('pages:history'),
1089
			'href' => "pages/history/$entity->guid",
1090
			'priority' => 150,
1091
		);
1092
		$return[] = \ElggMenuItem::factory($options);
1093
	}
1094
1095
	//opening and close dicussions
1096
	if (elgg_instanceof($entity, "object", "groupforumtopic") && $entity->canEdit() && elgg_is_active_plugin('group_tools')) {