Code Duplication    Length = 2-2 lines in 2 locations

Sources/Subs.php 2 locations

@@ 2234-2235 (lines=2) @@
2231
				if (!empty($tag['trim']) && $tag['trim'] != 'inside')
2232
					$whitespace_regex .= empty($tag['require_parents']) ? '(&nbsp;|\s)*' : '(<br>|&nbsp;|\s)*';
2233
2234
				if (!empty($whitespace_regex) && preg_match('~' . $whitespace_regex . '~', substr($message, $pos), $matches) != 0)
2235
					$message = substr($message, 0, $pos) . substr($message, $pos + strlen($matches[0]));
2236
			}
2237
2238
			if (!empty($to_close))
@@ 2516-2517 (lines=2) @@
2513
					$whitespace_regex .= '(&nbsp;|\s)*(<br>)?';
2514
				if (!empty($tag['trim']) && $tag['trim'] != 'inside')
2515
					$whitespace_regex .= empty($tag['require_parents']) ? '(&nbsp;|\s)*' : '(<br>|&nbsp;|\s)*';
2516
				if (!empty($whitespace_regex) && preg_match('~' . $whitespace_regex . '~', substr($message, $pos), $matches) != 0)
2517
					$message = substr($message, 0, $pos) . substr($message, $pos + strlen($matches[0]));
2518
2519
				array_pop($open_tags);
2520
			}