Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

@@ 895-903 (lines=9) @@
892
        }
893
    }
894
895
    public static function methodExists($classOrObject, $method, $message = '')
896
    {
897
        if (!method_exists($classOrObject, $method)) {
898
            static::reportInvalidArgument(sprintf(
899
                $message ?: 'Expected the method %s to exist.',
900
                static::valueToString($method)
901
            ));
902
        }
903
    }
904
905
    public static function methodNotExists($classOrObject, $method, $message = '')
906
    {
@@ 905-913 (lines=9) @@
902
        }
903
    }
904
905
    public static function methodNotExists($classOrObject, $method, $message = '')
906
    {
907
        if (method_exists($classOrObject, $method)) {
908
            static::reportInvalidArgument(sprintf(
909
                $message ?: 'Expected the method %s to not exist.',
910
                static::valueToString($method)
911
            ));
912
        }
913
    }
914
915
    public static function keyExists($array, $key, $message = '')
916
    {