Code Duplication    Length = 15-16 lines in 2 locations

src/jofner/SDK/TwitchTV/TwitchSDK.php 2 locations

@@ 675-689 (lines=15) @@
672
     * @return \stdClass
673
     * @throws TwitchException
674
     */
675
    public function authLoginURL($scope)
676
    {
677
        $this->checkConfig();
678
679
        $queryString = $this->helper->buildQueryString(array(
680
            'response_type' => 'code',
681
            'client_id' => $this->getConfigParam('client_id'),
682
            'redirect_uri' => $this->getConfigParam('redirect_uri'),
683
            'scope' => $scope,
684
        ));
685
686
        $auth = new Methods\Auth($this->request);
687
688
        return $auth->getLoginURL($queryString);
689
    }
690
691
    /**
692
     * Get authentication access token
@@ 697-712 (lines=16) @@
694
     * @return \stdClass
695
     * @throws TwitchException
696
     */
697
    public function authAccessTokenGet($code)
698
    {
699
        $this->checkConfig();
700
701
        $queryString = $this->helper->buildQueryString(array(
702
            'client_id' => $this->getConfigParam('client_id'),
703
            'client_secret' => $this->getConfigParam('client_secret'),
704
            'grant_type' => 'authorization_code',
705
            'redirect_uri' => $this->getConfigParam('redirect_uri'),
706
            'code' => $code,
707
        ));
708
709
        $auth = new Methods\Auth($this->request);
710
711
        return $auth->getAccessToken($queryString);
712
    }
713
714
    /**
715
     * Get the authenticated user