Code Duplication    Length = 11-11 lines in 2 locations

Sources/Subs.php 2 locations

@@ 2527-2537 (lines=11) @@
2524
		elseif ($tag['type'] == 'unparsed_equals_content')
2525
		{
2526
			// The value may be quoted for some tags - check.
2527
			if (isset($tag['quoted']))
2528
			{
2529
				$quoted = substr($message, $pos1, 6) == '"';
2530
				if ($tag['quoted'] != 'optional' && !$quoted)
2531
					continue;
2532
2533
				if ($quoted)
2534
					$pos1 += 6;
2535
			}
2536
			else
2537
				$quoted = false;
2538
2539
			$pos2 = strpos($message, $quoted == false ? ']' : '"]', $pos1);
2540
			if ($pos2 === false)
@@ 2623-2633 (lines=11) @@
2620
		elseif ($tag['type'] == 'unparsed_equals' || $tag['type'] == 'parsed_equals')
2621
		{
2622
			// The value may be quoted for some tags - check.
2623
			if (isset($tag['quoted']))
2624
			{
2625
				$quoted = substr($message, $pos1, 6) == '"';
2626
				if ($tag['quoted'] != 'optional' && !$quoted)
2627
					continue;
2628
2629
				if ($quoted)
2630
					$pos1 += 6;
2631
			}
2632
			else
2633
				$quoted = false;
2634
2635
			$pos2 = strpos($message, $quoted == false ? ']' : '"]', $pos1);
2636
			if ($pos2 === false)