Code Duplication    Length = 2-2 lines in 2 locations

Sources/Subs.php 2 locations

@@ 1956-1957 (lines=2) @@
1953
				// See the comment at the end of the big loop - just eating whitespace ;).
1954
				if (!empty($tag['block_level']) && substr($message, $pos, 4) == '<br>')
1955
					$message = substr($message, 0, $pos) . substr($message, $pos + 4);
1956
				if (!empty($tag['trim']) && $tag['trim'] != 'inside' && preg_match('~(<br>|&nbsp;|\s)*~', substr($message, $pos), $matches) != 0)
1957
					$message = substr($message, 0, $pos) . substr($message, $pos + strlen($matches[0]));
1958
			}
1959
1960
			if (!empty($to_close))
@@ 2228-2229 (lines=2) @@
2225
				// Trim or eat trailing stuff... see comment at the end of the big loop.
2226
				if (!empty($open_tags[$i]['block_level']) && substr($message, $pos, 4) == '<br>')
2227
					$message = substr($message, 0, $pos) . substr($message, $pos + 4);
2228
				if (!empty($open_tags[$i]['trim']) && $tag['trim'] != 'inside' && preg_match('~(<br>|&nbsp;|\s)*~', substr($message, $pos), $matches) != 0)
2229
					$message = substr($message, 0, $pos) . substr($message, $pos + strlen($matches[0]));
2230
2231
				array_pop($open_tags);
2232
			}