From 75dc7a1df808ab2ca93ca96e299b06d90ebcedf6 Mon Sep 17 00:00:00 2001 From: emkael Date: Wed, 16 Mar 2016 22:56:13 +0100 Subject: * refactoring, code formatting --- app/php/components/TimezoneSelect.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'app/php/components/TimezoneSelect.php') diff --git a/app/php/components/TimezoneSelect.php b/app/php/components/TimezoneSelect.php index d97514f..5825b1a 100644 --- a/app/php/components/TimezoneSelect.php +++ b/app/php/components/TimezoneSelect.php @@ -11,7 +11,9 @@ class TimezoneSelect extends TTemplateControl { public function setUserToChange(DbUser $user) { if ($user->IsGuest) { - throw new TInvalidDataValueException('Password change impossible for guest user'); + throw new TInvalidDataValueException( + 'Password change impossible for guest user' + ); } $this->setControlState('user', $user); } @@ -22,7 +24,9 @@ class TimezoneSelect extends TTemplateControl { $this->Timezones->DataValueField = 'Name'; $this->Timezones->DataTextField = 'Label'; $this->Timezones->dataBind(); - $this->Timezones->setSelectedValue($this->UserToChange->getTimezonePreference()->Name); + $this->Timezones->setSelectedValue( + $this->UserToChange->getTimezonePreference()->Name + ); } public function saveTimezone($sender, $param) { -- cgit v1.2.3