Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

@@ 985-993 (lines=9) @@
982
        }
983
    }
984
985
    public static function methodExists($classOrObject, $method, $message = '')
986
    {
987
        if (!method_exists($classOrObject, $method)) {
988
            static::reportInvalidArgument(sprintf(
989
                $message ?: 'Expected the method %s to exist.',
990
                static::valueToString($method)
991
            ));
992
        }
993
    }
994
995
    public static function methodNotExists($classOrObject, $method, $message = '')
996
    {
@@ 995-1003 (lines=9) @@
992
        }
993
    }
994
995
    public static function methodNotExists($classOrObject, $method, $message = '')
996
    {
997
        if (method_exists($classOrObject, $method)) {
998
            static::reportInvalidArgument(sprintf(
999
                $message ?: 'Expected the method %s to not exist.',
1000
                static::valueToString($method)
1001
            ));
1002
        }
1003
    }
1004
1005
    public static function keyExists($array, $key, $message = '')
1006
    {