Code Duplication    Length = 10-10 lines in 2 locations

src/Assert.php 2 locations

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