From 4453e7e47ad69ac2f711fd02d3912737625c6657 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 8 Mar 2020 19:07:36 +0000 Subject: [PATCH] Standards --- src/Network/Probe.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Network/Probe.php b/src/Network/Probe.php index ba58ff3d04..6c64f790ec 100644 --- a/src/Network/Probe.php +++ b/src/Network/Probe.php @@ -144,10 +144,10 @@ class Probe // Handles the case when the hostname contains the scheme if (!parse_url($host, PHP_URL_SCHEME)) { - $ssl_url = "https://".$host."/.well-known/host-meta"; - $url = "http://".$host."/.well-known/host-meta"; + $ssl_url = "https://" . $host . "/.well-known/host-meta"; + $url = "http://" . $host . "/.well-known/host-meta"; } else { - $ssl_url = $host."/.well-known/host-meta"; + $ssl_url = $host . "/.well-known/host-meta"; $url = ''; } @@ -168,7 +168,7 @@ class Probe return false; } - if (!is_object($xrd) && ! empty($url)) { + if (!is_object($xrd) && !empty($url)) { $curlResult = Network::curl($url, false, ['timeout' => $xrd_timeout, 'accept_content' => 'application/xrd+xml']); $connection_error = ($curlResult->getErrorNumber() == CURLE_COULDNT_CONNECT) || ($curlResult->getReturnCode() == 0); if ($curlResult->isTimeout()) { -- 2.39.5