Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

@@ 883-891 (lines=9) @@
880
        }
881
    }
882
883
    public static function methodExists($classOrObject, $method, $message = '')
884
    {
885
        if (!method_exists($classOrObject, $method)) {
886
            static::reportInvalidArgument(sprintf(
887
                $message ?: 'Expected the method %s to exist.',
888
                static::valueToString($method)
889
            ));
890
        }
891
    }
892
893
    public static function methodNotExists($classOrObject, $method, $message = '')
894
    {
@@ 893-901 (lines=9) @@
890
        }
891
    }
892
893
    public static function methodNotExists($classOrObject, $method, $message = '')
894
    {
895
        if (method_exists($classOrObject, $method)) {
896
            static::reportInvalidArgument(sprintf(
897
                $message ?: 'Expected the method %s to not exist.',
898
                static::valueToString($method)
899
            ));
900
        }
901
    }
902
903
    public static function keyExists($array, $key, $message = '')
904
    {