Code Duplication    Length = 10-10 lines in 2 locations

src/Assert.php 2 locations

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