Code Duplication    Length = 7-8 lines in 2 locations

src/E2CardAPI.php 1 location

@@ 68-75 (lines=8) @@
65
     * @return Init
66
     * @throws Exception\HttpException
67
     */
68
    public function init(string $orderId, string $cardId, int $amount, array $extra = []): Init
69
    {
70
        $extra['Amount'] = $amount;
71
        $extra['CardId'] = $cardId;
72
        $extra['OrderId'] = $orderId;
73
74
        return new Init($this->send($this->makeRequest('Init', $extra)));
75
    }
76
77
    /**
78
     * Make payout to card.

src/MerchantAPI.php 1 location

@@ 62-68 (lines=7) @@
59
     * @return Init
60
     * @throws Exception\HttpException
61
     */
62
    public function init(string $orderId, int $amount, array $extra = []): Init
63
    {
64
        $extra['Amount'] = $amount;
65
        $extra['OrderId'] = $orderId;
66
67
        return new Init($this->send($this->makeRequest('Init', $extra)));
68
    }
69
70
    /**
71
     * Init a new payment session.