Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

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