Code Duplication    Length = 7-8 lines in 2 locations

src/E2Card/Client.php 1 location

@@ 57-64 (lines=8) @@
54
     * @return Init
55
     * @throws HttpException
56
     */
57
    public function init(string $orderId, string $cardId, int $amount, array $extra = []): Init
58
    {
59
        $extra['Amount'] = $amount;
60
        $extra['CardId'] = $cardId;
61
        $extra['OrderId'] = $orderId;
62
63
        return new Init($this->send($this->makeRequest('Init', $extra)));
64
    }
65
66
    /**
67
     * Make payout to card.

src/Merchant/Client.php 1 location

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