Code Duplication    Length = 11-11 lines in 2 locations

_inc/lib/markdown/extra.php 2 locations

@@ 1943-1953 (lines=11) @@
1940
				# Fenced code block marker: find matching end marker.
1941
				$fence_indent = strlen($capture[1]); # use captured indent in re
1942
				$fence_re = $capture[2]; # use captured fence in re
1943
				if (preg_match('{^(?>.*\n)*?[ ]{'.($fence_indent).'}'.$fence_re.'[ ]*(?:\n|$)}', $text,
1944
					$matches))
1945
				{
1946
					# End marker found: pass text unchanged until marker.
1947
					$parsed .= $tag . $matches[0];
1948
					$text = substr($text, strlen($matches[0]));
1949
				}
1950
				else {
1951
					# No end marker: just skip it.
1952
					$parsed .= $tag;
1953
				}
1954
			}
1955
			#
1956
			# Check for: Indented code block.
@@ 1970-1980 (lines=11) @@
1967
			else if ($tag{0} == "`") {
1968
				# Find corresponding end marker.
1969
				$tag_re = preg_quote($tag);
1970
				if (preg_match('{^(?>.+?|\n(?!\n))*?(?<!`)'.$tag_re.'(?!`)}',
1971
					$text, $matches))
1972
				{
1973
					# End marker found: pass text unchanged until marker.
1974
					$parsed .= $tag . $matches[0];
1975
					$text = substr($text, strlen($matches[0]));
1976
				}
1977
				else {
1978
					# Unmatched marker: just skip it.
1979
					$parsed .= $tag;
1980
				}
1981
			}
1982
			#
1983
			# Check for: Opening Block level tag or