Code Duplication    Length = 9-9 lines in 2 locations

src/TwitterAds.php 2 locations

@@ 700-708 (lines=9) @@
697
        $this->accountId = $accountId;
698
    }
699
700
    public function getRequestToken($oauth_callback)
701
    {
702
        $parameters = array();
703
        $parameters['oauth_callback'] = $oauth_callback;
704
        $request = $this->oAuthRequest($this->requestTokenURL(), 'GET', $parameters);
705
        $token = self::parse_parameters($request);
706
707
        return $token;
708
    }
709
710
    /**
711
     * Exchange request token and secret for an access token and
@@ 720-728 (lines=9) @@
717
     * "user_id" => "9436992",
718
     * "screen_name" => "abraham")
719
     */
720
    public function getAccessToken($oauth_verifier)
721
    {
722
        $parameters = array();
723
        $parameters['oauth_verifier'] = $oauth_verifier;
724
        $request = $this->oAuthRequest($this->accessTokenURL(), 'GET', $parameters);
725
        $token = self::parse_parameters($request);
726
727
        return $token;
728
    }
729
730
    // This function takes a input like a=b&a=c&d=e and returns the parsed
731
    // parameters like this