Code Duplication    Length = 3-3 lines in 2 locations

Michelf/Markdown.php 1 location

@@ 951-953 (lines=3) @@
948
	 */
949
	protected function _doHeaders_callback_setext($matches) {
950
		// Terrible hack to check we haven't found an empty list item.
951
		if ($matches[2] == '-' && preg_match('{^-(?: |$)}', $matches[1])) {
952
			return $matches[0];
953
		}
954
955
		$level = $matches[2]{0} == '=' ? 1 : 2;
956

Michelf/MarkdownExtra.php 1 location

@@ 1095-1097 (lines=3) @@
1092
	 * @return string
1093
	 */
1094
	protected function _doHeaders_callback_setext($matches) {
1095
		if ($matches[3] == '-' && preg_match('{^- }', $matches[1])) {
1096
			return $matches[0];
1097
		}
1098
1099
		$level = $matches[3]{0} == '=' ? 1 : 2;
1100