]> git.mxchange.org Git - friendica.git/commitdiff
Changes:
authorRoland Häder <roland@mxchange.org>
Thu, 23 Jun 2022 15:26:31 +0000 (17:26 +0200)
committerRoland Häder <roland@mxchange.org>
Thu, 23 Jun 2022 15:30:17 +0000 (17:30 +0200)
- documented null value
- two ' to much!

src/Util/Network.php

index ad83aa018e69de75409866026dd6fde8daaf72dc..2cad22acf83791bd7e2d8dad7a480f10175bdaa1 100644 (file)
@@ -440,7 +440,7 @@ class Network
         * Glue url parts together
         *
         * @param array $parsed URL parts
-        * @return string The glued URL.
+        * @return string|null The glued URL or null on error
         * @deprecated since version 2021.12, use GuzzleHttp\Psr7\Uri::fromParts($parts) instead
         */
        public static function unparseURL(array $parsed): string
@@ -456,9 +456,9 @@ class Network
                $scheme    = $get('scheme');
                $query     = $get('query');
                $fragment  = $get('fragment');
-               $authority = ($userinfo !== null ? $userinfo.'@' : '') .
+               $authority = ($userinfo !== null ? $userinfo . '@' : '') . 
                                                $get('host') .
-                                               ($port ? ':$port' : '');
+                                               ($port ? ":$port" : '');
 
                return  (strlen($scheme) ? $scheme . ':' : '') .
                        (strlen($authority) ? '//' . $authority : '') .