From 7af9a41881ed0b9d44d18a0ce03a123a8441adf5 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Thu, 20 Oct 2016 11:31:52 +0200 Subject: Minor code cleanup: PHPDoc, spelling, unused variables, etc. --- application/TimeZone.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'application/TimeZone.php') diff --git a/application/TimeZone.php b/application/TimeZone.php index 26f2232d..36a8fb12 100644 --- a/application/TimeZone.php +++ b/application/TimeZone.php @@ -7,9 +7,9 @@ * Example: preselect Europe/Paris * list($htmlform, $js) = generateTimeZoneForm('Europe/Paris'); * - * @param string $preselected_timezone preselected timezone (optional) + * @param string $preselectedTimezone preselected timezone (optional) * - * @return an array containing the generated HTML form and Javascript code + * @return array containing the generated HTML form and Javascript code **/ function generateTimeZoneForm($preselectedTimezone='') { @@ -27,10 +27,6 @@ function generateTimeZoneForm($preselectedTimezone='') $pcity = substr($preselectedTimezone, $spos+1); } - // Display config form: - $timezoneForm = ''; - $timezoneJs = ''; - // The list is in the form 'Europe/Paris', 'America/Argentina/Buenos_Aires' // We split the list in continents/cities. $continents = array(); @@ -97,7 +93,7 @@ function generateTimeZoneForm($preselectedTimezone='') * @param string $continent the timezone continent * @param string $city the timezone city * - * @return whether continent/city is a valid timezone + * @return bool whether continent/city is a valid timezone */ function isTimeZoneValid($continent, $city) { -- cgit v1.2.3