Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

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