Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

@@ 909-917 (lines=9) @@
906
        }
907
    }
908
909
    public static function methodExists($classOrObject, $method, $message = '')
910
    {
911
        if (!method_exists($classOrObject, $method)) {
912
            static::reportInvalidArgument(sprintf(
913
                $message ?: 'Expected the method %s to exist.',
914
                static::valueToString($method)
915
            ));
916
        }
917
    }
918
919
    public static function methodNotExists($classOrObject, $method, $message = '')
920
    {
@@ 919-927 (lines=9) @@
916
        }
917
    }
918
919
    public static function methodNotExists($classOrObject, $method, $message = '')
920
    {
921
        if (method_exists($classOrObject, $method)) {
922
            static::reportInvalidArgument(sprintf(
923
                $message ?: 'Expected the method %s to not exist.',
924
                static::valueToString($method)
925
            ));
926
        }
927
    }
928
929
    public static function keyExists($array, $key, $message = '')
930
    {