diff options
author | Bennet Becker <dev@bennet.cc> | 2022-12-26 23:20:15 +0100 |
---|---|---|
committer | Bennet Becker <dev@bennet.cc> | 2022-12-26 23:20:15 +0100 |
commit | 9d9a0b7e06f1a6879658d227a5f8bb4dfbdf056a (patch) | |
tree | c851235fee7137f01587f0cfb8ebdf38ed7ae8bb /lib | |
parent | 04c3c8794656f4b940eea74cdc00205a6595a682 (diff) | |
download | nextcloud-server-9d9a0b7e06f1a6879658d227a5f8bb4dfbdf056a.tar.gz nextcloud-server-9d9a0b7e06f1a6879658d227a5f8bb4dfbdf056a.zip |
use constant as default value in value getter
Signed-off-by: Bennet Becker <dev@bennet.cc>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Mail/Message.php | 2 | ||||
-rw-r--r-- | lib/public/Mail/AutoSubmittedValue.php | 2 |
2 files changed, 2 insertions, 2 deletions
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 */ |