Code Duplication    Length = 17-18 lines in 2 locations

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

@@ 709-726 (lines=18) @@
706
     * @return \stdClass
707
     * @throws TwitchException
708
     */
709
    public function authChannelSubscriptions($token, $channel, $limit = 25, $offset = 0, $direction = 'DESC')
710
    {
711
        if ($this->authConfig === false) {
712
            $this->authConfigException();
713
        }
714
715
        $queryString = $this->helper->buildQueryString(array(
716
            'oauth_token' => $token,
717
            'client_id' => $this->authConfig['client_id'],
718
            'direction' => $direction,
719
            'limit' => $limit,
720
            'offset' => $offset
721
        ));
722
723
        $channels = new Methods\Subscription;
724
725
        $channels->getSubscriptions($channel, $queryString);
726
    }
727
728
    /**
729
     * List the live streams that the authenticated user is following
@@ 738-754 (lines=17) @@
735
     * @return \stdClass
736
     * @throws TwitchException
737
     */
738
    public function authStreamsFollowed($token, $limit = 25, $offset = 0, $hls = null)
739
    {
740
        if ($this->authConfig === false) {
741
            $this->authConfigException();
742
        }
743
744
        $queryString = $this->helper->buildQueryString(array(
745
            'oauth_token' => $token,
746
            'client_id' => $this->authConfig['client_id'],
747
            'limit' => $limit,
748
            'offset' => $offset,
749
            'hls' => $hls,
750
        ));
751
752
        $user = new Methods\User($this->request);
753
        return $user->getFollowedStreams($queryString);
754
    }
755
756
    /**
757
     * Get streams helper