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

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-14 17:06:46 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-14 17:06:46 +0300
commit7f32cfe6570d112fb748c9a97590e2b9d6e8aafb (patch)
tree931a9c6eaca5fafcd280f9fe7fa6c268631f60f2 /lib/Listener
parent2107b0f6ffe97ac40152207f7f90cc2a94ce46d1 (diff)
Update to nextcloud coding standard v0.3.0
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/Listener')
-rw-r--r--lib/Listener/AddressCollectionListener.php5
-rw-r--r--lib/Listener/DeleteDraftListener.php7
-rw-r--r--lib/Listener/DraftMailboxCreatorListener.php5
-rw-r--r--lib/Listener/FlagRepliedMessageListener.php6
-rw-r--r--lib/Listener/InteractionListener.php1
-rw-r--r--lib/Listener/MessageCacheUpdaterListener.php1
-rw-r--r--lib/Listener/SaveSentMessageListener.php5
-rw-r--r--lib/Listener/TrashMailboxCreatorListener.php5
8 files changed, 19 insertions, 16 deletions
diff --git a/lib/Listener/AddressCollectionListener.php b/lib/Listener/AddressCollectionListener.php
index 2f227157d..22d079537 100644
--- a/lib/Listener/AddressCollectionListener.php
+++ b/lib/Listener/AddressCollectionListener.php
@@ -1,4 +1,6 @@
-<?php declare(strict_types=1);
+<?php
+
+declare(strict_types=1);
/**
* @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
@@ -74,5 +76,4 @@ class AddressCollectionListener implements IEventListener {
]);
}
}
-
}
diff --git a/lib/Listener/DeleteDraftListener.php b/lib/Listener/DeleteDraftListener.php
index 8c204bfc9..0e76adec6 100644
--- a/lib/Listener/DeleteDraftListener.php
+++ b/lib/Listener/DeleteDraftListener.php
@@ -1,4 +1,6 @@
-<?php declare(strict_types=1);
+<?php
+
+declare(strict_types=1);
/**
* @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
@@ -70,7 +72,7 @@ class DeleteDraftListener implements IEventListener {
public function handle(Event $event): void {
if ($event instanceof DraftSavedEvent && $event->getDraftUid() !== null) {
$this->deleteDraft($event->getAccount(), $event->getDraftUid());
- } else if ($event instanceof MessageSentEvent && $event->getDraftUid() !== null) {
+ } elseif ($event instanceof MessageSentEvent && $event->getDraftUid() !== null) {
$this->deleteDraft($event->getAccount(), $event->getDraftUid());
}
}
@@ -138,5 +140,4 @@ class DeleteDraftListener implements IEventListener {
// TODO: find a more elegant solution for updating the mailbox cache
$this->mailboxSync->sync($account, true);
}
-
}
diff --git a/lib/Listener/DraftMailboxCreatorListener.php b/lib/Listener/DraftMailboxCreatorListener.php
index fdb705f1a..384a39221 100644
--- a/lib/Listener/DraftMailboxCreatorListener.php
+++ b/lib/Listener/DraftMailboxCreatorListener.php
@@ -1,4 +1,6 @@
-<?php declare(strict_types=1);
+<?php
+
+declare(strict_types=1);
/**
* @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
@@ -94,5 +96,4 @@ class DraftMailboxCreatorListener implements IEventListener {
// TODO: find a more elegant solution for updating the mailbox cache
$this->mailboxSync->sync($account, true);
}
-
}
diff --git a/lib/Listener/FlagRepliedMessageListener.php b/lib/Listener/FlagRepliedMessageListener.php
index eb2c3b73d..07e13bb13 100644
--- a/lib/Listener/FlagRepliedMessageListener.php
+++ b/lib/Listener/FlagRepliedMessageListener.php
@@ -1,4 +1,6 @@
-<?php declare(strict_types=1);
+<?php
+
+declare(strict_types=1);
/**
* @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
@@ -53,7 +55,6 @@ class FlagRepliedMessageListener implements IEventListener {
MailboxMapper $mailboxMapper,
MessageMapper $mapper,
ILogger $logger) {
-
$this->imapClientFactory = $imapClientFactory;
$this->mailboxMapper = $mailboxMapper;
$this->messageMapper = $mapper;
@@ -94,5 +95,4 @@ class FlagRepliedMessageListener implements IEventListener {
]);
}
}
-
}
diff --git a/lib/Listener/InteractionListener.php b/lib/Listener/InteractionListener.php
index ce48b5635..58c3e22b9 100644
--- a/lib/Listener/InteractionListener.php
+++ b/lib/Listener/InteractionListener.php
@@ -84,5 +84,4 @@ class InteractionListener implements IEventListener {
$this->dispatcher->dispatch(ContactInteractedWithEvent::class, $interactionEvent);
}
}
-
}
diff --git a/lib/Listener/MessageCacheUpdaterListener.php b/lib/Listener/MessageCacheUpdaterListener.php
index bd710adb1..6c952ed63 100644
--- a/lib/Listener/MessageCacheUpdaterListener.php
+++ b/lib/Listener/MessageCacheUpdaterListener.php
@@ -66,5 +66,4 @@ class MessageCacheUpdaterListener implements IEventListener {
);
}
}
-
}
diff --git a/lib/Listener/SaveSentMessageListener.php b/lib/Listener/SaveSentMessageListener.php
index 3f6bf9375..ed093d222 100644
--- a/lib/Listener/SaveSentMessageListener.php
+++ b/lib/Listener/SaveSentMessageListener.php
@@ -1,4 +1,6 @@
-<?php declare(strict_types=1);
+<?php
+
+declare(strict_types=1);
/**
* @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
@@ -122,5 +124,4 @@ class SaveSentMessageListener implements IEventListener {
return $this->mailboxMapper->findSpecial($account, 'sent');
}
-
}
diff --git a/lib/Listener/TrashMailboxCreatorListener.php b/lib/Listener/TrashMailboxCreatorListener.php
index a3a00b2b1..a4cb09336 100644
--- a/lib/Listener/TrashMailboxCreatorListener.php
+++ b/lib/Listener/TrashMailboxCreatorListener.php
@@ -1,4 +1,6 @@
-<?php declare(strict_types=1);
+<?php
+
+declare(strict_types=1);
/**
* @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
@@ -97,5 +99,4 @@ class TrashMailboxCreatorListener implements IEventListener {
]);
}
}
-
}