Code Duplication    Length = 2-2 lines in 2 locations

Sources/Subs.php 2 locations

@@ 2116-2117 (lines=2) @@
2113
				// See the comment at the end of the big loop - just eating whitespace ;).
2114
				if (!empty($tag['block_level']) && substr($message, $pos, 4) == '<br>')
2115
					$message = substr($message, 0, $pos) . substr($message, $pos + 4);
2116
				if (!empty($tag['trim']) && $tag['trim'] != 'inside' && preg_match('~(<br>|&nbsp;|\s)*~', substr($message, $pos), $matches) != 0)
2117
					$message = substr($message, 0, $pos) . substr($message, $pos + strlen($matches[0]));
2118
			}
2119
2120
			if (!empty($to_close))
@@ 2391-2392 (lines=2) @@
2388
				// Trim or eat trailing stuff... see comment at the end of the big loop.
2389
				if (!empty($open_tags[$i]['block_level']) && substr($message, $pos, 4) == '<br>')
2390
					$message = substr($message, 0, $pos) . substr($message, $pos + 4);
2391
				if (!empty($open_tags[$i]['trim']) && $tag['trim'] != 'inside' && preg_match('~(<br>|&nbsp;|\s)*~', substr($message, $pos), $matches) != 0)
2392
					$message = substr($message, 0, $pos) . substr($message, $pos + strlen($matches[0]));
2393
2394
				array_pop($open_tags);
2395
			}