Code Duplication    Length = 8-8 lines in 2 locations

app/Support/Tencent/XgPusher.php 2 locations

@@ 205-212 (lines=8) @@
202
     * @param  mixed  $user
203
     * @return string[]|null
204
     */
205
    public static function queryDeviceTokensForUser($user)
206
    {
207
        $query = static::createService()->QueryTokensOfAccount(static::accountForUser($user));
208
209
        if (static::parseResult($query, null, null, $result)) {
210
            return is_array($result) ? array_get($result, 'tokens', []) : [];
211
        }
212
    }
213
214
    /**
215
     * Query all tags for the given device token.
@@ 220-227 (lines=8) @@
217
     * @param  string  $deviceToken
218
     * @return string[]|null
219
     */
220
    public static function queryTagsForDeviceToken($deviceToken)
221
    {
222
        $query = static::createService()->QueryTokenTags($deviceToken);
223
224
        if (static::parseResult($query, null, null, $result)) {
225
            return is_array($result) ? array_get($result, 'tags', []) : [];
226
        }
227
    }
228
229
    /**
230
     * Query all tags for the given user.