Code Duplication    Length = 2-2 lines in 2 locations

lib/markdown/markdown_extras.php 2 locations

@@ 357-358 (lines=2) @@
354
				#
355
				# Increase/decrease nested tag count.
356
				#
357
				if ($tag{1} == '/')						$depth--;
358
				else if ($tag{strlen($tag)-2} != '/')	$depth++;
359
360
				if ($depth < 0) {
361
					#
@@ 485-486 (lines=2) @@
482
				# the tag's name match base tag's.
483
				#
484
				if (preg_match('{^</?'.$base_tag_name_re.'\b}', $tag)) {
485
					if ($tag{1} == '/')						$depth--;
486
					else if ($tag{strlen($tag)-2} != '/')	$depth++;
487
				}
488
489
				#