Code Duplication    Length = 5-5 lines in 2 locations

components/Markdown.php 2 locations

@@ 751-755 (lines=5) @@
748
			$url = $this->encodeAttribute($url);
749
750
			$result = "<a href=\"$url\"";
751
			if ( isset( $this->titles[$link_id] ) ) {
752
				$title = $this->titles[$link_id];
753
				$title = $this->encodeAttribute($title);
754
				$result .=  " title=\"$title\"";
755
			}
756
757
			$link_text = $this->runSpanGamut($link_text);
758
			$result .= ">$link_text</a>";
@@ 855-859 (lines=5) @@
852
		if (isset($this->urls[$link_id])) {
853
			$url = $this->encodeAttribute($this->urls[$link_id]);
854
			$result = "<img src=\"$url\" alt=\"$alt_text\"";
855
			if (isset($this->titles[$link_id])) {
856
				$title = $this->titles[$link_id];
857
				$title = $this->encodeAttribute($title);
858
				$result .=  " title=\"$title\"";
859
			}
860
			$result .= $this->empty_element_suffix;
861
			$result = $this->hashPart($result);
862
		}