Code Duplication    Length = 8-8 lines in 3 locations

src/BenatEspina/StackExchangeApiClient/Api/AnswerApi.php 2 locations

@@ 406-413 (lines=8) @@
403
     *
404
     * @return array|Answer
405
     */
406
    public function getOfUserIds($ids, array $params = self::QUERY_PARAMS, $serialize = true)
407
    {
408
        $response = Http::instance()->get(
409
            'users/' . (is_array($ids) ? implode(';', $ids) : $ids) . '/' . self::URL, $params
410
        );
411
412
        return $serialize === true ? AnswerSerializer::instance()->serialize($response) : $response;
413
    }
414
415
    /**
416
     * Returns the answers owned by the user associated with the given access_token.
@@ 451-458 (lines=8) @@
448
     *
449
     * @return array|Answer
450
     */
451
    public function getTopOfUserAndTags($userId, $tags, array $params = self::QUERY_PARAMS, $serialize = true)
452
    {
453
        $response = Http::instance()->get(
454
            'users/' . $userId . '/tags/' . (is_array($tags) ? implode(';', $tags) : $tags) . '/top-' . self::URL, $params
455
        );
456
457
        return $serialize === true ? AnswerSerializer::instance()->serialize($response) : $response;
458
    }
459
460
    /**
461
     * Returns the top 30 answers the user associated with the given

src/BenatEspina/StackExchangeApiClient/Api/AccessTokenApi.php 1 location

@@ 37-44 (lines=8) @@
34
     *
35
     * @return array
36
     */
37
    public function invalidate($accessTokens, array $params = [], $serialize = true)
38
    {
39
        $response = Http::instance()->get(
40
            self::URL . (is_array($accessTokens) ? implode(';', $accessTokens) : $accessTokens) . '/invalidate', $params
41
        );
42
43
        return $serialize === true ? AccessTokenSerializer::instance()->serialize($response) : $response;
44
    }
45
46
    /**
47
     * Reads the properties for a set of access tokens.