Code Duplication    Length = 2-2 lines in 2 locations

Sources/Subs.php 2 locations

@@ 2232-2233 (lines=2) @@
2229
				if (!empty($tag['block_level']))
2230
					$whitespace_regex .= '(&nbsp;|\s)*(<br>)?';
2231
				// Trim one line of whitespace after unnested tags, but all of it after nested ones
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]));
@@ 2515-2516 (lines=2) @@
2512
				$whitespace_regex = '';
2513
				if (!empty($tag['block_level']))
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