Code Duplication    Length = 7-7 lines in 2 locations

src/API/ExchangeAutodiscover.php 2 locations

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