| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 10 |
| Ratio | 100 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 23 | 2 | private function getHttpsOrigin(): string |
|
| 24 | { |
||
| 25 | 2 | $origin = 'https://' . $this->configuration['hostname']; |
|
| 26 | |||
| 27 | 2 | if ($this->configuration['ssl']['port'] !== 443) { |
|
| 28 | 1 | $origin .= ':' . $this->configuration['ssl']['port']; |
|
| 29 | } |
||
| 30 | |||
| 31 | 2 | return $origin; |
|
| 32 | } |
||
| 33 | |||
| 45 |