Code Duplication    Length = 3-3 lines in 4 locations

src/Envelopes/Builder.php 4 locations

@@ 1953-1955 (lines=3) @@
1950
        if ($paymentAccountId !== null && !is_string($paymentAccountId)) {
1951
            throw new \InvalidArgumentException('Payment account id must be string');
1952
        }
1953
        if ($amountConverted !== null && !is_int($amountConverted) && !is_float($amountConverted)) {
1954
            throw new \InvalidArgumentException('Transaction amount converted must be float');
1955
        }
1956
1957
        if ($merchantCountry !== null && !is_string($merchantCountry)) {
1958
            throw new \InvalidArgumentException('Merchant country must be string');
@@ 2183-2185 (lines=3) @@
2180
        if ($payoutMid !== null && !is_string($payoutMid)) {
2181
            throw new \InvalidArgumentException('Payout MID must be string');
2182
        }
2183
        if ($amountConverted !== null && !is_float($amountConverted) && !is_int($amountConverted)) {
2184
            throw new \InvalidArgumentException('Payout converted amount must be number');
2185
        }
2186
        if ($payoutCardBin !== null && !is_int($payoutCardBin)) {
2187
            throw new \InvalidArgumentException('Payout card BIN must be integer');
2188
        }
@@ 2407-2409 (lines=3) @@
2404
        if (!is_string($accountSystem)) {
2405
            throw new \InvalidArgumentException('Account system must be string');
2406
        }
2407
        if ($amountConverted !== null && !is_int($amountConverted) && !is_float($amountConverted)) {
2408
            throw new \InvalidArgumentException('Amount converted must be number');
2409
        }
2410
        if ($method !== null && !is_string($method)) {
2411
            throw new \InvalidArgumentException('Method must be string');
2412
        }
@@ 2856-2858 (lines=3) @@
2853
        if ($groupId !== null && !is_string($groupId)) {
2854
            throw new \InvalidArgumentException('Group id must be string');
2855
        }
2856
        if ($amountConverted !== null && !is_int($amountConverted) && !is_float($amountConverted)) {
2857
            throw new \InvalidArgumentException('Amount converted must be number');
2858
        }
2859
        if ($campaign !== null && !is_string($campaign)) {
2860
            throw new \InvalidArgumentException('Campaign must be string');
2861
        }