Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 2.0625 |
Changes | 0 |
1 | <?php |
||
26 | 81 | public static function create( |
|
27 | string $type = 'sendmail', |
||
28 | string $server = null, |
||
29 | int $port = 25, |
||
30 | string $user = null, |
||
31 | string $pass = null, |
||
32 | string $encryption = null |
||
33 | ): Swift_Transport { |
||
34 | 81 | if ($type === 'smtp') { |
|
35 | return self::getSmtpTransport($server, $port, $user, $pass, $encryption); |
||
36 | } |
||
37 | |||
38 | 81 | return self::getMailTransport(); |
|
39 | } |
||
65 |