Code Duplication    Length = 7-7 lines in 2 locations

mod/cp_notifications/start.php 2 locations

@@ 1084-1090 (lines=7) @@
1081
		case 'single_zip_file_upload':
1082
1083
			$entity = get_entity($object['forward_guid']);
1084
			if (elgg_instanceof('group', $entity)) {
1085
				$file_forward_url = elgg_get_site_entity()->getURL()."file/group/{$object['forward_guid']}/all";
1086
			} elseif (elgg_instanceof('user', $entity)) {
1087
				$file_forward_url = elgg_get_site_entity()->getURL()."file/owner/{$entity->username}";
1088
			} else {
1089
				$file_forward_url = $entity->getURL();
1090
			}
1091
1092
			$to_recipients = get_subscribers($dbprefix, elgg_get_logged_in_user_guid(), $entity->getGUID());
1093
			$to_recipients_site = get_site_subscribers($dbprefix, elgg_get_logged_in_user_guid(), $entity->getGUID());
@@ 1117-1123 (lines=7) @@
1114
		case 'multi_file_upload':
1115
1116
			$entity = get_entity($object['forward_guid']);
1117
			if (elgg_instanceof('group', $entity)) {
1118
				$file_forward_url = elgg_get_site_entity()->getURL()."file/group/{$object['forward_guid']}/all";
1119
			} elseif (elgg_instanceof('user', $entity)) {
1120
				$file_forward_url = elgg_get_site_entity()->getURL()."file/owner/{$entity->username}";
1121
			} else {
1122
				$file_forward_url = $entity->getURL();
1123
			}
1124
1125
			$author = elgg_get_logged_in_user_entity();
1126
			$to_recipients = get_subscribers($dbprefix, elgg_get_logged_in_user_guid(), $entity->getGUID());