X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FUtil%2FTemporal.php;h=acafb66ab60538949a9b0cacd2540b19b2bc7382;hb=e1863951986ba5be173758324a00652bc5af870c;hp=a49995a034c7428533c9a377b55f15c1dddf4d5e;hpb=caa1a5aeacaf617c2f852b45e2ed891dd8be358c;p=friendica.git diff --git a/src/Util/Temporal.php b/src/Util/Temporal.php index a49995a034..acafb66ab6 100644 --- a/src/Util/Temporal.php +++ b/src/Util/Temporal.php @@ -1,6 +1,6 @@ t($a) == DI::l10n()->t($b)) { @@ -63,9 +66,10 @@ class Temporal * Emit a timezone selector grouped (primarily) by continent * * @param string $current Timezone + * * @return string Parsed HTML output */ - public static function getTimezoneSelect($current = 'America/Los_Angeles') + public static function getTimezoneSelect(string $current = 'America/Los_Angeles'): string { $timezone_identifiers = DateTimeZone::listIdentifiers(); @@ -120,7 +124,7 @@ class Temporal * @return string Parsed HTML * @throws \Friendica\Network\HTTPException\InternalServerErrorException */ - public static function getTimezoneField($name = 'timezone', $label = '', $current = 'America/Los_Angeles', $help = '') + public static function getTimezoneField(string $name = 'timezone', string $label = '', string $current = 'America/Los_Angeles', string $help = ''): string { $options = self::getTimezoneSelect($current); $options = str_replace('