Completed
Push — AddActivityLog ( afa80e...195157 )
by D.
45:05 queued 35:04
created

Mail   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 21
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A setup() 0 10 2
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