Code Duplication    Length = 11-11 lines in 2 locations

Sources/Subs.php 2 locations

@@ 2434-2444 (lines=11) @@
2431
		elseif ($tag['type'] == 'unparsed_equals_content')
2432
		{
2433
			// The value may be quoted for some tags - check.
2434
			if (isset($tag['quoted']))
2435
			{
2436
				$quoted = substr($message, $pos1, 6) == '"';
2437
				if ($tag['quoted'] != 'optional' && !$quoted)
2438
					continue;
2439
2440
				if ($quoted)
2441
					$pos1 += 6;
2442
			}
2443
			else
2444
				$quoted = false;
2445
2446
			$pos2 = strpos($message, $quoted == false ? ']' : '"]', $pos1);
2447
			if ($pos2 === false)
@@ 2530-2540 (lines=11) @@
2527
		elseif ($tag['type'] == 'unparsed_equals' || $tag['type'] == 'parsed_equals')
2528
		{
2529
			// The value may be quoted for some tags - check.
2530
			if (isset($tag['quoted']))
2531
			{
2532
				$quoted = substr($message, $pos1, 6) == '"';
2533
				if ($tag['quoted'] != 'optional' && !$quoted)
2534
					continue;
2535
2536
				if ($quoted)
2537
					$pos1 += 6;
2538
			}
2539
			else
2540
				$quoted = false;
2541
2542
			$pos2 = strpos($message, $quoted == false ? ']' : '"]', $pos1);
2543
			if ($pos2 === false)