Code Duplication    Length = 10-10 lines in 2 locations

src/Assert.php 2 locations

@@ 1060-1069 (lines=10) @@
1057
        );
1058
    }
1059
1060
    public static function minCount($array, $min, $message = '')
1061
    {
1062
        if (count($array) < $min) {
1063
            static::reportInvalidArgument(sprintf(
1064
                $message ?: 'Expected an array to contain at least %2$d elements. Got: %d',
1065
                count($array),
1066
                $min
1067
            ));
1068
        }
1069
    }
1070
1071
    public static function maxCount($array, $max, $message = '')
1072
    {
@@ 1071-1080 (lines=10) @@
1068
        }
1069
    }
1070
1071
    public static function maxCount($array, $max, $message = '')
1072
    {
1073
        if (count($array) > $max) {
1074
            static::reportInvalidArgument(sprintf(
1075
                $message ?: 'Expected an array to contain at most %2$d elements. Got: %d',
1076
                count($array),
1077
                $max
1078
            ));
1079
        }
1080
    }
1081
1082
    public static function countBetween($array, $min, $max, $message = '')
1083
    {