Replace ternary operators with null coalescing operators in MailerAPI
[MAILPOET-4115]
This commit is contained in:
committed by
Veljko V
parent
bc6026ca77
commit
708333e68a
@ -51,9 +51,9 @@ class Mailer extends APIEndpoint {
|
|||||||
public function send($data = []) {
|
public function send($data = []) {
|
||||||
try {
|
try {
|
||||||
$mailer = $this->mailerFactory->buildMailer(
|
$mailer = $this->mailerFactory->buildMailer(
|
||||||
(isset($data['mailer'])) ? $data['mailer'] : null,
|
$data['mailer'] ?? null,
|
||||||
(isset($data['sender'])) ? $data['sender'] : null,
|
$data['sender'] ?? null,
|
||||||
(isset($data['reply_to'])) ? $data['reply_to'] : null
|
$data['reply_to'] ?? null
|
||||||
);
|
);
|
||||||
// report this as 'sending_test' in metadata since this endpoint is only used to test sending methods for now
|
// report this as 'sending_test' in metadata since this endpoint is only used to test sending methods for now
|
||||||
$extraParams = [
|
$extraParams = [
|
||||||
|
Reference in New Issue
Block a user