Code Duplication    Length = 11-11 lines in 2 locations

Sources/Subs.php 2 locations

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