Code Duplication    Length = 7-8 lines in 2 locations

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.

src/E2Card/Client.php 1 location

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