| Conditions | 3 |
| Paths | 4 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | 3 | private function applyTemplates(array $context, TemplatedEmail $message): void |
|
| 39 | { |
||
| 40 | 3 | $message->context($context); |
|
| 41 | |||
| 42 | 3 | if ($this->messageOptions->hasHtmlTemplate()) { |
|
| 43 | 3 | $message->htmlTemplate($this->messageOptions->getHtmlTemplate()); |
|
| 44 | } |
||
| 45 | |||
| 46 | 3 | if ($this->messageOptions->hasTextTemplate()) { |
|
| 47 | 3 | $message->textTemplate($this->messageOptions->getTextTemplate()); |
|
| 48 | } |
||
| 51 |