Code Duplication    Length = 5-5 lines in 2 locations

lib/Ajde/Component/Markdown/markdown.php 2 locations

@@ 773-777 (lines=5) @@
770
            $url = $this->encodeAttribute($url);
771
772
            $result = "<a href=\"$url\"";
773
            if (isset($this->titles[$link_id])) {
774
                $title = $this->titles[$link_id];
775
                $title = $this->encodeAttribute($title);
776
                $result .= " title=\"$title\"";
777
            }
778
779
            $link_text = $this->runSpanGamut($link_text);
780
            $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
        } else {