Code Duplication    Length = 10-10 lines in 2 locations

src/Assert.php 2 locations

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