diff options
author | dartcafe <github@dartcafe.de> | 2019-12-30 17:52:04 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2019-12-30 17:52:04 +0300 |
commit | fdfa85437485458f181241dd9560806e1e256043 (patch) | |
tree | f33a637e0a4c0a679e6febf6fbe0ffbb4a9ca87e /lib/Cron | |
parent | 6baabe29e69f68397e3f09d6927f2a67ce1dd828 (diff) |
eliminating hints
Diffstat (limited to 'lib/Cron')
-rw-r--r-- | lib/Cron/NotificationCron.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/Cron/NotificationCron.php b/lib/Cron/NotificationCron.php index 1ac9f832..526484df 100644 --- a/lib/Cron/NotificationCron.php +++ b/lib/Cron/NotificationCron.php @@ -23,8 +23,10 @@ namespace OCA\Polls\Cron; +use Exception; + use OCP\ILogger; -use OC\BackgroundJob\TimedJob; +use OCP\BackgroundJob\TimedJob; use OCA\Polls\Service\MailService; @@ -48,13 +50,10 @@ class NotificationCron extends TimedJob { /** * run * @param string $token - * @return null */ protected function run($arguments) { if ($this->mailService->sendNotifications()) { $this->logger->debug('Notifications sent'); - } else { - $this->logger->alert('error while sending notifications'); } } |