Code Duplication    Length = 10-10 lines in 2 locations

src/Assert.php 2 locations

@@ 918-927 (lines=10) @@
915
        );
916
    }
917
918
    public static function minCount($array, $min, $message = '')
919
    {
920
        if (count($array) < $min) {
921
            static::reportInvalidArgument(sprintf(
922
                $message ?: 'Expected an array to contain at least %2$d elements. Got: %d',
923
                count($array),
924
                $min
925
            ));
926
        }
927
    }
928
929
    public static function maxCount($array, $max, $message = '')
930
    {
@@ 929-938 (lines=10) @@
926
        }
927
    }
928
929
    public static function maxCount($array, $max, $message = '')
930
    {
931
        if (count($array) > $max) {
932
            static::reportInvalidArgument(sprintf(
933
                $message ?: 'Expected an array to contain at most %2$d elements. Got: %d',
934
                count($array),
935
                $max
936
            ));
937
        }
938
    }
939
940
    public static function countBetween($array, $min, $max, $message = '')
941
    {