Code Duplication    Length = 10-10 lines in 2 locations

src/Assert.php 2 locations

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