Code Duplication    Length = 2-2 lines in 2 locations

system/vendor/Markdown.php 2 locations

@@ 926-927 (lines=2) @@
923
	}
924
	function _doHeaders_callback_setext($matches) {
925
		# Terrible hack to check we haven't found an empty list item.
926
		if ($matches[2] == '-' && preg_match('{^-(?: |$)}', $matches[1]))
927
			return $matches[0];
928
		
929
		$level = $matches[2]{0} == '=' ? 1 : 2;
930
		$block = "<h$level>".$this->runSpanGamut($matches[1])."</h$level>";
@@ 2261-2262 (lines=2) @@
2258
		return " id=\"$attr\"";
2259
	}
2260
	function _doHeaders_callback_setext($matches) {
2261
		if ($matches[3] == '-' && preg_match('{^- }', $matches[1]))
2262
			return $matches[0];
2263
		$level = $matches[3]{0} == '=' ? 1 : 2;
2264
		$attr  = $this->_doHeaders_attr($id =& $matches[2]);
2265
		$block = "<h$level$attr>".$this->runSpanGamut($matches[1])."</h$level>";