Passed
Push — hotfix/fix-counts ( b4ff8e...673622 )
by Paul
04:39
created

EmailDefaults::defaults()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 17
Code Lines 15

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 13
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 15
nc 1
nop 0
dl 0
loc 17
ccs 13
cts 13
cp 1
crap 1
rs 9.7666
c 1
b 0
f 0
1
<?php
2
3
namespace GeminiLabs\SiteReviews\Defaults;
4
5
use GeminiLabs\SiteReviews\Defaults\DefaultsAbstract as Defaults;
6
7
class EmailDefaults extends Defaults
8
{
9
	/**
10
	 * @return array
11
	 */
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
		];
30
	}
31
}
32