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); |
||
34 | 2 | private function getHttpOrigin(): string |
|
35 | { |
||
36 | 2 | $origin = 'http://' . $this->configuration['hostname']; |
|
37 | |||
38 | 2 | if ($this->configuration['expose']['port'] !== 80) { |
|
39 | 1 | $origin .= ':' . $this->configuration['expose']['port']; |
|
40 | } |
||
41 | |||
42 | 2 | return $origin; |
|
43 | } |
||
44 | } |
||
45 |