Completed
Pull Request — master (#48)
by Shawn
05:13 queued 02:49
created

Mail::setup()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 10
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 10
rs 9.4285
cc 2
eloc 6
nc 2
nop 0
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.password',
12
    ];
13
14
    public function setup()
15
    {
16
        $this->setConfigValues('mail.driver');
17
        $this->setConfigValues('mail.from.address');
18
        $this->setConfigValues('mail.from.name');
19
20
        if (config('mail.driver') == 'smtp') {
21
            $this->implementAllowable();
22
        }
23
    }
24
}
25