Code Duplication    Length = 16-16 lines in 2 locations

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

@@ 847-862 (lines=16) @@
844
     * @return \stdClass
845
     * @throws TwitchException
846
     */
847
    public function authChannelSubscriptions($token, $channel, $limit = 25, $offset = 0, $direction = 'DESC')
848
    {
849
        $this->checkConfig();
850
851
        $queryString = $this->helper->buildQueryString(array(
852
            'oauth_token' => $token,
853
            'client_id' => $this->getConfigParam('client_id'),
854
            'direction' => $direction,
855
            'limit' => $limit,
856
            'offset' => $offset
857
        ));
858
859
        $subscription = new Methods\Subscription($this->request);
860
861
        return $subscription->getSubscriptions($channel, $queryString);
862
    }
863
864
    /**
865
     * Returns user object if that user is subscribed
@@ 910-925 (lines=16) @@
907
     * @return \stdClass
908
     * @throws TwitchException
909
     */
910
    public function authStreamsFollowed($token, $limit = 25, $offset = 0, $hls = null)
911
    {
912
        $this->checkConfig();
913
914
        $queryString = $this->helper->buildQueryString(array(
915
            'oauth_token' => $token,
916
            'client_id' => $this->getConfigParam('client_id'),
917
            'limit' => $limit,
918
            'offset' => $offset,
919
            'hls' => $hls,
920
        ));
921
922
        $user = new Methods\User($this->request);
923
924
        return $user->getFollowedStreams($queryString);
925
    }
926
927
    /**
928
     * Get streams helper