| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | protected function defaults() |
||
| 13 | { |
||
| 14 | $fromName = wp_specialchars_decode( (string)get_option( 'blogname' ), ENT_QUOTES ); |
||
| 15 | $fromEmail = (string)get_option( 'admin_email' ); |
||
| 16 | return [ |
||
| 17 | 'after' => '', |
||
| 18 | 'attachments' => [], |
||
| 19 | 'bcc' => '', |
||
| 20 | 'before' => '', |
||
| 21 | 'cc' => '', |
||
| 22 | 'from' => $fromName.' <'.$fromEmail.'>', |
||
| 23 | 'message' => '', |
||
| 24 | 'reply-to' => '', |
||
| 25 | 'subject' => '', |
||
| 26 | 'template' => '', |
||
| 27 | 'template-tags' => [], |
||
| 28 | 'to' => '', |
||
| 29 | ]; |
||
| 32 |