@@ -52,15 +52,14 @@ protected function doSend(SentMessage $message): void
52
52
'sender ' => $ this ->transformEmailAddress ($ envelope ->getSender ()),
53
53
'attachments ' => $ attachments ,
54
54
],
55
- 'saveToSentItems ' => config ('mail.mailers.microsoft-graph.save_to_sent_items ' , false ),
55
+ 'saveToSentItems ' => config ('mail.mailers.microsoft-graph.save_to_sent_items ' , false ) ?? false ,
56
56
];
57
57
58
58
$ this ->microsoftGraphApiService ->sendMail ($ this ->from , $ payload );
59
59
}
60
60
61
61
/**
62
62
* @param Collection<Address> $recipients
63
- * @return array
64
63
*/
65
64
protected function transformEmailAddresses (Collection $ recipients ): array
66
65
{
@@ -69,10 +68,6 @@ protected function transformEmailAddresses(Collection $recipients): array
69
68
->toArray ();
70
69
}
71
70
72
- /**
73
- * @param Address $address
74
- * @return array
75
- */
76
71
protected function transformEmailAddress (Address $ address ): array
77
72
{
78
73
return [
@@ -83,21 +78,14 @@ protected function transformEmailAddress(Address $address): array
83
78
}
84
79
85
80
/**
86
- * @param Email $email
87
- * @param Envelope $envelope
88
81
* @return Collection<Address>
89
82
*/
90
83
protected function getRecipients (Email $ email , Envelope $ envelope ): Collection
91
84
{
92
85
return collect ($ envelope ->getRecipients ())
93
- ->filter (fn (Address $ address ) => !in_array ($ address , array_merge ($ email ->getCc (), $ email ->getBcc ()), true ));
86
+ ->filter (fn (Address $ address ) => ! in_array ($ address , array_merge ($ email ->getCc (), $ email ->getBcc ()), true ));
94
87
}
95
88
96
- /**
97
- * @param Email $email
98
- * @param string|null $html
99
- * @return array
100
- */
101
89
protected function prepareAttachments (Email $ email , ?string $ html ): array
102
90
{
103
91
$ attachments = [];
0 commit comments