Code Duplication    Length = 11-11 lines in 2 locations

Sources/Subs.php 2 locations

@@ 2547-2557 (lines=11) @@
2544
		elseif ($tag['type'] == 'unparsed_equals_content')
2545
		{
2546
			// The value may be quoted for some tags - check.
2547
			if (isset($tag['quoted']))
2548
			{
2549
				$quoted = substr($message, $pos1, 6) == '"';
2550
				if ($tag['quoted'] != 'optional' && !$quoted)
2551
					continue;
2552
2553
				if ($quoted)
2554
					$pos1 += 6;
2555
			}
2556
			else
2557
				$quoted = false;
2558
2559
			$pos2 = strpos($message, $quoted == false ? ']' : '"]', $pos1);
2560
			if ($pos2 === false)
@@ 2643-2653 (lines=11) @@
2640
		elseif ($tag['type'] == 'unparsed_equals' || $tag['type'] == 'parsed_equals')
2641
		{
2642
			// The value may be quoted for some tags - check.
2643
			if (isset($tag['quoted']))
2644
			{
2645
				$quoted = substr($message, $pos1, 6) == '"';
2646
				if ($tag['quoted'] != 'optional' && !$quoted)
2647
					continue;
2648
2649
				if ($quoted)
2650
					$pos1 += 6;
2651
			}
2652
			else
2653
				$quoted = false;
2654
2655
			$pos2 = strpos($message, $quoted == false ? ']' : '"]', $pos1);
2656
			if ($pos2 === false)