Code Duplication    Length = 9-9 lines in 2 locations

src/Connectors/Twitter/TwitterOAuth.php 2 locations

@@ 97-105 (lines=9) @@
94
     *
95
     * @returns a key/value array containing oauth_token and oauth_token_secret
96
     */
97
    function getRequestToken($oauth_callback)
98
    {
99
        $parameters = array();
100
        $parameters['oauth_callback'] = $oauth_callback; 
101
        $request = $this->oAuthRequest($this->requestTokenURL(), 'GET', $parameters);
102
        $token = OAuthUtil::parse_parameters($request);
103
        $this->token = new OAuthConsumer($token['oauth_token'], $token['oauth_token_secret']);
104
        return $token;
105
    }
106
107
    /**
108
     * Get the authorize URL
@@ 133-141 (lines=9) @@
130
     *                "user_id" => "9436992",
131
     *                "screen_name" => "abraham")
132
     */
133
    function getAccessToken($oauth_verifier)
134
    {
135
        $parameters = array();
136
        $parameters['oauth_verifier'] = $oauth_verifier;
137
        $request = $this->oAuthRequest($this->accessTokenURL(), 'GET', $parameters);
138
        $token = OAuthUtil::parse_parameters($request);
139
        $this->token = new OAuthConsumer($token['oauth_token'], $token['oauth_token_secret']);
140
        return $token;
141
    }
142
143
    /**
144
     * One time exchange of username and password for access token and secret.