Code Duplication    Length = 15-16 lines in 2 locations

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

@@ 785-800 (lines=16) @@
782
     * @return \stdClass
783
     * @throws TwitchException
784
     */
785
    public function authChannelSubscriptions($token, $channel, $limit = 25, $offset = 0, $direction = 'DESC')
786
    {
787
        $this->checkConfig();
788
789
        $queryString = $this->helper->buildQueryString(array(
790
            'oauth_token' => $token,
791
            'client_id' => $this->getConfigParam('client_id'),
792
            'direction' => $direction,
793
            'limit' => $limit,
794
            'offset' => $offset
795
        ));
796
797
        $subscription = new Methods\Subscription($this->request);
798
799
        $subscription->getSubscriptions($channel, $queryString);
800
    }
801
802
    /**
803
     * Returns user object if that user is subscribed
@@ 852-866 (lines=15) @@
849
     * @return \stdClass
850
     * @throws TwitchException
851
     */
852
    public function authStreamsFollowed($token, $limit = 25, $offset = 0, $hls = null)
853
    {
854
        $this->checkConfig();
855
856
        $queryString = $this->helper->buildQueryString(array(
857
            'oauth_token' => $token,
858
            'client_id' => $this->getConfigParam('client_id'),
859
            'limit' => $limit,
860
            'offset' => $offset,
861
            'hls' => $hls,
862
        ));
863
864
        $user = new Methods\User($this->request);
865
        return $user->getFollowedStreams($queryString);
866
    }
867
868
    /**
869
     * Get streams helper