Code Duplication    Length = 10-10 lines in 2 locations

src/Assert.php 2 locations

@@ 932-941 (lines=10) @@
929
        );
930
    }
931
932
    public static function minCount($array, $min, $message = '')
933
    {
934
        if (count($array) < $min) {
935
            static::reportInvalidArgument(sprintf(
936
                $message ?: 'Expected an array to contain at least %2$d elements. Got: %d',
937
                count($array),
938
                $min
939
            ));
940
        }
941
    }
942
943
    public static function maxCount($array, $max, $message = '')
944
    {
@@ 943-952 (lines=10) @@
940
        }
941
    }
942
943
    public static function maxCount($array, $max, $message = '')
944
    {
945
        if (count($array) > $max) {
946
            static::reportInvalidArgument(sprintf(
947
                $message ?: 'Expected an array to contain at most %2$d elements. Got: %d',
948
                count($array),
949
                $max
950
            ));
951
        }
952
    }
953
954
    public static function countBetween($array, $min, $max, $message = '')
955
    {