Code Duplication    Length = 5-5 lines in 4 locations

3pp/php-markdown/Michelf/Markdown.php 4 locations

@@ 599-603 (lines=5) @@
596
			$url = $this->encodeAttribute($url);
597
			
598
			$result = "<a href=\"$url\"";
599
			if ( isset( $this->titles[$link_id] ) ) {
600
				$title = $this->titles[$link_id];
601
				$title = $this->encodeAttribute($title);
602
				$result .=  " title=\"$title\"";
603
			}
604
		
605
			$link_text = $this->runSpanGamut($link_text);
606
			$result .= ">$link_text</a>";
@@ 703-707 (lines=5) @@
700
		if (isset($this->urls[$link_id])) {
701
			$url = $this->encodeAttribute($this->urls[$link_id]);
702
			$result = "<img src=\"$url\" alt=\"$alt_text\"";
703
			if (isset($this->titles[$link_id])) {
704
				$title = $this->titles[$link_id];
705
				$title = $this->encodeAttribute($title);
706
				$result .=  " title=\"$title\"";
707
			}
708
			$result .= $this->empty_element_suffix;
709
			$result = $this->hashPart($result);
710
		}
@@ 2296-2300 (lines=5) @@
2293
			$url = $this->encodeAttribute($url);
2294
			
2295
			$result = "<a href=\"$url\"";
2296
			if ( isset( $this->titles[$link_id] ) ) {
2297
				$title = $this->titles[$link_id];
2298
				$title = $this->encodeAttribute($title);
2299
				$result .=  " title=\"$title\"";
2300
			}
2301
			if (isset($this->ref_attr[$link_id]))
2302
				$result .= $this->ref_attr[$link_id];
2303
		
@@ 2406-2410 (lines=5) @@
2403
		if (isset($this->urls[$link_id])) {
2404
			$url = $this->encodeAttribute($this->urls[$link_id]);
2405
			$result = "<img src=\"$url\" alt=\"$alt_text\"";
2406
			if (isset($this->titles[$link_id])) {
2407
				$title = $this->titles[$link_id];
2408
				$title = $this->encodeAttribute($title);
2409
				$result .=  " title=\"$title\"";
2410
			}
2411
			if (isset($this->ref_attr[$link_id]))
2412
				$result .= $this->ref_attr[$link_id];
2413
			$result .= $this->empty_element_suffix;