@@ -103,16 +103,16 @@ discard block |
||
103 | 103 | */ |
104 | 104 | protected string $body = ''; |
105 | 105 | |
106 | - /** |
|
107 | - * The mail attachments |
|
108 | - * @var array<int, array<string, string>> |
|
109 | - */ |
|
106 | + /** |
|
107 | + * The mail attachments |
|
108 | + * @var array<int, array<string, string>> |
|
109 | + */ |
|
110 | 110 | protected array $attachments = []; |
111 | 111 | |
112 | - /** |
|
113 | - * The mail headers |
|
114 | - * @var array<string, mixed> |
|
115 | - */ |
|
112 | + /** |
|
113 | + * The mail headers |
|
114 | + * @var array<string, mixed> |
|
115 | + */ |
|
116 | 116 | protected array $headers = []; |
117 | 117 | |
118 | 118 | /** |
@@ -284,8 +284,8 @@ discard block |
||
284 | 284 | } |
285 | 285 | |
286 | 286 | /** |
287 | - * {@inheritedoc} |
|
288 | - */ |
|
287 | + * {@inheritedoc} |
|
288 | + */ |
|
289 | 289 | public function setReplyTo(string $email, ?string $name = null): self |
290 | 290 | { |
291 | 291 | $this->replyTo = $this->formatHeader($email, $name); |
@@ -463,17 +463,17 @@ discard block |
||
463 | 463 | } |
464 | 464 | |
465 | 465 | $this->addHeader('X-Priority', $this->priority) |
466 | - ->addHeader('X-Mailer', 'Platine PHP Mail') |
|
467 | - ->addHeader('Subject', $this->subject) |
|
468 | - ->addHeader('To', join(', ', $this->to)) |
|
469 | - ->addHeader('Date', date('r')); |
|
466 | + ->addHeader('X-Mailer', 'Platine PHP Mail') |
|
467 | + ->addHeader('Subject', $this->subject) |
|
468 | + ->addHeader('To', join(', ', $this->to)) |
|
469 | + ->addHeader('Date', date('r')); |
|
470 | 470 | |
471 | 471 | if ($this->hasAttachments()) { |
472 | 472 | $this->addHeader('MIME-Version', '1.0') |
473 | - ->addHeader( |
|
474 | - 'Content-Type', |
|
475 | - sprintf('multipart/mixed; boundary="%s"', $this->uid) |
|
476 | - ); |
|
473 | + ->addHeader( |
|
474 | + 'Content-Type', |
|
475 | + sprintf('multipart/mixed; boundary="%s"', $this->uid) |
|
476 | + ); |
|
477 | 477 | } |
478 | 478 | |
479 | 479 | return $this; |
@@ -577,7 +577,7 @@ discard block |
||
577 | 577 | protected function filterEmail(string $email): string |
578 | 578 | { |
579 | 579 | $rules = [ |
580 | - "\r" => '', |
|
580 | + "\r" => '', |
|
581 | 581 | "\n" => '', |
582 | 582 | "\t" => '', |
583 | 583 | '"' => '', |
@@ -602,7 +602,7 @@ discard block |
||
602 | 602 | protected function filterName(string $name): string |
603 | 603 | { |
604 | 604 | $rules = [ |
605 | - "\r" => '', |
|
605 | + "\r" => '', |
|
606 | 606 | "\n" => '', |
607 | 607 | "\t" => '', |
608 | 608 | '"' => "'", |