Code Duplication    Length = 3-3 lines in 2 locations

src/Envelopes/Builder.php 2 locations

@@ 961-963 (lines=3) @@
958
        if ($paymentAccountId !== null && !is_string($paymentAccountId)) {
959
            throw new \InvalidArgumentException('Payment account id must be string');
960
        }
961
        if ($amountConverted !== null && !is_int($amountConverted) && !is_float($amountConverted)) {
962
            throw new \InvalidArgumentException('Transaction amount converted must be float');
963
        }
964
965
        $this->replace('transaction_id', $transactionId);
966
        $this->replace('transaction_source', $transactionSource);
@@ 1179-1181 (lines=3) @@
1176
        if ($payoutMid !== null && !is_string($payoutMid)) {
1177
            throw new \InvalidArgumentException('Payout MID must be string');
1178
        }
1179
        if ($amountConverted !== null && !is_float($amountConverted) && !is_int($amountConverted)) {
1180
            throw new \InvalidArgumentException('Payout converted amount must be number');
1181
        }
1182
        if ($payoutCardBin !== null && !is_int($payoutCardBin)) {
1183
            throw new \InvalidArgumentException('Payout card BIN must be integer');
1184
        }