diff --git a/app/classes/Framadate/Utils.php b/app/classes/Framadate/Utils.php index 1cad76f..0d2788b 100644 --- a/app/classes/Framadate/Utils.php +++ b/app/classes/Framadate/Utils.php @@ -19,8 +19,11 @@ namespace Framadate; class Utils { + /** + * @return string Server name + */ public static function get_server_name() { - $scheme = (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == 'on') ? 'https' : 'http'; + $scheme = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https' : 'http'; $port = in_array($_SERVER['SERVER_PORT'], [80, 443]) ? '' : ':' . $_SERVER['SERVER_PORT']; $dirname = dirname($_SERVER['SCRIPT_NAME']); $dirname = $dirname === '\\' ? '/' : $dirname . '/'; @@ -52,20 +55,16 @@ class Utils { echo '
- '; if (!empty($title)) { - echo '