Code Duplication    Length = 2-2 lines in 2 locations

Sources/Subs.php 2 locations

@@ 2042-2043 (lines=2) @@
2039
				// See the comment at the end of the big loop - just eating whitespace ;).
2040
				if (!empty($tag['block_level']) && substr($message, $pos, 4) == '<br>')
2041
					$message = substr($message, 0, $pos) . substr($message, $pos + 4);
2042
				if (!empty($tag['trim']) && $tag['trim'] != 'inside' && preg_match('~(<br>|&nbsp;|\s)*~', substr($message, $pos), $matches) != 0)
2043
					$message = substr($message, 0, $pos) . substr($message, $pos + strlen($matches[0]));
2044
			}
2045
2046
			if (!empty($to_close))
@@ 2317-2318 (lines=2) @@
2314
				// Trim or eat trailing stuff... see comment at the end of the big loop.
2315
				if (!empty($open_tags[$i]['block_level']) && substr($message, $pos, 4) == '<br>')
2316
					$message = substr($message, 0, $pos) . substr($message, $pos + 4);
2317
				if (!empty($open_tags[$i]['trim']) && $tag['trim'] != 'inside' && preg_match('~(<br>|&nbsp;|\s)*~', substr($message, $pos), $matches) != 0)
2318
					$message = substr($message, 0, $pos) . substr($message, $pos + strlen($matches[0]));
2319
2320
				array_pop($open_tags);
2321
			}