Code Duplication    Length = 3-3 lines in 2 locations

server.php 2 locations

@@ 42-44 (lines=3) @@
39
if (isset($configuration['ssl'])) {
40
    $origin = 'https://' . $configuration['hostname'];
41
42
    if ($configuration['ssl']['port'] !== 443) {
43
        $origin .= ':' . $configuration['ssl']['port'];
44
    }
45
} else {
46
    $origin = 'http://' . $configuration['hostname'];
47
@@ 48-50 (lines=3) @@
45
} else {
46
    $origin = 'http://' . $configuration['hostname'];
47
48
    if ($configuration['expose']['port'] !== 80) {
49
        $origin .= ':' . $configuration['expose']['port'];
50
    }
51
}
52
53
$injector->define(Handler::class, [