Code Duplication    Length = 7-7 lines in 2 locations

src/API/ExchangeAutodiscover.php 2 locations

@@ 190-196 (lines=7) @@
187
     *
188
     * @return string The discovered settings
189
     */
190
    protected function tryTopLevelDomain($email, $password, $username)
191
    {
192
        $topLevelDomain = $this->getTopLevelDomainFromEmail($email);
193
        $url = 'https://www.'.$topLevelDomain.$this->autodiscoverPath;
194
195
        return $this->doNTLMPost($url, $email, $password, $username);
196
    }
197
198
    /**
199
     * Perform an NTLM authenticated HTTPS POST to the 'autodiscover'
@@ 208-214 (lines=7) @@
205
     *
206
     * @return string The discovered settings
207
     */
208
    protected function tryAutoDiscoverSubDomain($email, $password, $username)
209
    {
210
        $topLevelDomain = $this->getTopLevelDomainFromEmail($email);
211
        $url = 'https://autodiscover.'.$topLevelDomain.$this->autodiscoverPath;
212
213
        return $this->doNTLMPost($url, $email, $password, $username);
214
    }
215
216
    /**
217
     * Perform an unauthenticated HTTP GET in an attempt to get redirected