Code Duplication    Length = 10-11 lines in 4 locations

src/jofner/SDK/TwitchTV/TwitchSDK.php 4 locations

@@ 198-207 (lines=10) @@
195
     * @return \stdClass
196
     * @throws TwitchException
197
     */
198
    public function userUnfollowChannel($user, $channel, $userToken)
199
    {
200
        $queryString = $this->helper->buildQueryString(array(
201
            'oauth_token' => $userToken,
202
        ));
203
204
        $follow = new Methods\Follow($this->request);
205
206
        return $follow->unfollowChannel($user, $channel, $queryString);
207
    }
208
209
    /**
210
     * Get the specified channel
@@ 255-265 (lines=11) @@
252
     * @return \stdClass
253
     * @throws TwitchException
254
     */
255
    public function teamList($limit = null, $offset = null)
256
    {
257
        $queryString = $this->helper->buildQueryString(array(
258
            'limit' => $limit,
259
            'offset' => $offset,
260
        ));
261
262
        $team = new Methods\Team($this->request);
263
264
        return $team->getTeams($queryString);
265
    }
266
267
    /**
268
     * Get all team members
@@ 506-515 (lines=10) @@
503
     * @return \stdClass
504
     * @throws TwitchException
505
     */
506
    public function chatEmoticonsImages($emoteset = null)
507
    {
508
        $queryString = $this->helper->buildQueryString(array(
509
            'emotesets' => $emoteset,
510
        ));
511
512
        $chat = new Methods\Chat($this->request);
513
514
        return $chat->getEmoticonImages($queryString);
515
    }
516
517
    /**
518
     * Returns a list of chat badges
@@ 537-547 (lines=11) @@
534
     * @return \stdClass
535
     * @throws TwitchException
536
     */
537
    public function gamesTop($limit = null, $offset = null)
538
    {
539
        $queryString = $this->helper->buildQueryString(array(
540
            'limit' => $limit,
541
            'offset' => $offset,
542
        ));
543
544
        $game = new Methods\Game($this->request);
545
546
        return $game->getTop($queryString);
547
    }
548
549
    /**
550
     * Get HTML code for stream embedding