Code Duplication    Length = 11-11 lines in 2 locations

Sources/Subs.php 2 locations

@@ 2561-2571 (lines=11) @@
2558
		elseif ($tag['type'] == 'unparsed_equals_content')
2559
		{
2560
			// The value may be quoted for some tags - check.
2561
			if (isset($tag['quoted']))
2562
			{
2563
				$quoted = substr($message, $pos1, 6) == '"';
2564
				if ($tag['quoted'] != 'optional' && !$quoted)
2565
					continue;
2566
2567
				if ($quoted)
2568
					$pos1 += 6;
2569
			}
2570
			else
2571
				$quoted = false;
2572
2573
			$pos2 = strpos($message, $quoted == false ? ']' : '"]', $pos1);
2574
			if ($pos2 === false)
@@ 2657-2667 (lines=11) @@
2654
		elseif ($tag['type'] == 'unparsed_equals' || $tag['type'] == 'parsed_equals')
2655
		{
2656
			// The value may be quoted for some tags - check.
2657
			if (isset($tag['quoted']))
2658
			{
2659
				$quoted = substr($message, $pos1, 6) == '"';
2660
				if ($tag['quoted'] != 'optional' && !$quoted)
2661
					continue;
2662
2663
				if ($quoted)
2664
					$pos1 += 6;
2665
			}
2666
			else
2667
				$quoted = false;
2668
2669
			$pos2 = strpos($message, $quoted == false ? ']' : '"]', $pos1);
2670
			if ($pos2 === false)