Code Duplication    Length = 10-10 lines in 2 locations

src/Assert.php 2 locations

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