Passed
Pull Request — lib (#386)
by
unknown
07:00
created
Michelf/Markdown.php 1 patch
Braces   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -764,8 +764,9 @@  discard block
 block discarded – undo
764 764
 		// tag parser and hashed. Need to reverse the process before using
765 765
 		// the URL.
766 766
 		$unhashed = $this->unhash($url);
767
-		if ($unhashed !== $url)
768
-			$url = preg_replace('/^<(.*)>$/', '\1', $unhashed);
767
+		if ($unhashed !== $url) {
768
+					$url = preg_replace('/^<(.*)>$/', '\1', $unhashed);
769
+		}
769 770
 
770 771
 		$url = $this->encodeURLAttribute($url);
771 772
 
@@ -1614,8 +1615,7 @@  discard block
 block discarded – undo
1614 1615
 		if ($this->autolinks)
1615 1616
 		{
1616 1617
 			$regex = '{((https?|ftp|dict|tel):[^\'">\s]+)}i';
1617
-		}
1618
-		else
1618
+		} else
1619 1619
 		{
1620 1620
 			$regex = '{<((https?|ftp|dict|tel):[^\'">\s]+)>}i';
1621 1621
 		}		
Please login to merge, or discard this patch.