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/Controller/MessagesController.php
parent2107b0f6ffe97ac40152207f7f90cc2a94ce46d1 (diff)
Update to nextcloud coding standard v0.3.0
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
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);
}
-
}