Code Duplication    Length = 11-11 lines in 2 locations

Sources/Subs.php 2 locations

@@ 2269-2279 (lines=11) @@
2266
		elseif ($tag['type'] == 'unparsed_equals_content')
2267
		{
2268
			// The value may be quoted for some tags - check.
2269
			if (isset($tag['quoted']))
2270
			{
2271
				$quoted = substr($message, $pos1, 6) == '"';
2272
				if ($tag['quoted'] != 'optional' && !$quoted)
2273
					continue;
2274
2275
				if ($quoted)
2276
					$pos1 += 6;
2277
			}
2278
			else
2279
				$quoted = false;
2280
2281
			$pos2 = strpos($message, $quoted == false ? ']' : '"]', $pos1);
2282
			if ($pos2 === false)
@@ 2365-2375 (lines=11) @@
2362
		elseif ($tag['type'] == 'unparsed_equals' || $tag['type'] == 'parsed_equals')
2363
		{
2364
			// The value may be quoted for some tags - check.
2365
			if (isset($tag['quoted']))
2366
			{
2367
				$quoted = substr($message, $pos1, 6) == '"';
2368
				if ($tag['quoted'] != 'optional' && !$quoted)
2369
					continue;
2370
2371
				if ($quoted)
2372
					$pos1 += 6;
2373
			}
2374
			else
2375
				$quoted = false;
2376
2377
			$pos2 = strpos($message, $quoted == false ? ']' : '"]', $pos1);
2378
			if ($pos2 === false)