Code Duplication    Length = 5-5 lines in 4 locations

_inc/lib/markdown/extra.php 4 locations

@@ 623-627 (lines=5) @@
620
			$url = $this->encodeAttribute($url);
621
622
			$result = "<a href=\"$url\"";
623
			if ( isset( $this->titles[$link_id] ) ) {
624
				$title = $this->titles[$link_id];
625
				$title = $this->encodeAttribute($title);
626
				$result .=  " title=\"$title\"";
627
			}
628
629
			$link_text = $this->runSpanGamut($link_text);
630
			$result .= ">$link_text</a>";
@@ 727-731 (lines=5) @@
724
		if (isset($this->urls[$link_id])) {
725
			$url = $this->encodeAttribute($this->urls[$link_id]);
726
			$result = "<img src=\"$url\" alt=\"$alt_text\"";
727
			if (isset($this->titles[$link_id])) {
728
				$title = $this->titles[$link_id];
729
				$title = $this->encodeAttribute($title);
730
				$result .=  " title=\"$title\"";
731
			}
732
			$result .= $this->empty_element_suffix;
733
			$result = $this->hashPart($result);
734
		}
@@ 2307-2311 (lines=5) @@
2304
			$url = $this->encodeAttribute($url);
2305
2306
			$result = "<a href=\"$url\"";
2307
			if ( isset( $this->titles[$link_id] ) ) {
2308
				$title = $this->titles[$link_id];
2309
				$title = $this->encodeAttribute($title);
2310
				$result .=  " title=\"$title\"";
2311
			}
2312
			if (isset($this->ref_attr[$link_id]))
2313
				$result .= $this->ref_attr[$link_id];
2314
@@ 2417-2421 (lines=5) @@
2414
		if (isset($this->urls[$link_id])) {
2415
			$url = $this->encodeAttribute($this->urls[$link_id]);
2416
			$result = "<img src=\"$url\" alt=\"$alt_text\"";
2417
			if (isset($this->titles[$link_id])) {
2418
				$title = $this->titles[$link_id];
2419
				$title = $this->encodeAttribute($title);
2420
				$result .=  " title=\"$title\"";
2421
			}
2422
			if (isset($this->ref_attr[$link_id]))
2423
				$result .= $this->ref_attr[$link_id];
2424
			$result .= $this->empty_element_suffix;