Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

@@ 799-807 (lines=9) @@
796
        }
797
    }
798
799
    public static function keyExists($array, $key, $message = '')
800
    {
801
        if (!array_key_exists($key, $array)) {
802
            static::reportInvalidArgument(sprintf(
803
                $message ?: 'Expected the key %s to exist.',
804
                static::valueToString($key)
805
            ));
806
        }
807
    }
808
809
    public static function keyNotExists($array, $key, $message = '')
810
    {
@@ 809-817 (lines=9) @@
806
        }
807
    }
808
809
    public static function keyNotExists($array, $key, $message = '')
810
    {
811
        if (array_key_exists($key, $array)) {
812
            static::reportInvalidArgument(sprintf(
813
                $message ?: 'Expected the key %s to not exist.',
814
                static::valueToString($key)
815
            ));
816
        }
817
    }
818
819
    public static function count($array, $number, $message = '')
820
    {