Code Duplication    Length = 8-9 lines in 3 locations

src/Stats/Stats.php 3 locations

@@ 301-308 (lines=8) @@
298
     *
299
     * @return array
300
     */
301
    public function cardSummary($from, $to, $condSource = 0)
302
    {
303
        $ext = [
304
            'cond_source' => intval($condSource),
305
        ];
306
307
        return $this->query(self::API_CARD_SUMMARY, $from, $to, $ext);
308
    }
309
310
    /**
311
     * 获取免费券数据接口.
@@ 320-328 (lines=9) @@
317
     *
318
     * @return array
319
     */
320
    public function freeCardSummary($from, $to, $condSource = 0, $cardId = '')
321
    {
322
        $ext = [
323
            'cond_source' => intval($condSource),
324
            'card_id' => $cardId,
325
        ];
326
327
        return $this->query(self::API_FREE_CARD_SUMMARY, $from, $to, $ext);
328
    }
329
330
    /**
331
     * 拉取会员卡数据接口.
@@ 339-346 (lines=8) @@
336
     *
337
     * @return array
338
     */
339
    public function memberCardSummary($from, $to, $condSource = 0)
340
    {
341
        $ext = [
342
            'cond_source' => intval($condSource),
343
        ];
344
345
        return $this->query(self::API_MEMBER_CARD_SUMMARY, $from, $to, $ext);
346
    }
347
348
    /**
349
     * 查询数据.