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
        $channels = new Methods\Subscription;
807
808
        $channels->getSubscriptions($channel, $queryString);
809
    }
810
811
    /**
812
     * List the live streams that the authenticated user is following
@@ 821-837 (lines=17) @@
818
     * @return \stdClass
819
     * @throws TwitchException
820
     */
821
    public function authStreamsFollowed($token, $limit = 25, $offset = 0, $hls = null)
822
    {
823
        if ($this->authConfig === false) {
824
            $this->authConfigException();
825
        }
826
827
        $queryString = $this->helper->buildQueryString(array(
828
            'oauth_token' => $token,
829
            'client_id' => $this->authConfig['client_id'],
830
            'limit' => $limit,
831
            'offset' => $offset,
832
            'hls' => $hls,
833
        ));
834
835
        $user = new Methods\User($this->request);
836
        return $user->getFollowedStreams($queryString);
837
    }
838
839
    /**
840
     * Get streams helper