Code Duplication    Length = 8-8 lines in 2 locations

src/BaseRequest.php 2 locations

@@ 92-99 (lines=8) @@
89
            }
90
        }
91
92
        if ($this->scheme === 'https') {
93
            if (isset($_SERVER['HTTPS_PROXY'])) {
94
                return $_SERVER['HTTPS_PROXY'];
95
            }
96
            if (isset($_SERVER['https_proxy'])) {
97
                return $_SERVER['https_proxy'];
98
            }
99
        }
100
101
        if ($this->scheme === 'http') {
102
            if (isset($_SERVER['HTTP_PROXY'])) {
@@ 101-108 (lines=8) @@
98
            }
99
        }
100
101
        if ($this->scheme === 'http') {
102
            if (isset($_SERVER['HTTP_PROXY'])) {
103
                return $_SERVER['HTTP_PROXY'];
104
            }
105
            if (isset($_SERVER['http_proxy'])) {
106
                return $_SERVER['http_proxy'];
107
            }
108
        }
109
        return null;
110
    }
111