Code Duplication    Length = 3-3 lines in 3 locations

src/Filter/Floats.php 2 locations

@@ 41-43 (lines=3) @@
38
            throw new \InvalidArgumentException('"' . var_export($allowNull, true) . '" $allowNull was not a bool');
39
        }
40
41
        if ($minValue !== null && !is_float($minValue)) {
42
            throw new \InvalidArgumentException('"' . var_export($minValue, true) . '" $minValue was not a float');
43
        }
44
45
        if ($maxValue !== null && !is_float($maxValue)) {
46
            throw new \InvalidArgumentException('"' . var_export($maxValue, true) . '" $maxValue was not a float');
@@ 45-47 (lines=3) @@
42
            throw new \InvalidArgumentException('"' . var_export($minValue, true) . '" $minValue was not a float');
43
        }
44
45
        if ($maxValue !== null && !is_float($maxValue)) {
46
            throw new \InvalidArgumentException('"' . var_export($maxValue, true) . '" $maxValue was not a float');
47
        }
48
49
        if ($castInts !== false && $castInts !== true) {
50
            throw new \InvalidArgumentException('"' . var_export($castInts, true) . '" $castInts was not a bool');

src/Filter/Ints.php 1 location

@@ 43-45 (lines=3) @@
40
            throw new \InvalidArgumentException('"' . var_export($allowNull, true) . '" $allowNull was not a bool');
41
        }
42
43
        if ($minValue !== null && !is_int($minValue)) {
44
            throw new \InvalidArgumentException('"' . var_export($minValue, true) . '" $minValue was not an int');
45
        }
46
47
        if (!is_int($maxValue)) {
48
            throw new \InvalidArgumentException('"' . var_export($maxValue, true) . '" $maxValue was not an int');