Code Duplication    Length = 5-5 lines in 2 locations

lib/markdown/markdown.php 2 locations

@@ 777-781 (lines=5) @@
774
			$url = $this->encodeAttribute($url);
775
776
			$result = "<a href=\"$url\"";
777
			if ( isset( $this->titles[$link_id] ) ) {
778
				$title = $this->titles[$link_id];
779
				$title = $this->encodeAttribute($title);
780
				$result .=  " title=\"$title\"";
781
			}
782
783
			$link_text = $this->runSpanGamut($link_text);
784
			$result .= ">$link_text</a>";
@@ 881-885 (lines=5) @@
878
		if (isset($this->urls[$link_id])) {
879
			$url = $this->encodeAttribute($this->urls[$link_id]);
880
			$result = "<img src=\"$url\" alt=\"$alt_text\"";
881
			if (isset($this->titles[$link_id])) {
882
				$title = $this->titles[$link_id];
883
				$title = $this->encodeAttribute($title);
884
				$result .=  " title=\"$title\"";
885
			}
886
			$result .= $this->empty_element_suffix;
887
			$result = $this->hashPart($result);
888
		}