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

EmailDefaults   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 16
dl 0
loc 22
ccs 13
cts 13
cp 1
rs 10
c 1
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A defaults() 0 17 1
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