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
path: root/lib/IMAP
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/IMAP
parent2107b0f6ffe97ac40152207f7f90cc2a94ce46d1 (diff)
Update to nextcloud coding standard v0.3.0
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/IMAP')
-rw-r--r--lib/IMAP/FolderMapper.php3
-rw-r--r--lib/IMAP/FolderStats.php1
-rw-r--r--lib/IMAP/IMAPClientFactory.php1
-rw-r--r--lib/IMAP/MailboxSync.php5
-rw-r--r--lib/IMAP/MessageMapper.php3
-rw-r--r--lib/IMAP/MessageStructureData.php1
-rw-r--r--lib/IMAP/PreviewEnhancer.php1
-rw-r--r--lib/IMAP/Search/Provider.php5
-rw-r--r--lib/IMAP/Sync/Request.php1
-rw-r--r--lib/IMAP/Sync/Response.php1
-rw-r--r--lib/IMAP/Sync/Synchronizer.php1
11 files changed, 7 insertions, 16 deletions
diff --git a/lib/IMAP/FolderMapper.php b/lib/IMAP/FolderMapper.php
index d217ad260..4f677f853 100644
--- a/lib/IMAP/FolderMapper.php
+++ b/lib/IMAP/FolderMapper.php
@@ -62,7 +62,7 @@ class FolderMapper {
'special_use' => true,
]);
- return array_filter(array_map(function(array $mailbox) use ($account) {
+ return array_filter(array_map(function (array $mailbox) use ($account) {
if (in_array($mailbox['mailbox']->utf8, self::DOVECOT_SIEVE_FOLDERS, true)) {
// This is a special folder that must not be shown
return null;
@@ -219,5 +219,4 @@ class FolderMapper {
}
}
}
-
}
diff --git a/lib/IMAP/FolderStats.php b/lib/IMAP/FolderStats.php
index 9b41b91d8..a1e39ed9b 100644
--- a/lib/IMAP/FolderStats.php
+++ b/lib/IMAP/FolderStats.php
@@ -36,7 +36,6 @@ class FolderStats implements JsonSerializable {
private $unread;
public function __construct(int $total, int $unread) {
-
$this->total = $total;
$this->unread = $unread;
}
diff --git a/lib/IMAP/IMAPClientFactory.php b/lib/IMAP/IMAPClientFactory.php
index e89266aca..6ef1c7b33 100644
--- a/lib/IMAP/IMAPClientFactory.php
+++ b/lib/IMAP/IMAPClientFactory.php
@@ -98,5 +98,4 @@ class IMAPClientFactory {
return $this->cache[$account->getId()];
}
-
}
diff --git a/lib/IMAP/MailboxSync.php b/lib/IMAP/MailboxSync.php
index e1ec145df..e1461189a 100644
--- a/lib/IMAP/MailboxSync.php
+++ b/lib/IMAP/MailboxSync.php
@@ -1,4 +1,6 @@
-<?php declare(strict_types=1);
+<?php
+
+declare(strict_types=1);
/**
* @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
@@ -145,5 +147,4 @@ class MailboxSync {
$mailbox->setSpecialUse(json_encode($folder->getSpecialUse()));
$this->mailboxMapper->insert($mailbox);
}
-
}
diff --git a/lib/IMAP/MessageMapper.php b/lib/IMAP/MessageMapper.php
index a048bfaaf..be8240410 100644
--- a/lib/IMAP/MessageMapper.php
+++ b/lib/IMAP/MessageMapper.php
@@ -23,14 +23,12 @@ declare(strict_types=1);
namespace OCA\Mail\IMAP;
-use Generator;
use Horde_Imap_Client;
use Horde_Imap_Client_Base;
use Horde_Imap_Client_Data_Fetch;
use Horde_Imap_Client_Exception;
use Horde_Imap_Client_Fetch_Query;
use Horde_Imap_Client_Ids;
-use Horde_Imap_Client_Search_Query;
use Horde_Imap_Client_Socket;
use Horde_Mime_Mail;
use Horde_Mime_Part;
@@ -552,5 +550,4 @@ class MessageMapper {
return new MessageStructureData($hasAttachments, $text);
}, iterator_to_array($structures->getIterator()));
}
-
}
diff --git a/lib/IMAP/MessageStructureData.php b/lib/IMAP/MessageStructureData.php
index 5abe99976..d5084db82 100644
--- a/lib/IMAP/MessageStructureData.php
+++ b/lib/IMAP/MessageStructureData.php
@@ -46,5 +46,4 @@ class MessageStructureData {
public function getPreviewText(): string {
return $this->previewText;
}
-
}
diff --git a/lib/IMAP/PreviewEnhancer.php b/lib/IMAP/PreviewEnhancer.php
index de2170eb3..f7fc5472d 100644
--- a/lib/IMAP/PreviewEnhancer.php
+++ b/lib/IMAP/PreviewEnhancer.php
@@ -112,5 +112,4 @@ class PreviewEnhancer {
return $message;
}, $messages));
}
-
}
diff --git a/lib/IMAP/Search/Provider.php b/lib/IMAP/Search/Provider.php
index 4f39f29ae..57f53c748 100644
--- a/lib/IMAP/Search/Provider.php
+++ b/lib/IMAP/Search/Provider.php
@@ -1,4 +1,6 @@
-<?php declare(strict_types=1);
+<?php
+
+declare(strict_types=1);
/**
* @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
@@ -85,5 +87,4 @@ class Provider {
new Horde_Imap_Client_Search_Query()
);
}
-
}
diff --git a/lib/IMAP/Sync/Request.php b/lib/IMAP/Sync/Request.php
index 5e8b890ee..ecf7061b6 100644
--- a/lib/IMAP/Sync/Request.php
+++ b/lib/IMAP/Sync/Request.php
@@ -67,5 +67,4 @@ class Request {
public function getUids(): array {
return $this->uids;
}
-
}
diff --git a/lib/IMAP/Sync/Response.php b/lib/IMAP/Sync/Response.php
index a690c673d..9e95b342e 100644
--- a/lib/IMAP/Sync/Response.php
+++ b/lib/IMAP/Sync/Response.php
@@ -87,5 +87,4 @@ class Response implements JsonSerializable {
array_merge($this->getVanishedMessageUids(), $other->getVanishedMessageUids())
);
}
-
}
diff --git a/lib/IMAP/Sync/Synchronizer.php b/lib/IMAP/Sync/Synchronizer.php
index 3b5b07fd4..43d0f5d75 100644
--- a/lib/IMAP/Sync/Synchronizer.php
+++ b/lib/IMAP/Sync/Synchronizer.php
@@ -74,5 +74,4 @@ class Synchronizer {
return new Response($newMessages, $changedMessages, $vanishedMessageUids);
}
-
}