From 229bc871cb9663f9f103fc52758bc18d6f20b6ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Fri, 6 Nov 2020 15:39:21 +0100 Subject: [PATCH] Fix php cs warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/Notification/NotificationHelper.php | 2 +- tests/unit/Notification/NotificationHelperTest.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Notification/NotificationHelper.php b/lib/Notification/NotificationHelper.php index 9715da7fc..299e1332d 100644 --- a/lib/Notification/NotificationHelper.php +++ b/lib/Notification/NotificationHelper.php @@ -107,7 +107,7 @@ class NotificationHelper { if ($user->getUID() === $board->getOwner() && count($board->getAcl()) === 0) { // Notify if all or assigned is configured for unshared boards $shouldNotify = true; - } else if ($notificationSetting === ConfigService::SETTING_BOARD_NOTIFICATION_DUE_ASSIGNED && $this->assignedUsersMapper->isUserAssigned($card->getId(), $user->getUID())) { + } elseif ($notificationSetting === ConfigService::SETTING_BOARD_NOTIFICATION_DUE_ASSIGNED && $this->assignedUsersMapper->isUserAssigned($card->getId(), $user->getUID())) { // Notify if the user is assigned and has the assigned setting selected $shouldNotify = true; } diff --git a/tests/unit/Notification/NotificationHelperTest.php b/tests/unit/Notification/NotificationHelperTest.php index 2cd8fcc66..80d7997e6 100644 --- a/tests/unit/Notification/NotificationHelperTest.php +++ b/tests/unit/Notification/NotificationHelperTest.php @@ -42,7 +42,6 @@ use OCP\Notification\INotification; use PHPUnit\Framework\MockObject\MockObject; class DummyUser extends \OC\User\User { - private $uid; public function __construct($uid) {