[Form] fixed CS
This commit is contained in:
parent
534cf8fce7
commit
723a8f2bf3
@ -22,7 +22,7 @@ class TimezoneChoiceList implements ChoiceListInterface
|
||||
* Stores the available timezone choices
|
||||
* @var array
|
||||
*/
|
||||
protected static $timezones;
|
||||
static protected $timezones;
|
||||
|
||||
/**
|
||||
* Returns the timezone choices.
|
||||
@ -36,7 +36,11 @@ class TimezoneChoiceList implements ChoiceListInterface
|
||||
*/
|
||||
public function getChoices()
|
||||
{
|
||||
if (count(static::$timezones) == 0) {
|
||||
if (null !== static::$timezones) {
|
||||
return static::$timezones;
|
||||
}
|
||||
|
||||
static::$timezones = array();
|
||||
foreach (\DateTimeZone::listIdentifiers() as $timezone) {
|
||||
$parts = explode('/', $timezone);
|
||||
|
||||
@ -57,7 +61,6 @@ class TimezoneChoiceList implements ChoiceListInterface
|
||||
|
||||
static::$timezones[$region][$timezone] = str_replace('_', ' ', $name);
|
||||
}
|
||||
}
|
||||
|
||||
return static::$timezones;
|
||||
}
|
||||
|
Reference in New Issue
Block a user