Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/Cron
diff options
context:
space:
mode:
authorScrutinizer Auto-Fixer <auto-fixer@scrutinizer-ci.com>2019-12-30 17:35:11 +0300
committerScrutinizer Auto-Fixer <auto-fixer@scrutinizer-ci.com>2019-12-30 17:35:11 +0300
commita98ee1766f533653acae50d51b8fbfd9e0d58f40 (patch)
tree62136d157918997eca3bdad1d21f17895f258163 /lib/Cron
parent6baabe29e69f68397e3f09d6927f2a67ce1dd828 (diff)
Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
Diffstat (limited to 'lib/Cron')
-rw-r--r--lib/Cron/NotificationCron.php28
1 files changed, 14 insertions, 14 deletions
diff --git a/lib/Cron/NotificationCron.php b/lib/Cron/NotificationCron.php
index 1ac9f832..d573fd2c 100644
--- a/lib/Cron/NotificationCron.php
+++ b/lib/Cron/NotificationCron.php
@@ -31,31 +31,31 @@ use OCA\Polls\Service\MailService;
class NotificationCron extends TimedJob {
/** @var MailService*/
- private $mailService;
+ private $mailService;
private $logger;
/** @param MailService $mailService
- */
- public function __construct(
+ */
+ public function __construct(
ILogger $logger,
MailService $mailService
) {
$this->logger = $logger;
$this->setInterval(60);
$this->mailService = $mailService;
- }
+ }
/**
- * run
- * @param string $token
- * @return null
- */
- protected function run($arguments) {
- if ($this->mailService->sendNotifications()) {
- $this->logger->debug('Notifications sent');
- } else {
+ * 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');
- }
- }
+ }
+ }
}