Code Duplication    Length = 10-10 lines in 2 locations

src/Assert.php 2 locations

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