Code Duplication    Length = 8-8 lines in 3 locations

src/BenatEspina/StackExchangeApiClient/Api/UserApi.php 3 locations

@@ 61-68 (lines=8) @@
58
     *
59
     * @return array
60
     */
61
    public function all($params = self::QUERY_PARAMS, $serialize = true)
62
    {
63
        $response = Http::instance()->get(
64
            self::URL, $params
65
        );
66
67
        return $serialize === true ? UserSerializer::serialize($response) : $response;
68
    }
69
70
    /**
71
     * Gets the users identified in ids in {ids}.
@@ 124-131 (lines=8) @@
121
     *
122
     * @return array
123
     */
124
    public function moderators(array $params = [], $serialize = true)
125
    {
126
        $response = Http::instance()->get(
127
            self::URL . 'moderators', $params
128
        );
129
130
        return $serialize === true ? UserSerializer::serialize($response) : $response;
131
    }
132
133
    /**
134
     * Returns those users on a site who both have moderator powers, and were actually elected.
@@ 143-150 (lines=8) @@
140
     *
141
     * @return array
142
     */
143
    public function electedModerators(array $params = [], $serialize = true)
144
    {
145
        $response = Http::instance()->get(
146
            self::URL . 'moderators/elected', $params
147
        );
148
149
        return $serialize === true ? UserSerializer::serialize($response) : $response;
150
    }
151
}
152