Mail::setup()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 0
Metric Value
dl 0
loc 10
ccs 0
cts 9
cp 0
rs 9.9332
c 0
b 0
f 0
cc 2
nc 2
nop 0
crap 6
1
<?php
2
3
namespace SET\Handlers\DBConfigs;
4
5
class Mail extends ConfigAbstract
6
{
7
    public $allowable = [
8
        'mail.host',
9
        'mail.port',
10
        'mail.encryption',
11
        'mail.username',
12
        'mail.password',
13
    ];
14
15
    public function setup()
16
    {
17
        $this->setConfigValues('mail.driver');
18
        $this->setConfigValues('mail.from.address');
19
        $this->setConfigValues('mail.from.name');
20
21
        if (config('mail.driver') == 'smtp') {
22
            $this->implementAllowable();
23
        }
24
    }
25
}
26