Code Duplication    Length = 10-11 lines in 2 locations

src/Card/Card.php 2 locations

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