Code Duplication    Length = 6-6 lines in 2 locations

src/HttpClient.php 2 locations

@@ 136-141 (lines=6) @@
133
134
            // enabled request_fulluri unless it is explicitly disabled
135
            switch (parse_url($url, PHP_URL_SCHEME)) {
136
                case 'http': // default request_fulluri to true
137
                    $reqFullUriEnv = getenv('HTTP_PROXY_REQUEST_FULLURI');
138
                    if ($reqFullUriEnv === false || $reqFullUriEnv === '' || (strtolower($reqFullUriEnv) !== 'false' && (bool) $reqFullUriEnv)) {
139
                        $options['http']['request_fulluri'] = true;
140
                    }
141
                    break;
142
                case 'https': // default request_fulluri to true
143
                    $reqFullUriEnv = getenv('HTTPS_PROXY_REQUEST_FULLURI');
144
                    if ($reqFullUriEnv === false || $reqFullUriEnv === '' || (strtolower($reqFullUriEnv) !== 'false' && (bool) $reqFullUriEnv)) {
@@ 142-147 (lines=6) @@
139
                        $options['http']['request_fulluri'] = true;
140
                    }
141
                    break;
142
                case 'https': // default request_fulluri to true
143
                    $reqFullUriEnv = getenv('HTTPS_PROXY_REQUEST_FULLURI');
144
                    if ($reqFullUriEnv === false || $reqFullUriEnv === '' || (strtolower($reqFullUriEnv) !== 'false' && (bool) $reqFullUriEnv)) {
145
                        $options['http']['request_fulluri'] = true;
146
                    }
147
                    break;
148
            }
149
150
            if (isset($proxy['user'])) {