diff options
author | emkael <emkael@tlen.pl> | 2016-03-16 22:56:13 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2016-03-16 22:56:13 +0100 |
commit | 75dc7a1df808ab2ca93ca96e299b06d90ebcedf6 (patch) | |
tree | 3c7671d8e47b5b68e534ad13ecb5acb9374d4272 /app/php/components/TimezoneSelect.php | |
parent | c5058d68713fc710c68488db726b05453e18d85d (diff) |
* refactoring, code formatting
Diffstat (limited to 'app/php/components/TimezoneSelect.php')
-rw-r--r-- | app/php/components/TimezoneSelect.php | 8 |
1 files changed, 6 insertions, 2 deletions
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) { |