Passed
Pull Request — release-2.1 (#6891)
by John
05:02
created
Sources/Security.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1517,11 +1517,11 @@
 block discarded – undo
1517 1517
 {
1518 1518
 	$hostname = strtolower(trim($hostname));
1519 1519
 	$count = substr_count($hostname, '.');
1520
-	if($count === 2){
1521
-		if(strlen(explode('.', $hostname)[1]) > 3)
1520
+	if ($count === 2) {
1521
+		if (strlen(explode('.', $hostname)[1]) > 3)
1522 1522
 			$hostname = explode('.', $hostname, 2)[1];
1523 1523
 	}
1524
-	else if($count > 2)
1524
+	else if ($count > 2)
1525 1525
 		$hostname = get_domain(explode('.', $hostname, 2)[1]);
1526 1526
 
1527 1527
 	return $hostname;
Please login to merge, or discard this patch.