Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

@@ 919-927 (lines=9) @@
916
        }
917
    }
918
919
    public static function methodExists($classOrObject, $method, $message = '')
920
    {
921
        if (!method_exists($classOrObject, $method)) {
922
            static::reportInvalidArgument(sprintf(
923
                $message ?: 'Expected the method %s to exist.',
924
                static::valueToString($method)
925
            ));
926
        }
927
    }
928
929
    public static function methodNotExists($classOrObject, $method, $message = '')
930
    {
@@ 929-937 (lines=9) @@
926
        }
927
    }
928
929
    public static function methodNotExists($classOrObject, $method, $message = '')
930
    {
931
        if (method_exists($classOrObject, $method)) {
932
            static::reportInvalidArgument(sprintf(
933
                $message ?: 'Expected the method %s to not exist.',
934
                static::valueToString($method)
935
            ));
936
        }
937
    }
938
939
    public static function keyExists($array, $key, $message = '')
940
    {