Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
44 | 1 | public function getInstance(): EsmtpTransport |
|
45 | { |
||
46 | 1 | if ($this->instance === null) { |
|
47 | 1 | $user = $this->options['username'] ?? null; |
|
48 | 1 | $password = $this->options['password'] ?? null; |
|
49 | 1 | $this->instance = (new EsmtpTransportFactory())->create(new Dsn('smtp', $this->host, $user, $password, $this->port, $this->options)); |
|
50 | 1 | } |
|
51 | 1 | ||
52 | return $this->instance; |
||
53 | 1 | } |
|
62 |
This check looks for private methods that have been defined, but are not used inside the class.