Code Duplication    Length = 11-11 lines in 2 locations

vendors/markdown/markdown.php 2 locations

@@ 2083-2093 (lines=11) @@
2080
				# Fenced code block marker: find matching end marker.
2081
				$fence_indent = strlen($capture[1]); # use captured indent in re
2082
				$fence_re = $capture[2]; # use captured fence in re
2083
				if (preg_match('{^(?>.*\n)*?[ ]{'.($fence_indent).'}'.$fence_re.'[ ]*(?:\n|$)}', $text,
2084
					$matches)) 
2085
				{
2086
					# End marker found: pass text unchanged until marker.
2087
					$parsed .= $tag . $matches[0];
2088
					$text = substr($text, strlen($matches[0]));
2089
				}
2090
				else {
2091
					# No end marker: just skip it.
2092
					$parsed .= $tag;
2093
				}
2094
			}
2095
			#
2096
			# Check for: Indented code block.
@@ 2110-2120 (lines=11) @@
2107
			else if ($tag{0} == "`") {
2108
				# Find corresponding end marker.
2109
				$tag_re = preg_quote($tag);
2110
				if (preg_match('{^(?>.+?|\n(?!\n))*?(?<!`)'.$tag_re.'(?!`)}',
2111
					$text, $matches))
2112
				{
2113
					# End marker found: pass text unchanged until marker.
2114
					$parsed .= $tag . $matches[0];
2115
					$text = substr($text, strlen($matches[0]));
2116
				}
2117
				else {
2118
					# Unmatched marker: just skip it.
2119
					$parsed .= $tag;
2120
				}
2121
			}
2122
			#
2123
			# Check for: Opening Block level tag or