Code Duplication    Length = 3-3 lines in 2 locations

Michelf/Markdown.php 1 location

@@ 958-960 (lines=3) @@
955
	 */
956
	protected function _doHeaders_callback_setext($matches) {
957
		// Terrible hack to check we haven't found an empty list item.
958
		if ($matches[2] == '-' && preg_match('{^-(?: |$)}', $matches[1])) {
959
			return $matches[0];
960
		}
961
962
		$level = $matches[2][0] == '=' ? 1 : 2;
963

Michelf/MarkdownExtra.php 1 location

@@ 1134-1136 (lines=3) @@
1131
	 * @return string
1132
	 */
1133
	protected function _doHeaders_callback_setext($matches) {
1134
		if ($matches[3] === '-' && preg_match('{^- }', $matches[1])) {
1135
			return $matches[0];
1136
		}
1137
1138
		$level = $matches[3][0] === '=' ? 1 : 2;
1139