Code Duplication    Length = 2-2 lines in 2 locations

Sources/Subs.php 2 locations

@@ 2205-2206 (lines=2) @@
2202
				if (!empty($tag['block_level']))
2203
					$whitespace_regex .= '(&nbsp;|\s)*(<br>)?';
2204
				// Trim one line of whitespace after unnested tags, but all of it after nested ones
2205
				if (!empty($tag['trim']) && $tag['trim'] != 'inside')
2206
					$whitespace_regex .= empty($tag['require_parents']) ? '(&nbsp;|\s)*' : '(<br>|&nbsp;|\s)*';
2207
2208
				if (!empty($whitespace_regex) && preg_match('~' . $whitespace_regex . '~', substr($message, $pos), $matches) != 0)
2209
					$message = substr($message, 0, $pos) . substr($message, $pos + strlen($matches[0]));
@@ 2484-2485 (lines=2) @@
2481
				$whitespace_regex = '';
2482
				if (!empty($tag['block_level']))
2483
					$whitespace_regex .= '(&nbsp;|\s)*(<br>)?';
2484
				if (!empty($tag['trim']) && $tag['trim'] != 'inside')
2485
					$whitespace_regex .= empty($tag['require_parents']) ? '(&nbsp;|\s)*' : '(<br>|&nbsp;|\s)*';
2486
				if (!empty($whitespace_regex) && preg_match('~' . $whitespace_regex . '~', substr($message, $pos), $matches) != 0)
2487
					$message = substr($message, 0, $pos) . substr($message, $pos + strlen($matches[0]));
2488