Code Duplication    Length = 7-8 lines in 2 locations

src/E2Card/Client.php 1 location

@@ 66-73 (lines=8) @@
63
     * @return Init
64
     * @throws HttpException
65
     */
66
    public function init(string $orderId, string $cardId, int $amount, array $extra = []): Init
67
    {
68
        $extra['Amount'] = $amount;
69
        $extra['CardId'] = $cardId;
70
        $extra['OrderId'] = $orderId;
71
72
        return new Init($this->send($this->makeRequest('Init', $extra)));
73
    }
74
75
    /**
76
     * 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.