| @@ 23-32 (lines=10) @@ | ||
| 20 | return $this->getHttpOrigin(); |
|
| 21 | } |
|
| 22 | ||
| 23 | private function getHttpsOrigin(): string |
|
| 24 | { |
|
| 25 | $origin = 'https://' . $this->configuration['hostname']; |
|
| 26 | ||
| 27 | if ($this->configuration['ssl']['port'] !== 443) { |
|
| 28 | $origin .= ':' . $this->configuration['ssl']['port']; |
|
| 29 | } |
|
| 30 | ||
| 31 | return $origin; |
|
| 32 | } |
|
| 33 | ||
| 34 | private function getHttpOrigin(): string |
|
| 35 | { |
|
| @@ 34-43 (lines=10) @@ | ||
| 31 | return $origin; |
|
| 32 | } |
|
| 33 | ||
| 34 | private function getHttpOrigin(): string |
|
| 35 | { |
|
| 36 | $origin = 'http://' . $this->configuration['hostname']; |
|
| 37 | ||
| 38 | if ($this->configuration['expose']['port'] !== 80) { |
|
| 39 | $origin .= ':' . $this->configuration['expose']['port']; |
|
| 40 | } |
|
| 41 | ||
| 42 | return $origin; |
|
| 43 | } |
|
| 44 | } |
|
| 45 | ||