Code Duplication    Length = 2-2 lines in 2 locations

Michelf/MarkdownExtra.php 2 locations

@@ 592-593 (lines=2) @@
589
				preg_match('{^</?(?:' . $enclosing_tag_re . ')\b}', $tag))
590
			{
591
				// Increase/decrease nested tag count.
592
				if ($tag{1} == '/')						$depth--;
593
				else if ($tag{strlen($tag)-2} != '/')	$depth++;
594
595
				if ($depth < 0) {
596
					// Going out of parent element. Clean up and break so we
@@ 711-712 (lines=2) @@
708
				// Increase/decrease nested tag count. Only do so if
709
				// the tag's name match base tag's.
710
				if (preg_match('{^</?' . $base_tag_name_re . '\b}', $tag)) {
711
					if ($tag{1} == '/')						$depth--;
712
					else if ($tag{strlen($tag)-2} != '/')	$depth++;
713
				}
714
715
				// Check for `markdown="1"` attribute and handle it.