Code Duplication    Length = 5-5 lines in 2 locations

components/Markdown.php 2 locations

@@ 906-910 (lines=5) @@
903
				$url = $this->encodeAttribute( $url );
904
905
				$result = "<a href=\"$url\"";
906
				if ( isset( $this->titles[ $link_id ] ) ) {
907
					$title   = $this->titles[ $link_id ];
908
					$title   = $this->encodeAttribute( $title );
909
					$result .= " title=\"$title\"";
910
				}
911
912
				$link_text = $this->runSpanGamut( $link_text );
913
				$result   .= ">$link_text</a>";
@@ 1032-1036 (lines=5) @@
1029
			if ( isset( $this->urls[ $link_id ] ) ) {
1030
				$url    = $this->encodeAttribute( $this->urls[ $link_id ] );
1031
				$result = "<img src=\"$url\" alt=\"$alt_text\"";
1032
				if ( isset( $this->titles[ $link_id ] ) ) {
1033
					$title   = $this->titles[ $link_id ];
1034
					$title   = $this->encodeAttribute( $title );
1035
					$result .= " title=\"$title\"";
1036
				}
1037
				$result .= $this->empty_element_suffix;
1038
				$result  = $this->hashPart( $result );
1039
			} else {