Code Duplication    Length = 3-3 lines in 2 locations

Michelf/Markdown.php 1 location

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

Michelf/MarkdownExtra.php 1 location

@@ 1120-1122 (lines=3) @@
1117
	 * @return string
1118
	 */
1119
	protected function _doHeaders_callback_setext($matches) {
1120
		if ($matches[3] === '-' && preg_match('{^- }', $matches[1])) {
1121
			return $matches[0];
1122
		}
1123
1124
		$level = $matches[3]{0} === '=' ? 1 : 2;
1125