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

github.com/nextcloud/event_update_notification.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Notifier.php')
-rw-r--r--lib/Notifier.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/Notifier.php b/lib/Notifier.php
index 600d457..0cea996 100644
--- a/lib/Notifier.php
+++ b/lib/Notifier.php
@@ -1,4 +1,5 @@
<?php
+
declare(strict_types=1);
/**
* @copyright Copyright (c) 2018, Joas Schilling <coding@schilljs.com>
@@ -38,10 +39,9 @@ use OCP\Notification\INotification;
use OCP\Notification\INotifier;
class Notifier implements INotifier {
-
- const SUBJECT_OBJECT_ADD = 'object_add';
- const SUBJECT_OBJECT_UPDATE = 'object_update';
- const SUBJECT_OBJECT_DELETE = 'object_delete';
+ public const SUBJECT_OBJECT_ADD = 'object_add';
+ public const SUBJECT_OBJECT_UPDATE = 'object_update';
+ public const SUBJECT_OBJECT_DELETE = 'object_delete';
/** @var IFactory */
protected $languageFactory;
@@ -113,9 +113,9 @@ class Notifier implements INotifier {
if ($notification->getSubject() === self::SUBJECT_OBJECT_ADD . '_event') {
$subject = $this->l->t('{actor} created {event} in {calendar}');
- } else if ($notification->getSubject() === self::SUBJECT_OBJECT_DELETE . '_event') {
+ } elseif ($notification->getSubject() === self::SUBJECT_OBJECT_DELETE . '_event') {
$subject = $this->l->t('{actor} deleted {event} from {calendar}');
- } else if ($notification->getSubject() === self::SUBJECT_OBJECT_UPDATE . '_event') {
+ } elseif ($notification->getSubject() === self::SUBJECT_OBJECT_UPDATE . '_event') {
$subject = $this->l->t('{actor} updated {event} in {calendar}');
} else {
throw new AlreadyProcessedException();