Code Duplication    Length = 10-13 lines in 2 locations

_inc/lib/markdown/extra.php 2 locations

@@ 946-958 (lines=13) @@
943
		$marker_space = $matches[3];
944
		$tailing_blank_line =& $matches[5];
945
946
		if ($leading_line || $tailing_blank_line ||
947
			preg_match('/\n{2,}/', $item))
948
		{
949
			# Replace marker with the appropriate whitespace indentation
950
			$item = $leading_space . str_repeat(' ', strlen($marker_space)) . $item;
951
			$item = $this->runBlockGamut($this->outdent($item)."\n");
952
		}
953
		else {
954
			# Recursion for sub-lists:
955
			$item = $this->doLists($this->outdent($item));
956
			$item = preg_replace('/\n+$/', '', $item);
957
			$item = $this->runSpanGamut($item);
958
		}
959
960
		return "<li>" . $item . "</li>\n";
961
	}
@@ 2753-2762 (lines=10) @@
2750
		$marker_space	= $matches[2];
2751
		$def			= $matches[3];
2752
2753
		if ($leading_line || preg_match('/\n{2,}/', $def)) {
2754
			# Replace marker with the appropriate whitespace indentation
2755
			$def = str_repeat(' ', strlen($marker_space)) . $def;
2756
			$def = $this->runBlockGamut($this->outdent($def . "\n\n"));
2757
			$def = "\n". $def ."\n";
2758
		}
2759
		else {
2760
			$def = rtrim($def);
2761
			$def = $this->runSpanGamut($this->outdent($def));
2762
		}
2763
2764
		return "\n<dd>" . $def . "</dd>\n";
2765
	}