Code Duplication    Length = 16-16 lines in 2 locations

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

@@ 840-855 (lines=16) @@
837
     * @return \stdClass
838
     * @throws TwitchException
839
     */
840
    public function authChannelSubscriptions($token, $channel, $limit = 25, $offset = 0, $direction = 'DESC')
841
    {
842
        $this->checkConfig();
843
844
        $queryString = $this->helper->buildQueryString(array(
845
            'oauth_token' => $token,
846
            'client_id' => $this->getConfigParam('client_id'),
847
            'direction' => $direction,
848
            'limit' => $limit,
849
            'offset' => $offset
850
        ));
851
852
        $subscription = new Methods\Subscription($this->request);
853
854
        return $subscription->getSubscriptions($channel, $queryString);
855
    }
856
857
    /**
858
     * Returns user object if that user is subscribed
@@ 903-918 (lines=16) @@
900
     * @return \stdClass
901
     * @throws TwitchException
902
     */
903
    public function authStreamsFollowed($token, $limit = 25, $offset = 0, $hls = null)
904
    {
905
        $this->checkConfig();
906
907
        $queryString = $this->helper->buildQueryString(array(
908
            'oauth_token' => $token,
909
            'client_id' => $this->getConfigParam('client_id'),
910
            'limit' => $limit,
911
            'offset' => $offset,
912
            'hls' => $hls,
913
        ));
914
915
        $user = new Methods\User($this->request);
916
917
        return $user->getFollowedStreams($queryString);
918
    }
919
920
    /**
921
     * Get streams helper