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