Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

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