Code Duplication    Length = 10-10 lines in 2 locations

src/Assert.php 2 locations

@@ 980-989 (lines=10) @@
977
        );
978
    }
979
980
    public static function minCount($array, $min, $message = '')
981
    {
982
        if (count($array) < $min) {
983
            static::reportInvalidArgument(sprintf(
984
                $message ?: 'Expected an array to contain at least %2$d elements. Got: %d',
985
                count($array),
986
                $min
987
            ));
988
        }
989
    }
990
991
    public static function maxCount($array, $max, $message = '')
992
    {
@@ 991-1000 (lines=10) @@
988
        }
989
    }
990
991
    public static function maxCount($array, $max, $message = '')
992
    {
993
        if (count($array) > $max) {
994
            static::reportInvalidArgument(sprintf(
995
                $message ?: 'Expected an array to contain at most %2$d elements. Got: %d',
996
                count($array),
997
                $max
998
            ));
999
        }
1000
    }
1001
1002
    public static function countBetween($array, $min, $max, $message = '')
1003
    {