Code Duplication    Length = 2-5 lines in 2 locations

Sources/Subs-Package.php 2 locations

@@ 1137-1141 (lines=5) @@
1134
		$the_version = $_SESSION['version_emulate'];
1135
1136
	// Single package emulation
1137
	if (!empty($_REQUEST['ve']) && !empty($_REQUEST['package']))
1138
	{
1139
		$the_version = $_REQUEST['ve'];
1140
		$_SESSION['single_version_emulate'][$_REQUEST['package']] = $the_version;
1141
	}
1142
	if (!empty($_REQUEST['package']) && (!empty($_SESSION['single_version_emulate'][$_REQUEST['package']])))
1143
		$the_version = $_SESSION['single_version_emulate'][$_REQUEST['package']];
1144
@@ 1142-1143 (lines=2) @@
1139
		$the_version = $_REQUEST['ve'];
1140
		$_SESSION['single_version_emulate'][$_REQUEST['package']] = $the_version;
1141
	}
1142
	if (!empty($_REQUEST['package']) && (!empty($_SESSION['single_version_emulate'][$_REQUEST['package']])))
1143
		$the_version = $_SESSION['single_version_emulate'][$_REQUEST['package']];
1144
1145
	// Get all the versions of this method and find the right one.
1146
	$these_methods = $packageXML->set($method);