Code Duplication    Length = 2-2 lines in 2 locations

sources/Subs.php 2 locations

@@ 1172-1173 (lines=2) @@
1169
		{
1170
			if ($ip_parts[$i] == '*')
1171
				$ip_array[$i] = array('low' => '0', 'high' => hexdec('ffff'));
1172
			elseif (preg_match('/^([0-9A-Fa-f]{1,4})\-([0-9A-Fa-f]{1,4})$/', $ip_parts[$i], $range) == 1)
1173
				$ip_array[$i] = array('low' => hexdec($range[1]), 'high' => hexdec($range[2]));
1174
			elseif (is_numeric(hexdec($ip_parts[$i])))
1175
				$ip_array[$i] = array('low' => hexdec($ip_parts[$i]), 'high' => hexdec($ip_parts[$i]));
1176
		}
@@ 1195-1196 (lines=2) @@
1192
	{
1193
		if ($ip_parts[$i] == '*')
1194
			$ip_array[$i] = array('low' => '0', 'high' => '255');
1195
		elseif (preg_match('/^(\d{1,3})\-(\d{1,3})$/', $ip_parts[$i], $range) == 1)
1196
			$ip_array[$i] = array('low' => $range[1], 'high' => $range[2]);
1197
		elseif (is_numeric($ip_parts[$i]))
1198
			$ip_array[$i] = array('low' => $ip_parts[$i], 'high' => $ip_parts[$i]);
1199
	}