summaryrefslogtreecommitdiff
path: root/app/Model/UserNotification.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-10-17 10:09:03 -0400
committerFrederic Guillot <fred@kanboard.net>2015-10-17 10:09:03 -0400
commit8c532efd5f02f7a7e5ea322a07ddcf49d130a8ec (patch)
tree289222e21420b8d0092f06de097090f179202f6b /app/Model/UserNotification.php
parentb40190ee9fd557d86e594208ed77fa762c7dcfb7 (diff)
Run php-cs-fixer on the code base
Diffstat (limited to 'app/Model/UserNotification.php')
-rw-r--r--app/Model/UserNotification.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/app/Model/UserNotification.php b/app/Model/UserNotification.php
index b4ee77a9..3d98ebe9 100644
--- a/app/Model/UserNotification.php
+++ b/app/Model/UserNotification.php
@@ -51,8 +51,7 @@ class UserNotification extends Base
// Use the user language otherwise use the application language (do not use the session language)
if (! empty($user['language'])) {
Translator::load($user['language']);
- }
- else {
+ } else {
Translator::load($this->config->get('application_language', 'en_US'));
}
@@ -123,8 +122,7 @@ class UserNotification extends Base
$this->userNotificationFilter->saveFilter($user_id, $filter);
$this->userNotificationFilter->saveSelectedProjects($user_id, $projects);
$this->userNotificationType->saveSelectedTypes($user_id, $types);
- }
- else {
+ } else {
$this->disableNotification($user_id);
}