Code Duplication    Length = 17-18 lines in 2 locations

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

@@ 792-809 (lines=18) @@
789
     * @return \stdClass
790
     * @throws TwitchException
791
     */
792
    public function authChannelSubscriptions($token, $channel, $limit = 25, $offset = 0, $direction = 'DESC')
793
    {
794
        if ($this->authConfig === false) {
795
            $this->authConfigException();
796
        }
797
798
        $queryString = $this->helper->buildQueryString(array(
799
            'oauth_token' => $token,
800
            'client_id' => $this->authConfig['client_id'],
801
            'direction' => $direction,
802
            'limit' => $limit,
803
            'offset' => $offset
804
        ));
805
806
        $subscription = new Methods\Subscription($this->request);
807
808
        $subscription->getSubscriptions($channel, $queryString);
809
    }
810
811
    /**
812
     * Returns user object if that user is subscribed
@@ 871-887 (lines=17) @@
868
     * @return \stdClass
869
     * @throws TwitchException
870
     */
871
    public function authStreamsFollowed($token, $limit = 25, $offset = 0, $hls = null)
872
    {
873
        if ($this->authConfig === false) {
874
            $this->authConfigException();
875
        }
876
877
        $queryString = $this->helper->buildQueryString(array(
878
            'oauth_token' => $token,
879
            'client_id' => $this->authConfig['client_id'],
880
            'limit' => $limit,
881
            'offset' => $offset,
882
            'hls' => $hls,
883
        ));
884
885
        $user = new Methods\User($this->request);
886
        return $user->getFollowedStreams($queryString);
887
    }
888
889
    /**
890
     * Get streams helper