Code Duplication    Length = 3-3 lines in 2 locations

src/Valdi/Validator/AbstractParametrizedValidator.php 2 locations

@@ 33-35 (lines=3) @@
30
     * the parameters
31
     */
32
    protected function validateParameterCount($name, $parameterAmount, array $parameters) {
33
        if (count($parameters) !== $parameterAmount) {
34
            throw new ValidationException('"' . $name . '" expects ' . $parameterAmount . ' parameter.');
35
        }
36
    }
37
38
    /**
@@ 50-52 (lines=3) @@
47
     * the parameters
48
     */
49
    protected function validateMinParameterCount($name, $parameterAmount, array $parameters) {
50
        if (count($parameters) < $parameterAmount) {
51
            throw new ValidationException('"' . $name . '" expects at least ' . $parameterAmount . ' parameter.');
52
        }
53
    }
54
}
55