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:
Diffstat (limited to 'lib/Controller/MessagesController.php')
-rwxr-xr-xlib/Controller/MessagesController.php13
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/Controller/MessagesController.php b/lib/Controller/MessagesController.php
index f73d78445..32c520d91 100755
--- a/lib/Controller/MessagesController.php
+++ b/lib/Controller/MessagesController.php
@@ -416,8 +416,8 @@ class MessagesController extends Controller {
$attachment = $mailBox->getAttachment($messageId, $attachmentId);
$fileName = $attachment->getName() ?? $this->l10n->t('Embedded message %s', [
- $attachmentId,
- ]) . '.eml';
+ $attachmentId,
+ ]) . '.eml';
$fileParts = pathinfo($fileName);
$fileName = $fileParts['filename'];
$fileExtension = $fileParts['extension'];
@@ -540,10 +540,10 @@ class MessagesController extends Controller {
private function attachmentIsImage(array $attachment): bool {
return in_array(
$attachment['mime'], [
- 'image/jpeg',
- 'image/png',
- 'image/gif'
- ]);
+ 'image/jpeg',
+ 'image/png',
+ 'image/gif'
+ ]);
}
/**
@@ -554,5 +554,4 @@ class MessagesController extends Controller {
private function attachmentIsCalendarEvent(array $attachment): bool {
return in_array($attachment['mime'], ['text/calendar', 'application/ics'], true);
}
-
}