Code Duplication    Length = 5-7 lines in 2 locations

src/Core/Request.php 2 locations

@@ 139-143 (lines=5) @@
136
                (isset($_SERVER['HTTPS']) && 'off' !== $_SERVER['HTTPS']) ||
137
                (isset($_SERVER['SERVER_PORT']) && 443 == $_SERVER['SERVER_PORT'])
138
            ) {
139
                if (empty($controller)) {
140
                    $url = 'https://' . $host . '/' . $url;
141
                } else {
142
                    $url = 'https://' . $host . '/' . $controller . '/' . $url;
143
                }
144
            } else {
145
                if (empty($controller)) {
146
                    $url = 'http://' . $host . '/' . $url;
@@ 144-150 (lines=7) @@
141
                } else {
142
                    $url = 'https://' . $host . '/' . $controller . '/' . $url;
143
                }
144
            } else {
145
                if (empty($controller)) {
146
                    $url = 'http://' . $host . '/' . $url;
147
                } else {
148
                    $url = 'http://' . $host . '/' . $controller . '/' . $url;
149
                }
150
            }
151
        } else {
152
            if (empty($controller)) {
153
                $url = '/' . $url;