Code Duplication    Length = 11-11 lines in 2 locations

Sources/Subs.php 2 locations

@@ 2448-2458 (lines=11) @@
2445
		elseif ($tag['type'] == 'unparsed_equals_content')
2446
		{
2447
			// The value may be quoted for some tags - check.
2448
			if (isset($tag['quoted']))
2449
			{
2450
				$quoted = substr($message, $pos1, 6) == '"';
2451
				if ($tag['quoted'] != 'optional' && !$quoted)
2452
					continue;
2453
2454
				if ($quoted)
2455
					$pos1 += 6;
2456
			}
2457
			else
2458
				$quoted = false;
2459
2460
			$pos2 = strpos($message, $quoted == false ? ']' : '"]', $pos1);
2461
			if ($pos2 === false)
@@ 2544-2554 (lines=11) @@
2541
		elseif ($tag['type'] == 'unparsed_equals' || $tag['type'] == 'parsed_equals')
2542
		{
2543
			// The value may be quoted for some tags - check.
2544
			if (isset($tag['quoted']))
2545
			{
2546
				$quoted = substr($message, $pos1, 6) == '"';
2547
				if ($tag['quoted'] != 'optional' && !$quoted)
2548
					continue;
2549
2550
				if ($quoted)
2551
					$pos1 += 6;
2552
			}
2553
			else
2554
				$quoted = false;
2555
2556
			$pos2 = strpos($message, $quoted == false ? ']' : '"]', $pos1);
2557
			if ($pos2 === false)