Code Duplication    Length = 2-2 lines in 2 locations

Sources/Subs.php 2 locations

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