diff options
author | ArthurHoaro <arthur@hoa.ro> | 2016-10-20 11:31:52 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2016-10-20 11:36:11 +0200 |
commit | 7af9a41881ed0b9d44d18a0ce03a123a8441adf5 (patch) | |
tree | 499d26ccee0d0df3aeac5fe9d27faf2800721698 /application/TimeZone.php | |
parent | ceeb8fbeb89f69e41791ae192d073d6afea00f4b (diff) | |
download | Shaarli-7af9a41881ed0b9d44d18a0ce03a123a8441adf5.tar.gz Shaarli-7af9a41881ed0b9d44d18a0ce03a123a8441adf5.tar.zst Shaarli-7af9a41881ed0b9d44d18a0ce03a123a8441adf5.zip |
Minor code cleanup: PHPDoc, spelling, unused variables, etc.
Diffstat (limited to 'application/TimeZone.php')
-rw-r--r-- | application/TimeZone.php | 10 |
1 files changed, 3 insertions, 7 deletions
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 @@ | |||
7 | * Example: preselect Europe/Paris | 7 | * Example: preselect Europe/Paris |
8 | * list($htmlform, $js) = generateTimeZoneForm('Europe/Paris'); | 8 | * list($htmlform, $js) = generateTimeZoneForm('Europe/Paris'); |
9 | * | 9 | * |
10 | * @param string $preselected_timezone preselected timezone (optional) | 10 | * @param string $preselectedTimezone preselected timezone (optional) |
11 | * | 11 | * |
12 | * @return an array containing the generated HTML form and Javascript code | 12 | * @return array containing the generated HTML form and Javascript code |
13 | **/ | 13 | **/ |
14 | function generateTimeZoneForm($preselectedTimezone='') | 14 | function generateTimeZoneForm($preselectedTimezone='') |
15 | { | 15 | { |
@@ -27,10 +27,6 @@ function generateTimeZoneForm($preselectedTimezone='') | |||
27 | $pcity = substr($preselectedTimezone, $spos+1); | 27 | $pcity = substr($preselectedTimezone, $spos+1); |
28 | } | 28 | } |
29 | 29 | ||
30 | // Display config form: | ||
31 | $timezoneForm = ''; | ||
32 | $timezoneJs = ''; | ||
33 | |||
34 | // The list is in the form 'Europe/Paris', 'America/Argentina/Buenos_Aires' | 30 | // The list is in the form 'Europe/Paris', 'America/Argentina/Buenos_Aires' |
35 | // We split the list in continents/cities. | 31 | // We split the list in continents/cities. |
36 | $continents = array(); | 32 | $continents = array(); |
@@ -97,7 +93,7 @@ function generateTimeZoneForm($preselectedTimezone='') | |||
97 | * @param string $continent the timezone continent | 93 | * @param string $continent the timezone continent |
98 | * @param string $city the timezone city | 94 | * @param string $city the timezone city |
99 | * | 95 | * |
100 | * @return whether continent/city is a valid timezone | 96 | * @return bool whether continent/city is a valid timezone |
101 | */ | 97 | */ |
102 | function isTimeZoneValid($continent, $city) | 98 | function isTimeZoneValid($continent, $city) |
103 | { | 99 | { |