Code Duplication    Length = 16-16 lines in 2 locations

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

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