From 9d9a0b7e06f1a6879658d227a5f8bb4dfbdf056a Mon Sep 17 00:00:00 2001 From: Bennet Becker Date: Mon, 26 Dec 2022 23:20:15 +0100 Subject: use constant as default value in value getter Signed-off-by: Bennet Becker --- lib/private/Mail/Message.php | 2 +- lib/public/Mail/AutoSubmittedValue.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/private/Mail/Message.php b/lib/private/Mail/Message.php index 417b64d0f3a..cf69d9cb3ef 100644 --- a/lib/private/Mail/Message.php +++ b/lib/private/Mail/Message.php @@ -337,6 +337,6 @@ class Message implements IMessage { $headers = $this->swiftMessage->getHeaders(); return $headers->has('Auto-Submitted') ? - $headers->get('Auto-Submitted')->toString() : "no"; + $headers->get('Auto-Submitted')->toString() : AutoSubmittedValue::NO; } } diff --git a/lib/public/Mail/AutoSubmittedValue.php b/lib/public/Mail/AutoSubmittedValue.php index 3c3d9f13078..3cf669d00f7 100644 --- a/lib/public/Mail/AutoSubmittedValue.php +++ b/lib/public/Mail/AutoSubmittedValue.php @@ -31,7 +31,7 @@ namespace OCP\Mail; * The value "auto-notified" as per RFC 5436 is deliberately omitted as it is * meant of notification of the sieve system. * - * @see https://www.iana.org/assignments/auto-submitted-keywords/auto-submitted-keywords.xhtml + * @link https://www.iana.org/assignments/auto-submitted-keywords/auto-submitted-keywords.xhtml * * @since 26.0.0 */ -- cgit v1.2.3