Code Duplication    Length = 3-3 lines in 4 locations

src/Envelopes/Builder.php 4 locations

@@ 1972-1974 (lines=3) @@
1969
        if ($paymentAccountId !== null && !is_string($paymentAccountId)) {
1970
            throw new \InvalidArgumentException('Payment account id must be string');
1971
        }
1972
        if ($amountConverted !== null && !is_int($amountConverted) && !is_float($amountConverted)) {
1973
            throw new \InvalidArgumentException('Transaction amount converted must be float');
1974
        }
1975
1976
        if ($merchantCountry !== null && !is_string($merchantCountry)) {
1977
            throw new \InvalidArgumentException('Merchant country must be string');
@@ 2202-2204 (lines=3) @@
2199
        if ($payoutMid !== null && !is_string($payoutMid)) {
2200
            throw new \InvalidArgumentException('Payout MID must be string');
2201
        }
2202
        if ($amountConverted !== null && !is_float($amountConverted) && !is_int($amountConverted)) {
2203
            throw new \InvalidArgumentException('Payout converted amount must be number');
2204
        }
2205
        if ($payoutCardBin !== null && !is_int($payoutCardBin)) {
2206
            throw new \InvalidArgumentException('Payout card BIN must be integer');
2207
        }
@@ 2426-2428 (lines=3) @@
2423
        if (!is_string($accountSystem)) {
2424
            throw new \InvalidArgumentException('Account system must be string');
2425
        }
2426
        if ($amountConverted !== null && !is_int($amountConverted) && !is_float($amountConverted)) {
2427
            throw new \InvalidArgumentException('Amount converted must be number');
2428
        }
2429
        if ($method !== null && !is_string($method)) {
2430
            throw new \InvalidArgumentException('Method must be string');
2431
        }
@@ 2882-2884 (lines=3) @@
2879
        if ($groupId !== null && !is_string($groupId)) {
2880
            throw new \InvalidArgumentException('Group id must be string');
2881
        }
2882
        if ($amountConverted !== null && !is_int($amountConverted) && !is_float($amountConverted)) {
2883
            throw new \InvalidArgumentException('Amount converted must be number');
2884
        }
2885
        if ($campaign !== null && !is_string($campaign)) {
2886
            throw new \InvalidArgumentException('Campaign must be string');
2887
        }