Code Duplication    Length = 13-13 lines in 3 locations

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

@@ 543-555 (lines=13) @@
540
     * @param   string
541
     * @return  stdClass
542
     */
543
    public function authUserGet($token)
544
    {
545
        if ($this->auth_config === false) {
546
            $this->authConfigException();
547
        }
548
549
        $query_string = $this->buildQueryString(array(
550
            'oauth_token' => $token,
551
            'client_id' => $this->auth_config['client_id'],
552
        ));
553
554
        return $this->request(self::URI_USER_AUTH . $query_string);
555
    }
556
557
    /**
558
     * Get the authenticated channel
@@ 563-575 (lines=13) @@
560
     * @param   string
561
     * @return  stdClass
562
     */
563
    public function authChannelGet($token)
564
    {
565
        if ($this->auth_config === false) {
566
            $this->authConfigException();
567
        }
568
569
        $query_string = $this->buildQueryString(array(
570
            'oauth_token' => $token,
571
            'client_id' => $this->auth_config['client_id'],
572
        ));
573
574
        return $this->request(self::URI_CHANNEL_AUTH . $query_string);
575
    }
576
577
    /**
578
     * Returns an array of users who are editors of specified channel
@@ 584-596 (lines=13) @@
581
     * @param   string
582
     * @return  stdClass
583
     */
584
    public function authChannelEditors($token, $channel)
585
    {
586
        if ($this->auth_config === false) {
587
            $this->authConfigException();
588
        }
589
590
        $query_string = $this->buildQueryString(array(
591
            'oauth_token' => $token,
592
            'client_id' => $this->auth_config['client_id'],
593
        ));
594
595
        return $this->request(sprintf(self::URI_CHANNEL_EDITORS_AUTH, $channel) . $query_string);
596
    }
597
598
    /**
599
     * @description Returns an array of subscriptions who are subscribed to specified channel