Code Duplication    Length = 10-13 lines in 2 locations

vendors/markdown/markdown.php 2 locations

@@ 1099-1111 (lines=13) @@
1096
		$marker_space = $matches[3];
1097
		$tailing_blank_line =& $matches[5];
1098
1099
		if ($leading_line || $tailing_blank_line || 
1100
			preg_match('/\n{2,}/', $item))
1101
		{
1102
			# Replace marker with the appropriate whitespace indentation
1103
			$item = $leading_space . str_repeat(' ', strlen($marker_space)) . $item;
1104
			$item = $this->runBlockGamut($this->outdent($item)."\n");
1105
		}
1106
		else {
1107
			# Recursion for sub-lists:
1108
			$item = $this->doLists($this->outdent($item));
1109
			$item = preg_replace('/\n+$/', '', $item);
1110
			$item = $this->runSpanGamut($item);
1111
		}
1112
1113
		return "<li>" . $item . "</li>\n";
1114
	}
@@ 2906-2915 (lines=10) @@
2903
		$marker_space	= $matches[2];
2904
		$def			= $matches[3];
2905
2906
		if ($leading_line || preg_match('/\n{2,}/', $def)) {
2907
			# Replace marker with the appropriate whitespace indentation
2908
			$def = str_repeat(' ', strlen($marker_space)) . $def;
2909
			$def = $this->runBlockGamut($this->outdent($def . "\n\n"));
2910
			$def = "\n". $def ."\n";
2911
		}
2912
		else {
2913
			$def = rtrim($def);
2914
			$def = $this->runSpanGamut($this->outdent($def));
2915
		}
2916
2917
		return "\n<dd>" . $def . "</dd>\n";
2918
	}