]> git.mxchange.org Git - friendica-addons.git/commitdiff
remove obvious type cast
authorArt4 <art4@wlabs.de>
Fri, 14 Mar 2025 08:15:02 +0000 (08:15 +0000)
committerArt4 <art4@wlabs.de>
Fri, 14 Mar 2025 08:15:02 +0000 (08:15 +0000)
libravatar/Services/Libravatar.php

index a5bd0793c6919dbc8ed7160164ef1ec97f005580..8b3dd493b9c9ecbc56a9ee41a3ea7ca7b4847f07 100644 (file)
@@ -368,12 +368,12 @@ class Services_Libravatar
         // important bit out.
         if (filter_var($identifier, FILTER_VALIDATE_EMAIL)) {
             $email = explode('@', $identifier);
-            return (string) $email[1];
+            return $email[1];
         }
 
         //OpenID
         $url    = parse_url($identifier);
-        $domain = (string) $url['host'];
+        $domain = $url['host'];
         if (isset($url['port']) && $url['scheme'] === 'http'
             && $url['port'] != 80
             || isset($url['port']) && $url['scheme'] === 'https'