Code Duplication    Length = 5-5 lines in 4 locations

vendors/markdown/markdown.php 4 locations

@@ 776-780 (lines=5) @@
773
			$url = $this->encodeAttribute($url);
774
			
775
			$result = "<a href=\"$url\"";
776
			if ( isset( $this->titles[$link_id] ) ) {
777
				$title = $this->titles[$link_id];
778
				$title = $this->encodeAttribute($title);
779
				$result .=  " title=\"$title\"";
780
			}
781
		
782
			$link_text = $this->runSpanGamut($link_text);
783
			$result .= ">$link_text</a>";
@@ 880-884 (lines=5) @@
877
		if (isset($this->urls[$link_id])) {
878
			$url = $this->encodeAttribute($this->urls[$link_id]);
879
			$result = "<img src=\"$url\" alt=\"$alt_text\"";
880
			if (isset($this->titles[$link_id])) {
881
				$title = $this->titles[$link_id];
882
				$title = $this->encodeAttribute($title);
883
				$result .=  " title=\"$title\"";
884
			}
885
			$result .= $this->empty_element_suffix;
886
			$result = $this->hashPart($result);
887
		}
@@ 2460-2464 (lines=5) @@
2457
			$url = $this->encodeAttribute($url);
2458
			
2459
			$result = "<a href=\"$url\"";
2460
			if ( isset( $this->titles[$link_id] ) ) {
2461
				$title = $this->titles[$link_id];
2462
				$title = $this->encodeAttribute($title);
2463
				$result .=  " title=\"$title\"";
2464
			}
2465
			if (isset($this->ref_attr[$link_id]))
2466
				$result .= $this->ref_attr[$link_id];
2467
		
@@ 2570-2574 (lines=5) @@
2567
		if (isset($this->urls[$link_id])) {
2568
			$url = $this->encodeAttribute($this->urls[$link_id]);
2569
			$result = "<img src=\"$url\" alt=\"$alt_text\"";
2570
			if (isset($this->titles[$link_id])) {
2571
				$title = $this->titles[$link_id];
2572
				$title = $this->encodeAttribute($title);
2573
				$result .=  " title=\"$title\"";
2574
			}
2575
			if (isset($this->ref_attr[$link_id]))
2576
				$result .= $this->ref_attr[$link_id];
2577
			$result .= $this->empty_element_suffix;