Code Duplication    Length = 10-10 lines in 2 locations

src/Assert.php 2 locations

@@ 1051-1060 (lines=10) @@
1048
        );
1049
    }
1050
1051
    public static function minCount($array, $min, $message = '')
1052
    {
1053
        if (count($array) < $min) {
1054
            static::reportInvalidArgument(sprintf(
1055
                $message ?: 'Expected an array to contain at least %2$d elements. Got: %d',
1056
                count($array),
1057
                $min
1058
            ));
1059
        }
1060
    }
1061
1062
    public static function maxCount($array, $max, $message = '')
1063
    {
@@ 1062-1071 (lines=10) @@
1059
        }
1060
    }
1061
1062
    public static function maxCount($array, $max, $message = '')
1063
    {
1064
        if (count($array) > $max) {
1065
            static::reportInvalidArgument(sprintf(
1066
                $message ?: 'Expected an array to contain at most %2$d elements. Got: %d',
1067
                count($array),
1068
                $max
1069
            ));
1070
        }
1071
    }
1072
1073
    public static function countBetween($array, $min, $max, $message = '')
1074
    {