Code Duplication    Length = 3-3 lines in 2 locations

src/API/Universal/Vat.php 2 locations

@@ 30-32 (lines=3) @@
27
            throw new InvalidArgumentException('string is not a valid number');
28
        }
29
30
        if (ceil((float) $percentage) >= 100 && floor((float) $percentage) >= 100) {
31
            throw new InvalidArgumentException('Value to high, must be at most 99.999.');
32
        }
33
34
        if (floor((float) $percentage) <= 0 && ceil((float) $percentage) != 1) {
35
            throw new InvalidArgumentException('Value to low, must be more than 0.');
@@ 34-36 (lines=3) @@
31
            throw new InvalidArgumentException('Value to high, must be at most 99.999.');
32
        }
33
34
        if (floor((float) $percentage) <= 0 && ceil((float) $percentage) != 1) {
35
            throw new InvalidArgumentException('Value to low, must be more than 0.');
36
        }
37
    }
38
}
39