Code Duplication    Length = 10-13 lines in 2 locations

app/Plugin/Markitup/Vendor/parser/markdown/markdown.php 2 locations

@@ 1084-1096 (lines=13) @@
1081
		$marker_space = $matches[3];
1082
		$tailing_blank_line =& $matches[5];
1083
1084
		if ($leading_line || $tailing_blank_line ||
1085
			preg_match('/\n{2,}/', $item))
1086
		{
1087
			# Replace marker with the appropriate whitespace indentation
1088
			$item = $leading_space . str_repeat(' ', strlen($marker_space)) . $item;
1089
			$item = $this->runBlockGamut($this->outdent($item)."\n");
1090
		}
1091
		else {
1092
			# Recursion for sub-lists:
1093
			$item = $this->doLists($this->outdent($item));
1094
			$item = preg_replace('/\n+$/', '', $item);
1095
			$item = $this->runSpanGamut($item);
1096
		}
1097
1098
		return "<li>" . $item . "</li>\n";
1099
	}
@@ 2524-2533 (lines=10) @@
2521
		$marker_space	= $matches[2];
2522
		$def			= $matches[3];
2523
2524
		if ($leading_line || preg_match('/\n{2,}/', $def)) {
2525
			# Replace marker with the appropriate whitespace indentation
2526
			$def = str_repeat(' ', strlen($marker_space)) . $def;
2527
			$def = $this->runBlockGamut($this->outdent($def . "\n\n"));
2528
			$def = "\n". $def ."\n";
2529
		}
2530
		else {
2531
			$def = rtrim($def);
2532
			$def = $this->runSpanGamut($this->outdent($def));
2533
		}
2534
2535
		return "\n<dd>" . $def . "</dd>\n";
2536
	}