| Conditions | 1 |
| Paths | 1 |
| Total Lines | 24 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | public function send(Message $message): array |
||
| 24 | { |
||
| 25 | $headers = $message->getHeaders( |
||
| 26 | [ |
||
| 27 | 'from', |
||
| 28 | 'sender', |
||
| 29 | 'replyTo', |
||
| 30 | 'readReceipt', |
||
| 31 | 'returnPath', |
||
| 32 | 'to', |
||
| 33 | 'cc', |
||
| 34 | 'subject', |
||
| 35 | ] |
||
| 36 | ); |
||
| 37 | |||
| 38 | $message = trim($message->getBodyString()); |
||
| 39 | $result = [ |
||
| 40 | 'headers' => $headers, |
||
| 41 | 'message' => $message, |
||
| 42 | ]; |
||
| 43 | |||
| 44 | Configure::write('test_transport_email', $result); |
||
| 45 | |||
| 46 | return $result; |
||
| 47 | } |
||
| 49 |