Code Duplication    Length = 15-16 lines in 2 locations

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

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