Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

@@ 974-982 (lines=9) @@
971
        }
972
    }
973
974
    public static function methodExists($classOrObject, $method, $message = '')
975
    {
976
        if (!method_exists($classOrObject, $method)) {
977
            static::reportInvalidArgument(sprintf(
978
                $message ?: 'Expected the method %s to exist.',
979
                static::valueToString($method)
980
            ));
981
        }
982
    }
983
984
    public static function methodNotExists($classOrObject, $method, $message = '')
985
    {
@@ 984-992 (lines=9) @@
981
        }
982
    }
983
984
    public static function methodNotExists($classOrObject, $method, $message = '')
985
    {
986
        if (method_exists($classOrObject, $method)) {
987
            static::reportInvalidArgument(sprintf(
988
                $message ?: 'Expected the method %s to not exist.',
989
                static::valueToString($method)
990
            ));
991
        }
992
    }
993
994
    public static function keyExists($array, $key, $message = '')
995
    {