Code Duplication    Length = 10-10 lines in 2 locations

src/Assert.php 2 locations

@@ 1037-1046 (lines=10) @@
1034
        );
1035
    }
1036
1037
    public static function minCount($array, $min, $message = '')
1038
    {
1039
        if (count($array) < $min) {
1040
            static::reportInvalidArgument(sprintf(
1041
                $message ?: 'Expected an array to contain at least %2$d elements. Got: %d',
1042
                count($array),
1043
                $min
1044
            ));
1045
        }
1046
    }
1047
1048
    public static function maxCount($array, $max, $message = '')
1049
    {
@@ 1048-1057 (lines=10) @@
1045
        }
1046
    }
1047
1048
    public static function maxCount($array, $max, $message = '')
1049
    {
1050
        if (count($array) > $max) {
1051
            static::reportInvalidArgument(sprintf(
1052
                $message ?: 'Expected an array to contain at most %2$d elements. Got: %d',
1053
                count($array),
1054
                $max
1055
            ));
1056
        }
1057
    }
1058
1059
    public static function countBetween($array, $min, $max, $message = '')
1060
    {