Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

@@ 889-897 (lines=9) @@
886
        }
887
    }
888
889
    public static function keyExists($array, $key, $message = '')
890
    {
891
        if (!isset($search[$key]) && !array_key_exists($key, $array)) {
892
            static::reportInvalidArgument(sprintf(
893
                $message ?: 'Expected the key %s to exist.',
894
                static::valueToString($key)
895
            ));
896
        }
897
    }
898
899
    public static function keyNotExists($array, $key, $message = '')
900
    {
@@ 899-907 (lines=9) @@
896
        }
897
    }
898
899
    public static function keyNotExists($array, $key, $message = '')
900
    {
901
        if (isset($search[$key]) || array_key_exists($key, $array)) {
902
            static::reportInvalidArgument(sprintf(
903
                $message ?: 'Expected the key %s to not exist.',
904
                static::valueToString($key)
905
            ));
906
        }
907
    }
908
909
    public static function count($array, $number, $message = '')
910
    {