Code Duplication    Length = 3-3 lines in 4 locations

src/Envelopes/Builder.php 4 locations

@@ 2183-2185 (lines=3) @@
2180
        if ($paymentAccountId !== null && !is_string($paymentAccountId)) {
2181
            throw new \InvalidArgumentException('Payment account id must be string');
2182
        }
2183
        if ($amountConverted !== null && !is_int($amountConverted) && !is_float($amountConverted)) {
2184
            throw new \InvalidArgumentException('Transaction amount converted must be float');
2185
        }
2186
2187
        if ($merchantCountry !== null && !is_string($merchantCountry)) {
2188
            throw new \InvalidArgumentException('Merchant country must be string');
@@ 2413-2415 (lines=3) @@
2410
        if ($payoutMid !== null && !is_string($payoutMid)) {
2411
            throw new \InvalidArgumentException('Payout MID must be string');
2412
        }
2413
        if ($amountConverted !== null && !is_float($amountConverted) && !is_int($amountConverted)) {
2414
            throw new \InvalidArgumentException('Payout converted amount must be number');
2415
        }
2416
        if ($payoutCardBin !== null && !is_int($payoutCardBin)) {
2417
            throw new \InvalidArgumentException('Payout card BIN must be integer');
2418
        }
@@ 2639-2641 (lines=3) @@
2636
        if ($accountSystem !== null && !is_string($accountSystem)) {
2637
            throw new \InvalidArgumentException('Account system must be string');
2638
        }
2639
        if ($amountConverted !== null && !is_int($amountConverted) && !is_float($amountConverted)) {
2640
            throw new \InvalidArgumentException('Amount converted must be number');
2641
        }
2642
        if ($method !== null && !is_string($method)) {
2643
            throw new \InvalidArgumentException('Method must be string');
2644
        }
@@ 3105-3107 (lines=3) @@
3102
        if ($groupId !== null && !is_string($groupId)) {
3103
            throw new \InvalidArgumentException('Group id must be string');
3104
        }
3105
        if ($amountConverted !== null && !is_int($amountConverted) && !is_float($amountConverted)) {
3106
            throw new \InvalidArgumentException('Amount converted must be number');
3107
        }
3108
        if ($campaign !== null && !is_string($campaign)) {
3109
            throw new \InvalidArgumentException('Campaign must be string');
3110
        }