mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Fixed code style.
This commit is contained in:
parent
2853e471c4
commit
d0b1024d80
212 changed files with 495 additions and 1005 deletions
|
@ -68,12 +68,12 @@ final class SetUserTimezoneSubscriber implements EventSubscriberInterface
|
|||
|
||||
//Check if the user has set a timezone
|
||||
$user = $this->security->getUser();
|
||||
if ($user instanceof User && ! empty($user->getTimezone())) {
|
||||
if ($user instanceof User && !empty($user->getTimezone())) {
|
||||
$timezone = $user->getTimezone();
|
||||
}
|
||||
|
||||
//Fill with default value if needed
|
||||
if (null === $timezone && ! empty($this->default_timezone)) {
|
||||
if (null === $timezone && !empty($this->default_timezone)) {
|
||||
$timezone = $this->default_timezone;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue