Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

@@ 788-796 (lines=9) @@
785
        }
786
    }
787
788
    public static function keyExists($array, $key, $message = '')
789
    {
790
        if (!array_key_exists($key, $array)) {
791
            throw new InvalidArgumentException(sprintf(
792
                $message ?: 'Expected the key %s to exist.',
793
                static::valueToString($key)
794
            ));
795
        }
796
    }
797
798
    public static function keyNotExists($array, $key, $message = '')
799
    {
@@ 798-806 (lines=9) @@
795
        }
796
    }
797
798
    public static function keyNotExists($array, $key, $message = '')
799
    {
800
        if (array_key_exists($key, $array)) {
801
            throw new InvalidArgumentException(sprintf(
802
                $message ?: 'Expected the key %s to not exist.',
803
                static::valueToString($key)
804
            ));
805
        }
806
    }
807
808
    public static function uuid($value, $message = '')
809
    {