Code Duplication    Length = 10-11 lines in 2 locations

src/Card/Card.php 2 locations

@@ 624-634 (lines=11) @@
621
     *
622
     * @return array
623
     */
624
    public function getFreeCardInfo($beginDate, $endDate, $condSource = 0, $cardId = '')
625
    {
626
        $params = [
627
            'begin_date' => $beginDate,
628
            'end_date' => $endDate,
629
            'cond_source' => intval($condSource),
630
            'card_id' => $cardId,
631
        ];
632
633
        return $this->parseJSON('json', [self::API_CARD_CARD_INFO, $params]);
634
    }
635
636
    /**
637
     * 拉取会员卡数据接口.
@@ 645-654 (lines=10) @@
642
     *
643
     * @return array
644
     */
645
    public function getMemberCardInfo($beginDate, $endDate, $condSource = 0)
646
    {
647
        $params = [
648
            'begin_date' => $beginDate,
649
            'end_date' => $endDate,
650
            'cond_source' => intval($condSource),
651
        ];
652
653
        return $this->parseJSON('json', [self::API_CARD_MEMBER_CARD_INFO, $params]);
654
    }
655
656
    /**
657
     * 会员卡接口激活.