Code Duplication    Length = 9-11 lines in 5 locations

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

@@ 126-134 (lines=9) @@
123
     * @return \stdClass
124
     * @throws TwitchException
125
     */
126
    public function userFollowChannels($user, $limit = null, $offset = null)
127
    {
128
        $queryString = $this->helper->buildQueryString(array(
129
            'limit' => $limit,
130
            'offset' => $offset,
131
        ));
132
133
        return $this->request->request(sprintf(self::URI_USER_FOLLOWS_CHANNEL, $user) . $queryString);
134
    }
135
136
    /**
137
     * Get the status of a follow relationship
@@ 213-223 (lines=11) @@
210
     * @return \stdClass
211
     * @throws TwitchException
212
     */
213
    public function teamList($limit = null, $offset = null)
214
    {
215
        $queryString = $this->helper->buildQueryString(array(
216
            'limit' => $limit,
217
            'offset' => $offset,
218
        ));
219
220
        $team = new Methods\Team($this->request);
221
222
        return $team->getTeams($queryString);
223
    }
224
225
    /**
226
     * Get all team members
@@ 244-252 (lines=9) @@
241
     * @return \stdClass
242
     * @throws TwitchException
243
     */
244
    public function channelFollows($channel, $limit = null, $offset = null)
245
    {
246
        $queryString = $this->helper->buildQueryString(array(
247
            'limit' => $limit,
248
            'offset' => $offset,
249
        ));
250
251
        return $this->request->request(sprintf(self::URI_CHANNEL_FOLLOWS, $channel) . $queryString);
252
    }
253
254
    /**
255
     * Get the specified channel's stream
@@ 276-285 (lines=10) @@
273
     * @throws TwitchException
274
     * @deprecated will be replaced by getStreams() function
275
     */
276
    public function streamSearch($query, $limit = null, $offset = null)
277
    {
278
        $queryString = $this->helper->buildQueryString(array(
279
            'query' => $query,
280
            'limit' => $limit,
281
            'offset' => $offset,
282
        ));
283
284
        return $this->request->request(self::URI_STREAMS_SEARCH . $queryString);
285
    }
286
287
    /**
288
     * Summarize streams
@@ 422-430 (lines=9) @@
419
     * @return \stdClass
420
     * @throws TwitchException
421
     */
422
    public function gamesTop($limit = null, $offset = null)
423
    {
424
        $queryString = $this->helper->buildQueryString(array(
425
            'limit' => $limit,
426
            'offset' => $offset,
427
        ));
428
429
        return $this->request->request(self::URI_GAMES_TOP . $queryString);
430
    }
431
432
    /**
433
     * Get HTML code for stream embedding