use constant as default value in value getter

Signed-off-by: Bennet Becker <dev@bennet.cc>
This commit is contained in:
Bennet Becker 2022-12-26 23:20:15 +01:00
parent 04c3c87946
commit 9d9a0b7e06
No known key found for this signature in database
GPG key ID: B4C66D4902D1FA86
2 changed files with 2 additions and 2 deletions

View file

@ -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;
}
}

View file

@ -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
*/