Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

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