Code Duplication    Length = 10-10 lines in 2 locations

src/Assert.php 2 locations

@@ 1025-1034 (lines=10) @@
1022
        );
1023
    }
1024
1025
    public static function minCount($array, $min, $message = '')
1026
    {
1027
        if (count($array) < $min) {
1028
            static::reportInvalidArgument(sprintf(
1029
                $message ?: 'Expected an array to contain at least %2$d elements. Got: %d',
1030
                count($array),
1031
                $min
1032
            ));
1033
        }
1034
    }
1035
1036
    public static function maxCount($array, $max, $message = '')
1037
    {
@@ 1036-1045 (lines=10) @@
1033
        }
1034
    }
1035
1036
    public static function maxCount($array, $max, $message = '')
1037
    {
1038
        if (count($array) > $max) {
1039
            static::reportInvalidArgument(sprintf(
1040
                $message ?: 'Expected an array to contain at most %2$d elements. Got: %d',
1041
                count($array),
1042
                $max
1043
            ));
1044
        }
1045
    }
1046
1047
    public static function countBetween($array, $min, $max, $message = '')
1048
    {