Code Duplication    Length = 2-2 lines in 2 locations

Sources/Subs.php 2 locations

@@ 2141-2142 (lines=2) @@
2138
				if (!empty($tag['trim']) && $tag['trim'] != 'inside')
2139
					$whitespace_regex .= empty($tag['require_parents']) ? '(&nbsp;|\s)*' : '(<br>|&nbsp;|\s)*';
2140
2141
				if (!empty($whitespace_regex) && preg_match('~' . $whitespace_regex . '~', substr($message, $pos), $matches) != 0)
2142
					$message = substr($message, 0, $pos) . substr($message, $pos + strlen($matches[0]));
2143
			}
2144
2145
			if (!empty($to_close))
@@ 2419-2420 (lines=2) @@
2416
					$whitespace_regex .= '(&nbsp;|\s)*<br>';
2417
				if (!empty($tag['trim']) && $tag['trim'] != 'inside')
2418
					$whitespace_regex .= empty($tag['require_parents']) ? '(&nbsp;|\s)*' : '(<br>|&nbsp;|\s)*';
2419
				if (!empty($whitespace_regex) && preg_match('~' . $whitespace_regex . '~', substr($message, $pos), $matches) != 0)
2420
					$message = substr($message, 0, $pos) . substr($message, $pos + strlen($matches[0]));
2421
2422
				array_pop($open_tags);
2423
			}