| Conditions | 3 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 3 |
| 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 | } |
|
| 54 | |||
| 55 | private function getScheme() |
||
| 62 |
This check looks for private methods that have been defined, but are not used inside the class.