Code Duplication    Length = 11-12 lines in 2 locations

mod/wet4/start.php 2 locations

@@ 1013-1024 (lines=12) @@
1010
        }
1011
    }
1012
1013
    if($entity->getSubType() == 'file'){
1014
        // download link
1015
		$options = array(
1016
			'name' => 'download',
1017
			'text' => '<i class="fa fa-download fa-lg icon-unsel"><span class="wb-inv">'.$hiddenText['download'].'</span></i>',
1018
			'title' => 'Download File',
1019
			'href' => "file/download/{$entity->getGUID()}",
1020
			'priority' => 300,
1021
		);
1022
		$return[] = \ElggMenuItem::factory($options);
1023
	}
1024
1025
1026
	if ($entity->getSubType() == 'page_top') {
1027
		//history icon
@@ 1026-1036 (lines=11) @@
1023
	}
1024
1025
1026
	if ($entity->getSubType() == 'page_top') {
1027
		//history icon
1028
		$options = array(
1029
			'name' => 'history',
1030
			'text' => '<i class="fa fa-history fa-lg icon-unsel"><span class="wb-inv">' . $hiddenText['history'] . '</span></i>',
1031
			'title'=> elgg_echo('pages:history'),
1032
			'href' => "pages/history/$entity->guid",
1033
			'priority' => 150,
1034
		);
1035
		$return[] = \ElggMenuItem::factory($options);
1036
	}
1037
1038
	//opening and close dicussions
1039
	if (elgg_instanceof($entity, "object", "groupforumtopic") && $entity->canEdit() && elgg_is_active_plugin('group_tools')) {